#include <iostream>
#include <vector>
#include <cmath>
#include <sstream>
#include <fstream>
#include <string>

#define I(y, x) ((y) * inx + (x))

using namespace std;

using mat2d = vector<float>;

const int nit = 50;
const float nx = 41.0f;
const float ny = 41.0f;
const size_t inx = static_cast<size_t>(nx);
const size_t iny = static_cast<size_t>(ny);
const size_t sizeofmat = inx * iny * sizeof(float);

const dim3 numBlocks(2, 2);
const dim3 threads(inx / 2, iny / 2);

void linspace(vector<float>& v, float b, float e, int s) {
  v.reserve(s);
  for (int i = 0; i < s; i++) {
    v.push_back(b + e / (s - 1) * i);
  }
}

void zeros(vector<float>& v, int row, int col) {
  v.reserve(row * col);
  for (int i = 0; i < row * col; i++) {
    v.push_back(0);
  }
}

template<class T>
string to_json_1d(const vector<T> &v) {
  stringstream ss;
  ss << "[";
  bool fst = true;
  for (auto e : v) {
    if (!fst) ss << ",";
    fst = false;
    ss << e;
  }
  ss << "]";
  return ss.str();
}

template<class T>
string to_json_2d(const vector<T> &v) {
  stringstream ss;
  ss << "[";
  for (int y = 0; y < iny; y++) {
    if (y > 0) ss << ",";
    ss << "[";
    for (int x = 0; x < inx; x++) {
      if (x > 0) ss << ",";
      ss << v[I(y, x)];
    }
    ss << "]";
  }
  ss << "]";
  return ss.str();
}

float* cudaMalloc_with(mat2d& mat) {
  float *mat_dev;
  cudaMalloc(&mat_dev, sizeofmat);
  cudaMemcpy(mat_dev, mat.data(), sizeofmat, cudaMemcpyHostToDevice);
  return mat_dev;
}

void cudaFree_with(mat2d& mat, float* mat_dev) {
  cudaMemcpy(mat.data(), mat_dev, sizeofmat, cudaMemcpyDeviceToHost);
  cudaFree(mat_dev);
}

__global__ void build_up_b_device(int inx, int iny, float* b, float rho, float dt, float* const u, float* const v, float dx, float dy) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  b[I(y, x)] = (rho * (1.0f / dt *
                ((u[I(y, x + 1)] - u[I(y, x - 1)]) / (2 * dx) +
                 (v[I(y + 1, x)] - v[I(y - 1, x)]) / (2 * dy)) -
                pow((u[I(y, x + 1)] - u[I(y, x - 1)]) / (2 * dx), 2) -
                2 * ((u[I(y + 1, x)] - u[I(y - 1, x)]) / (2 * dy) *
                     (v[I(y, x + 1)] - v[I(y, x - 1)]) / (2 * dx)) -
                pow((v[I(y + 1, x)] - v[I(y - 1, x)]) / (2 * dy), 2)));
}

__global__ void pressure_poisson_device(float* p, float *pn, float dx, float dy, float* b) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  p[I(y, x)] = (((pn[I(y, x + 1)] + pn[I(y, x - 1)]) * dy * dy +
        (pn[I(y + 1, x)] + pn[I(y - 1, x)]) * dx * dx) /
      (2 * (dx * dx + dy * dy)) -
      dx * dx * dy * dy / (2 * (dx * dx + dy * dy)) *
      b[I(y, x)]);
}

__global__ void pressure_poisson_finish_device(float *p) {
  const int width = inx;
  const int height = iny;

  for (int y = 0; y < height; y++)
    p[I(y, width - 1)] = p[I(y, width - 2)];
  for (int x = 0; x < width; x++)
    p[I(0, x)] = p[I(1, x)];
  for (int y = 0; y < height; y++)
    p[I(y, 0)] = p[I(y, 1)];
  for (int x = 0; x < width; x++)
    p[I(height - 1, x)] = 0.0f;
}

void pressure_poisson(float* p_dev, float dx, float dy, float* b_dev) {
  float *pn_dev;
  cudaMalloc(&pn_dev, sizeofmat);

  for (int i = 0; i < nit; i++) {
    cudaMemcpy(pn_dev, p_dev, sizeofmat, cudaMemcpyDeviceToDevice);

    pressure_poisson_device<<<numBlocks, threads>>>(p_dev, pn_dev, dx, dy, b_dev);
    cudaDeviceSynchronize();
    pressure_poisson_finish_device<<<1, 1>>>(p_dev);
    cudaDeviceSynchronize();
  }

  cudaFree(pn_dev);
}

__global__ void cavity_flow_device(float* u, float* v, float* un, float* vn,
    float dt, float dx, float dy, float* p, float rho, float nu) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  u[I(y, x)] = (un[I(y, x)] -
      un[I(y, x)] * dt / dx *
      (un[I(y, x)] - un[I(y, x - 1)]) -
      vn[I(y, x)] * dt / dy *
      (un[I(y, x)] - un[I(y - 1, x)]) -
      dt / (2 * rho * dx) * (p[I(y, x + 1)] - p[I(y, x - 1)]) +
      nu * (dt / (dx * dx) *
        (un[I(y, x + 1)] - 2 * un[I(y, x)] + un[I(y, x - 1)]) +
        dt / (dy * dy) *
        (un[I(y + 1, x)] - 2 * un[I(y, x)] + un[I(y - 1, x)])));

  v[I(y, x)] = (vn[I(y, x)] -
      un[I(y, x)] * dt / dx *
      (vn[I(y, x)] - vn[I(y, x - 1)]) -
      vn[I(y, x)] * dt / dy *
      (vn[I(y, x)] - vn[I(y - 1, x)]) -
      dt / (2 * rho * dy) * (p[I(y + 1, x)] - p[I(y - 1, x)]) +
      nu * (dt / (dx * dx) *
        (vn[I(y, x + 1)] - 2 * vn[I(y, x)] + vn[I(y, x - 1)]) +
        dt / (dy * dy) *
        (vn[I(y + 1, x)] - 2 * vn[I(y, x)] + vn[I(y - 1, x)])));
}

__global__ void cavity_flow_finish_device(float* u, float* v) {
  const int width = inx;
  const int height = iny;

  for (int x = 0; x < width; x++) {
    u[I(0, x)] = 0.0f;
  }
  for (int y = 0; y < height; y++) {
    u[I(y, 0)] = 0.0f;
    u[I(y, width - 1)] = 0.0f;
  }
  for (int x = 0; x < width; x++) {
    u[I(height - 1, x)] = 1.0f;
  }

  for (int x = 0; x < width; x++) {
    v[I(0, x)] = 0.0f;
    v[I(width - 1, x)] = 0.0f;
  }
  for (int y = 0; y < height; y++) {
    v[I(y, 0)] = 0.0f;
    v[I(y, width - 1)] = 0.0f;
  }
}

void cavity_flow(int nt, mat2d& u, mat2d& v, float dt, float dx, float dy, mat2d& p, float rho, float nu) {
  mat2d b;
  zeros(b, iny, inx);

  float *b_dev = cudaMalloc_with(b);
  float *u_dev = cudaMalloc_with(u);
  float *v_dev = cudaMalloc_with(v);
  float *un_dev; cudaMalloc(&un_dev, sizeofmat);
  float *vn_dev; cudaMalloc(&vn_dev, sizeofmat);
  float *p_dev = cudaMalloc_with(p);

  for (int i = 0; i < nt; i++) {
    cudaMemcpy(un_dev, u_dev, sizeofmat, cudaMemcpyDeviceToDevice);
    cudaMemcpy(vn_dev, v_dev, sizeofmat, cudaMemcpyDeviceToDevice);

    build_up_b_device<<<numBlocks, threads>>>(inx, iny, b_dev, rho, dt, u_dev, v_dev, dx, dy);
    cudaDeviceSynchronize();

    pressure_poisson(p_dev, dx, dy, b_dev);

    cavity_flow_device<<<numBlocks, threads>>>(u_dev, v_dev, un_dev, vn_dev, dt, dx, dy, p_dev, rho, nu);
    cudaDeviceSynchronize();

    cavity_flow_finish_device<<<1, 1>>>(u_dev, v_dev);
    cudaDeviceSynchronize();
  }

  cudaFree(b_dev);
  cudaFree_with(u, u_dev);
  cudaFree_with(v, v_dev);
  cudaFree(un_dev);
  cudaFree(vn_dev);
  cudaFree_with(p, p_dev);
}

int main() {
  int nt = 700;
  float dx = 2.0f / (nx - 1.0f);
  float dy = 2.0f / (ny - 1.0f);

  vector<float> x;
  vector<float> y;
  linspace(x, 0.0f, 2.0f, inx);
  linspace(y, 0.0f, 2.0f, iny);

  float rho = 1.0f;
  float nu = 0.1f;
  float dt = 0.001f;

  mat2d u, v, p, b;
  zeros(u, iny, inx);
  zeros(v, iny, inx);
  zeros(p, iny, inx);
  zeros(b, iny, inx);

  cavity_flow(nt, u, v, dt, dx, dy, p, rho, nu);

  ofstream output;
  output.open("cavity-cuda.json");
  output << "{\n" <<
    "\"x\": " << to_json_1d(x) << ", \"y\": " << to_json_1d(y) << ",\n" <<
    "\"p\": " << to_json_2d(p) << ",\n" <<
    "\"u\": " << to_json_2d(u) << ",\n" <<
    "\"v\": " << to_json_2d(v) << "\n" << "}\n";
  output.close();

  return 0;
}

	.file	"tmpxft_00248952_00000000-6_13_cavity-cuda.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4207:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4207:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0:
.LFB5078:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L3
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L5
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L5:
	call	_ZSt17__throw_bad_allocv@PLT
.L4:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L3:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5078:
	.size	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vector::_M_realloc_insert"
	.text
	.align 2
	.type	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, @function
_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0:
.LFB5081:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 64
	movq	8(%rdi), %rdx
	cmpq	16(%rdi), %rdx
	je	.L11
	movss	(%rsi), %xmm0
	addq	$4, %rdx
	movss	%xmm0, -4(%rdx)
	movq	%rdx, 8(%rdi)
	jmp	.L10
.L11:
	movabsq	$2305843009213693951, %rbp
	movq	(%rdi), %r13
	movq	%rdx, %r14
	subq	%r13, %r14
	movq	%r14, %rax
	sarq	$2, %rax
	cmpq	%rbp, %rax
	jne	.L13
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L13:
	cmpq	%r13, %rdx
	movl	$1, %edx
	cmovne	%rax, %rdx
	addq	%rdx, %rax
	jc	.L17
	movabsq	$2305843009213693951, %rbp
	cmpq	%rbp, %rax
	cmovbe	%rax, %rbp
.L17:
	movq	%rbp, %rdi
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movss	(%r15), %xmm0
	movq	%rax, %r12
	movss	%xmm0, (%rax,%r14)
	testq	%r14, %r14
	jle	.L18
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L18:
	leaq	4(%r12,%r14), %r14
	testq	%r13, %r13
	je	.L19
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L19:
	leaq	(%r12,%rbp,4), %rax
	movq	%r12, (%rbx)
	movq	%r14, 8(%rbx)
	movq	%rax, 16(%rbx)
.L10:
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5081:
	.size	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, .-_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	.globl	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	.type	_Z15cudaMalloc_withRSt6vectorIfSaIfEE, @function
_Z15cudaMalloc_withRSt6vectorIfSaIfEE:
.LFB4190:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$6724, %esi
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdi
	call	cudaMalloc@PLT
	movq	(%rbx), %rsi
	movq	(%rsp), %rdi
	movl	$1, %ecx
	movl	$6724, %edx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4190:
	.size	_Z15cudaMalloc_withRSt6vectorIfSaIfEE, .-_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	.globl	_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	.type	_Z13cudaFree_withRSt6vectorIfSaIfEEPf, @function
_Z13cudaFree_withRSt6vectorIfSaIfEEPf:
.LFB4191:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	(%rdi), %rdi
	movq	%rsi, %rbx
	movl	$2, %ecx
	movl	$6724, %edx
	call	cudaMemcpy@PLT
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	cudaFree@PLT
	.cfi_endproc
.LFE4191:
	.size	_Z13cudaFree_withRSt6vectorIfSaIfEEPf, .-_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	.globl	_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff
	.type	_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff, @function
_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff:
.LFB4229:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movl	%edi, 44(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 32(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movss	%xmm0, 28(%rsp)
	movss	%xmm1, 24(%rsp)
	movss	%xmm2, 4(%rsp)
	movss	%xmm3, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 168(%rsp)
	movq	%rsp, %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	pushq	56(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z17build_up_b_deviceiiPfffS_S_ff(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 224
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L31:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4229:
	.size	_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff, .-_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff
	.globl	_Z17build_up_b_deviceiiPfffS_S_ff
	.type	_Z17build_up_b_deviceiiPfffS_S_ff, @function
_Z17build_up_b_deviceiiPfffS_S_ff:
.LFB4230:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff
	.cfi_endproc
.LFE4230:
	.size	_Z17build_up_b_deviceiiPfffS_S_ff, .-_Z17build_up_b_deviceiiPfffS_S_ff
	.globl	_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_
	.type	_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_, @function
_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_:
.LFB4231:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, (%rsp)
	leaq	32(%rsp), %rdx
	movss	%xmm0, 12(%rsp)
	movss	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z23pressure_poisson_devicePfS_ffS_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L36:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4231:
	.size	_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_, .-_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_
	.globl	_Z23pressure_poisson_devicePfS_ffS_
	.type	_Z23pressure_poisson_devicePfS_ffS_, @function
_Z23pressure_poisson_devicePfS_ffS_:
.LFB4232:
	.cfi_startproc
	endbr64
	jmp	_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_
	.cfi_endproc
.LFE4232:
	.size	_Z23pressure_poisson_devicePfS_ffS_, .-_Z23pressure_poisson_devicePfS_ffS_
	.globl	_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf
	.type	_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf, @function
_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf:
.LFB4233:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z30pressure_poisson_finish_devicePf(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L41:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4233:
	.size	_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf, .-_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf
	.globl	_Z30pressure_poisson_finish_devicePf
	.type	_Z30pressure_poisson_finish_devicePf, @function
_Z30pressure_poisson_finish_devicePf:
.LFB4234:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf
	.cfi_endproc
.LFE4234:
	.size	_Z30pressure_poisson_finish_devicePf, .-_Z30pressure_poisson_finish_devicePf
	.globl	_Z16pressure_poissonPfffS_
	.type	_Z16pressure_poissonPfffS_, @function
_Z16pressure_poissonPfffS_:
.LFB4192:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movd	%xmm1, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movd	%xmm0, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movabsq	$4294967297, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	movl	$6724, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$50, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	call	cudaMalloc@PLT
.L49:
	movq	8(%rsp), %rdi
	movl	$3, %ecx
	movl	$6724, %edx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	movq	_ZL7threads(%rip), %rdx
	xorl	%r9d, %r9d
	movl	8+_ZL7threads(%rip), %ecx
	movq	_ZL9numBlocks(%rip), %rdi
	movl	8+_ZL9numBlocks(%rip), %esi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L47
	movq	8(%rsp), %rsi
	movq	%r12, %rdx
	movd	%r15d, %xmm1
	movq	%rbx, %rdi
	movd	%r14d, %xmm0
	call	_Z49__device_stub__Z23pressure_poisson_devicePfS_ffS_PfS_ffS_
.L47:
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L48
	movq	%rbx, %rdi
	call	_Z50__device_stub__Z30pressure_poisson_finish_devicePfPf
.L48:
	call	cudaDeviceSynchronize@PLT
	decl	%ebp
	jne	.L49
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4192:
	.size	_Z16pressure_poissonPfffS_, .-_Z16pressure_poissonPfffS_
	.globl	_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff
	.type	_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff, @function
_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff:
.LFB4235:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movss	%xmm0, 28(%rsp)
	movss	%xmm1, 24(%rsp)
	movss	%xmm2, 20(%rsp)
	movss	%xmm3, 16(%rsp)
	movss	%xmm4, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L53
	pushq	80(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z18cavity_flow_devicePfS_S_S_fffS_ff(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 256
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L53:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4235:
	.size	_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff, .-_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff
	.globl	_Z18cavity_flow_devicePfS_S_S_fffS_ff
	.type	_Z18cavity_flow_devicePfS_S_S_fffS_ff, @function
_Z18cavity_flow_devicePfS_S_S_fffS_ff:
.LFB4236:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff
	.cfi_endproc
.LFE4236:
	.size	_Z18cavity_flow_devicePfS_S_S_fffS_ff, .-_Z18cavity_flow_devicePfS_S_S_fffS_ff
	.globl	_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_
	.type	_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_, @function
_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_:
.LFB4237:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L58
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z25cavity_flow_finish_devicePfS_(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L58:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4237:
	.size	_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_, .-_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_
	.globl	_Z25cavity_flow_finish_devicePfS_
	.type	_Z25cavity_flow_finish_devicePfS_, @function
_Z25cavity_flow_finish_devicePfS_:
.LFB4238:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_
	.cfi_endproc
.LFE4238:
	.size	_Z25cavity_flow_finish_devicePfS_, .-_Z25cavity_flow_finish_devicePfS_
	.section	.rodata.str1.1
.LC1:
	.string	"_Z25cavity_flow_finish_devicePfS_"
.LC2:
	.string	"_Z18cavity_flow_devicePfS_S_S_fffS_ff"
.LC3:
	.string	"_Z30pressure_poisson_finish_devicePf"
.LC4:
	.string	"_Z23pressure_poisson_devicePfS_ffS_"
.LC5:
	.string	"_Z17build_up_b_deviceiiPfffS_S_ff"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4240:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z25cavity_flow_finish_devicePfS_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18cavity_flow_devicePfS_S_S_fffS_ff(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z30pressure_poisson_finish_devicePf(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z23pressure_poisson_devicePfS_ffS_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z17build_up_b_deviceiiPfffS_S_ff(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4240:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt6vectorIfSaIfEE7reserveEm.str1.1,"aMS",@progbits,1
.LC6:
	.string	"vector::reserve"
	.section	.text._ZNSt6vectorIfSaIfEE7reserveEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE7reserveEm,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE7reserveEm
	.type	_ZNSt6vectorIfSaIfEE7reserveEm, @function
_ZNSt6vectorIfSaIfEE7reserveEm:
.LFB4556:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmpq	%rsi, %rax
	jnb	.L66
	leaq	.LC6(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L66:
	movq	(%rdi), %rdx
	movq	16(%rdi), %rax
	movq	%rdi, %rbx
	movq	%rsi, %r12
	subq	%rdx, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jnb	.L65
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	subq	%rdx, %r13
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movq	(%rbx), %r14
	movq	8(%rbx), %rdx
	movq	%rax, %rbp
	subq	%r14, %rdx
	testq	%rdx, %rdx
	jle	.L68
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
	jmp	.L69
.L68:
	testq	%r14, %r14
	je	.L70
.L69:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L70:
	addq	%rbp, %r13
	leaq	0(%rbp,%r12,4), %rax
	movq	%rbp, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rax, 16(%rbx)
.L65:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4556:
	.size	_ZNSt6vectorIfSaIfEE7reserveEm, .-_ZNSt6vectorIfSaIfEE7reserveEm
	.text
	.globl	_Z8linspaceRSt6vectorIfSaIfEEffi
	.type	_Z8linspaceRSt6vectorIfSaIfEEffi, @function
_Z8linspaceRSt6vectorIfSaIfEEffi:
.LFB4186:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movslq	%esi, %rsi
	movd	%xmm1, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rsi, %rbx
	leal	-1(%rbx), %r13d
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	_ZNSt6vectorIfSaIfEE7reserveEm
.L76:
	cmpl	%ebx, %ebp
	jge	.L80
	cvtsi2ssl	%r13d, %xmm1
	movd	%r14d, %xmm0
	leaq	20(%rsp), %rsi
	movq	%r12, %rdi
	divss	%xmm1, %xmm0
	cvtsi2ssl	%ebp, %xmm1
	incl	%ebp
	mulss	%xmm1, %xmm0
	addss	12(%rsp), %xmm0
	movss	%xmm0, 20(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	jmp	.L76
.L80:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4186:
	.size	_Z8linspaceRSt6vectorIfSaIfEEffi, .-_Z8linspaceRSt6vectorIfSaIfEEffi
	.globl	_Z5zerosRSt6vectorIfSaIfEEii
	.type	_Z5zerosRSt6vectorIfSaIfEEii, @function
_Z5zerosRSt6vectorIfSaIfEEii:
.LFB4187:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%esi, %ebx
	imull	%edx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	%ebx, %rsi
	leaq	4(%rsp), %r13
	call	_ZNSt6vectorIfSaIfEE7reserveEm
.L82:
	cmpl	%r12d, %ebx
	jle	.L86
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movl	$0x00000000, 4(%rsp)
	incl	%r12d
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	jmp	.L82
.L86:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4187:
	.size	_Z5zerosRSt6vectorIfSaIfEEii, .-_Z5zerosRSt6vectorIfSaIfEEii
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB4574:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L87
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L87:
	ret
	.cfi_endproc
.LFE4574:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.text
	.globl	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
	.type	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff, @function
_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff:
.LFB4193:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4193
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	movl	$41, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdx, 32(%rsp)
	leaq	112(%rsp), %rbx
	movl	$41, %edx
	movq	%rcx, 48(%rsp)
	movq	%rbx, %rdi
	movss	%xmm0, 44(%rsp)
	movss	%xmm1, 28(%rsp)
	movss	%xmm2, 40(%rsp)
	movss	%xmm3, 56(%rsp)
	movss	%xmm4, 60(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movq	%rax, 112(%rsp)
	movq	%rax, 120(%rsp)
	movq	%rax, 128(%rsp)
.LEHB0:
	call	_Z5zerosRSt6vectorIfSaIfEEii
	movq	%rbx, %rdi
	call	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	movq	32(%rsp), %rdi
	movq	%rax, %rbx
	call	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	leaq	72(%rsp), %rdi
	movl	$6724, %esi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	leaq	80(%rsp), %rdi
	movl	$6724, %esi
	call	cudaMalloc@PLT
	movq	48(%rsp), %rdi
	call	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	movq	%rax, 16(%rsp)
	xorl	%r14d, %r14d
	movabsq	$4294967297, %r15
.L90:
	cmpl	%r13d, %r14d
	jge	.L111
	movq	72(%rsp), %rdi
	movl	$3, %ecx
	movl	$6724, %edx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rsi
	movq	80(%rsp), %rdi
	movl	$3, %ecx
	movl	$6724, %edx
	call	cudaMemcpy@PLT
	movq	_ZL7threads(%rip), %rdx
	movl	8+_ZL7threads(%rip), %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	_ZL9numBlocks(%rip), %rdi
	movl	8+_ZL9numBlocks(%rip), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L91
.L93:
	call	cudaDeviceSynchronize@PLT
	jmp	.L112
.L91:
	movss	40(%rsp), %xmm3
	movss	28(%rsp), %xmm2
	movq	%rbx, %rcx
	movq	%rbp, %rdx
	movq	8(%rsp), %r8
	movss	44(%rsp), %xmm1
	movl	$41, %esi
	movl	$41, %edi
	movss	56(%rsp), %xmm0
	call	_Z47__device_stub__Z17build_up_b_deviceiiPfffS_S_ffiiPfffS_S_ff
	jmp	.L93
.L112:
	movss	40(%rsp), %xmm1
	movss	28(%rsp), %xmm0
	movq	%rbp, %rsi
	movq	16(%rsp), %rdi
	call	_Z16pressure_poissonPfffS_
	movq	_ZL7threads(%rip), %rdx
	movl	8+_ZL7threads(%rip), %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	_ZL9numBlocks(%rip), %rdi
	movl	8+_ZL9numBlocks(%rip), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L94
.L96:
	call	cudaDeviceSynchronize@PLT
	jmp	.L113
.L94:
	movss	60(%rsp), %xmm4
	movss	56(%rsp), %xmm3
	movq	%rbx, %rdi
	movq	16(%rsp), %r8
	movss	40(%rsp), %xmm2
	movss	28(%rsp), %xmm1
	movss	44(%rsp), %xmm0
	movq	80(%rsp), %rcx
	movq	72(%rsp), %rdx
	movq	8(%rsp), %rsi
	call	_Z51__device_stub__Z18cavity_flow_devicePfS_S_S_fffS_ffPfS_S_S_fffS_ff
	jmp	.L96
.L113:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L97
.L99:
	call	cudaDeviceSynchronize@PLT
	incl	%r14d
	jmp	.L90
.L97:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_Z47__device_stub__Z25cavity_flow_finish_devicePfS_PfS_
	jmp	.L99
.L111:
	movq	%rbp, %rdi
	call	cudaFree@PLT
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	16(%rsp), %rsi
	movq	48(%rsp), %rdi
	call	_Z13cudaFree_withRSt6vectorIfSaIfEEPf
.LEHE0:
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L103
	jmp	.L109
.L105:
	endbr64
	movq	%rax, %rbx
.L101:
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L109
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L109:
	call	__stack_chk_fail@PLT
.L103:
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4193:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4193:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4193-.LLSDACSB4193
.LLSDACSB4193:
	.uleb128 .LEHB0-.LFB4193
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L105-.LFB4193
	.uleb128 0
	.uleb128 .LEHB1-.LFB4193
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4193:
	.text
	.size	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff, .-_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
	.section	.rodata._Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE.str1.1,"aMS",@progbits,1
.LC8:
	.string	"["
.LC9:
	.string	","
.LC10:
	.string	"]"
	.section	.text._Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.weak	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.type	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, @function
_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE:
.LFB4585:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4585
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$424, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	32(%rsp), %rbp
	movq	%r13, %rdi
.LEHB2:
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE2:
	leaq	.LC8(%rip), %rsi
	movq	%rbp, %rdi
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%r12), %r14
	movq	(%r12), %r12
	movb	$1, %al
	leaq	.LC9(%rip), %r15
.L115:
	cmpq	%r12, %r14
	je	.L127
	movss	(%r12), %xmm1
	movss	%xmm1, 12(%rsp)
	testb	%al, %al
	je	.L116
.L118:
	movq	%rbp, %rdi
	cvtss2sd	12(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	addq	$4, %r12
	xorl	%eax, %eax
	jmp	.L115
.L116:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L118
.L127:
	leaq	.LC10(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	40(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
.LEHE3:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	je	.L122
	jmp	.L125
.L123:
	endbr64
	movq	%rax, %rbx
.L120:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L125
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L125:
	call	__stack_chk_fail@PLT
.L122:
	addq	$424, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4585:
	.section	.gcc_except_table
.LLSDA4585:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4585-.LLSDACSB4585
.LLSDACSB4585:
	.uleb128 .LEHB2-.LFB4585
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB4585
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L123-.LFB4585
	.uleb128 0
	.uleb128 .LEHB4-.LFB4585
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4585:
	.section	.text._Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.size	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, .-_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.section	.text._Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.weak	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.type	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, @function
_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE:
.LFB4587:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4587
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC8(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%rdi, 24(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
.LEHB5:
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE5:
	leaq	48(%rsp), %rax
	movq	%r14, %rsi
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB6:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%ebx, %ebx
	leaq	.LC9(%rip), %r15
.L132:
	movq	8(%rsp), %rdi
	movq	%r14, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	imulq	$164, %rbx, %r12
	xorl	%r13d, %r13d
.L130:
	movq	0(%rbp), %rax
	movq	8(%rsp), %rdi
	cvtss2sd	(%rax,%r12), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	incl	%r13d
	addq	$4, %r12
	cmpl	$41, %r13d
	je	.L129
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L130
.L129:
	leaq	.LC10(%rip), %r12
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%rbx
	cmpq	$41, %rbx
	je	.L131
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L132
.L131:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	24(%rsp), %rdi
	leaq	56(%rsp), %rsi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
.LEHE6:
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	je	.L135
	jmp	.L137
.L136:
	endbr64
	movq	%rax, %rbx
.L133:
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L137
	movq	%rbx, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L137:
	call	__stack_chk_fail@PLT
.L135:
	movq	24(%rsp), %rax
	addq	$440, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4587:
	.section	.gcc_except_table
.LLSDA4587:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4587-.LLSDACSB4587
.LLSDACSB4587:
	.uleb128 .LEHB5-.LFB4587
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB6-.LFB4587
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L136-.LFB4587
	.uleb128 0
	.uleb128 .LEHB7-.LFB4587
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4587:
	.section	.text._Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.size	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, .-_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.section	.rodata.str1.1
.LC16:
	.string	"cavity-cuda.json"
.LC17:
	.string	"{\n"
.LC18:
	.string	"\"x\": "
.LC19:
	.string	", \"y\": "
.LC20:
	.string	",\n"
.LC21:
	.string	"\"p\": "
.LC22:
	.string	"\"u\": "
.LC23:
	.string	"\"v\": "
.LC24:
	.string	"\n"
.LC25:
	.string	"}\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4204:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4204
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edx, %edx
	movl	$41, %esi
	xorps	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$904, %rsp
	.cfi_def_cfa_offset 960
	movss	.LC11(%rip), %xmm1
	movq	%fs:40, %rax
	movq	%rax, 888(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movq	%rdx, 72(%rsp)
	movq	%rax, 40(%rsp)
	movq	40(%rsp), %rdi
	leaq	96(%rsp), %rax
	movq	%rdx, 80(%rsp)
	movq	%rdx, 88(%rsp)
	movq	%rdx, 96(%rsp)
	movq	%rdx, 104(%rsp)
	movq	%rdx, 112(%rsp)
	movq	%rax, 48(%rsp)
.LEHB8:
	call	_Z8linspaceRSt6vectorIfSaIfEEffi
	movss	.LC11(%rip), %xmm1
	movq	48(%rsp), %rdi
	movl	$41, %esi
	xorps	%xmm0, %xmm0
	call	_Z8linspaceRSt6vectorIfSaIfEEffi
.LEHE8:
	xorl	%eax, %eax
	movl	$41, %edx
	movl	$41, %esi
	movq	%rax, 120(%rsp)
	movq	%rax, 128(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
	movq	%rax, 152(%rsp)
	movq	%rax, 160(%rsp)
	movq	%rax, 168(%rsp)
	movq	%rax, 176(%rsp)
	movq	%rax, 184(%rsp)
	movq	%rax, 192(%rsp)
	movq	%rax, 200(%rsp)
	movq	%rax, 208(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	144(%rsp), %rax
	movq	16(%rsp), %rdi
	movq	%rax, 24(%rsp)
	leaq	168(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	192(%rsp), %rax
	movq	%rax, 56(%rsp)
.LEHB9:
	call	_Z5zerosRSt6vectorIfSaIfEEii
	movq	24(%rsp), %rdi
	movl	$41, %edx
	movl	$41, %esi
	call	_Z5zerosRSt6vectorIfSaIfEEii
	movq	32(%rsp), %rdi
	movl	$41, %edx
	movl	$41, %esi
	call	_Z5zerosRSt6vectorIfSaIfEEii
	movq	56(%rsp), %rdi
	movl	$41, %edx
	movl	$41, %esi
	call	_Z5zerosRSt6vectorIfSaIfEEii
	movss	.LC14(%rip), %xmm2
	movq	32(%rsp), %rcx
	movl	$700, %edi
	movss	.LC12(%rip), %xmm4
	movss	.LC13(%rip), %xmm3
	movss	.LC15(%rip), %xmm0
	movq	24(%rsp), %rdx
	movaps	%xmm2, %xmm1
	movq	16(%rsp), %rsi
	call	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
	leaq	376(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE9:
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC16(%rip), %rsi
.LEHB10:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	8(%rsp), %rdi
	leaq	.LC17(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC18(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	216(%rsp), %rbp
	movq	40(%rsp), %rsi
	movq	%rax, %rbx
	movq	%rbp, %rdi
	call	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.LEHE10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
.LEHB11:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	leaq	.LC19(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	248(%rsp), %r12
	movq	48(%rsp), %rsi
	movq	%rax, %rbx
	movq	%r12, %rdi
	call	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.LEHE11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB12:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	leaq	.LC20(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	280(%rsp), %r13
	movq	32(%rsp), %rsi
	movq	%rax, %r14
	movq	%r13, %rdi
	call	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.LEHE12:
	movq	%r13, %rsi
	movq	%r14, %rdi
.LEHB13:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC22(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	312(%rsp), %r14
	movq	16(%rsp), %rsi
	movq	%rax, %r15
	movq	%r14, %rdi
	call	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.LEHE13:
	movq	%r14, %rsi
	movq	%r15, %rdi
.LEHB14:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC23(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	344(%rsp), %r15
	movq	24(%rsp), %rsi
	movq	%rax, %rbx
	movq	%r15, %rdi
	call	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.LEHE14:
	movq	%r15, %rsi
	movq	%rbx, %rdi
.LEHB15:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	leaq	.LC24(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC25(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE15:
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
.LEHB16:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE16:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	56(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	32(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	888(%rsp), %rax
	subq	%fs:40, %rax
	je	.L149
	jmp	.L158
.L157:
	endbr64
	movq	%rax, %rbx
.L140:
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L141
.L156:
	endbr64
	movq	%rax, %rbx
.L141:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L142
.L155:
	endbr64
	movq	%rax, %rbx
.L142:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L143
.L154:
	endbr64
	movq	%rax, %rbx
.L143:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L144
.L153:
	endbr64
	movq	%rax, %rbx
.L144:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L145
.L152:
	endbr64
	movq	%rax, %rbx
.L145:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L146
.L151:
	endbr64
	movq	%rax, %rbx
.L146:
	movq	56(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	32(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	jmp	.L147
.L150:
	endbr64
	movq	%rax, %rbx
.L147:
	movq	48(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	40(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	888(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L158
	movq	%rbx, %rdi
.LEHB17:
	call	_Unwind_Resume@PLT
.LEHE17:
.L158:
	call	__stack_chk_fail@PLT
.L149:
	addq	$904, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4204:
	.section	.gcc_except_table
.LLSDA4204:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4204-.LLSDACSB4204
.LLSDACSB4204:
	.uleb128 .LEHB8-.LFB4204
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L150-.LFB4204
	.uleb128 0
	.uleb128 .LEHB9-.LFB4204
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L151-.LFB4204
	.uleb128 0
	.uleb128 .LEHB10-.LFB4204
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L152-.LFB4204
	.uleb128 0
	.uleb128 .LEHB11-.LFB4204
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L153-.LFB4204
	.uleb128 0
	.uleb128 .LEHB12-.LFB4204
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L154-.LFB4204
	.uleb128 0
	.uleb128 .LEHB13-.LFB4204
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L155-.LFB4204
	.uleb128 0
	.uleb128 .LEHB14-.LFB4204
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L156-.LFB4204
	.uleb128 0
	.uleb128 .LEHB15-.LFB4204
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L157-.LFB4204
	.uleb128 0
	.uleb128 .LEHB16-.LFB4204
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L152-.LFB4204
	.uleb128 0
	.uleb128 .LEHB17-.LFB4204
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
.LLSDACSE4204:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata
	.align 8
	.type	_ZL7threads, @object
	.size	_ZL7threads, 12
_ZL7threads:
	.long	20
	.long	20
	.long	1
	.align 8
	.type	_ZL9numBlocks, @object
	.size	_ZL9numBlocks, 12
_ZL9numBlocks:
	.long	2
	.long	2
	.long	1
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC11:
	.long	1073741824
	.align 4
.LC12:
	.long	1036831949
	.align 4
.LC13:
	.long	1065353216
	.align 4
.LC14:
	.long	1028443341
	.align 4
.LC15:
	.long	981668463
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <iostream>
#include <vector>
#include <cmath>
#include <sstream>
#include <fstream>
#include <string>

#define I(y, x) ((y) * inx + (x))

using namespace std;

using mat2d = vector<float>;

const int nit = 50;
const float nx = 41.0f;
const float ny = 41.0f;
const size_t inx = static_cast<size_t>(nx);
const size_t iny = static_cast<size_t>(ny);
const size_t sizeofmat = inx * iny * sizeof(float);

const dim3 numBlocks(2, 2);
const dim3 threads(inx / 2, iny / 2);

void linspace(vector<float>& v, float b, float e, int s) {
  v.reserve(s);
  for (int i = 0; i < s; i++) {
    v.push_back(b + e / (s - 1) * i);
  }
}

void zeros(vector<float>& v, int row, int col) {
  v.reserve(row * col);
  for (int i = 0; i < row * col; i++) {
    v.push_back(0);
  }
}

template<class T>
string to_json_1d(const vector<T> &v) {
  stringstream ss;
  ss << "[";
  bool fst = true;
  for (auto e : v) {
    if (!fst) ss << ",";
    fst = false;
    ss << e;
  }
  ss << "]";
  return ss.str();
}

template<class T>
string to_json_2d(const vector<T> &v) {
  stringstream ss;
  ss << "[";
  for (int y = 0; y < iny; y++) {
    if (y > 0) ss << ",";
    ss << "[";
    for (int x = 0; x < inx; x++) {
      if (x > 0) ss << ",";
      ss << v[I(y, x)];
    }
    ss << "]";
  }
  ss << "]";
  return ss.str();
}

float* cudaMalloc_with(mat2d& mat) {
  float *mat_dev;
  hipMalloc(&mat_dev, sizeofmat);
  hipMemcpy(mat_dev, mat.data(), sizeofmat, hipMemcpyHostToDevice);
  return mat_dev;
}

void cudaFree_with(mat2d& mat, float* mat_dev) {
  hipMemcpy(mat.data(), mat_dev, sizeofmat, hipMemcpyDeviceToHost);
  hipFree(mat_dev);
}

__global__ void build_up_b_device(int inx, int iny, float* b, float rho, float dt, float* const u, float* const v, float dx, float dy) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  b[I(y, x)] = (rho * (1.0f / dt *
                ((u[I(y, x + 1)] - u[I(y, x - 1)]) / (2 * dx) +
                 (v[I(y + 1, x)] - v[I(y - 1, x)]) / (2 * dy)) -
                pow((u[I(y, x + 1)] - u[I(y, x - 1)]) / (2 * dx), 2) -
                2 * ((u[I(y + 1, x)] - u[I(y - 1, x)]) / (2 * dy) *
                     (v[I(y, x + 1)] - v[I(y, x - 1)]) / (2 * dx)) -
                pow((v[I(y + 1, x)] - v[I(y - 1, x)]) / (2 * dy), 2)));
}

__global__ void pressure_poisson_device(float* p, float *pn, float dx, float dy, float* b) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  p[I(y, x)] = (((pn[I(y, x + 1)] + pn[I(y, x - 1)]) * dy * dy +
        (pn[I(y + 1, x)] + pn[I(y - 1, x)]) * dx * dx) /
      (2 * (dx * dx + dy * dy)) -
      dx * dx * dy * dy / (2 * (dx * dx + dy * dy)) *
      b[I(y, x)]);
}

__global__ void pressure_poisson_finish_device(float *p) {
  const int width = inx;
  const int height = iny;

  for (int y = 0; y < height; y++)
    p[I(y, width - 1)] = p[I(y, width - 2)];
  for (int x = 0; x < width; x++)
    p[I(0, x)] = p[I(1, x)];
  for (int y = 0; y < height; y++)
    p[I(y, 0)] = p[I(y, 1)];
  for (int x = 0; x < width; x++)
    p[I(height - 1, x)] = 0.0f;
}

void pressure_poisson(float* p_dev, float dx, float dy, float* b_dev) {
  float *pn_dev;
  hipMalloc(&pn_dev, sizeofmat);

  for (int i = 0; i < nit; i++) {
    hipMemcpy(pn_dev, p_dev, sizeofmat, hipMemcpyDeviceToDevice);

    pressure_poisson_device<<<numBlocks, threads>>>(p_dev, pn_dev, dx, dy, b_dev);
    hipDeviceSynchronize();
    pressure_poisson_finish_device<<<1, 1>>>(p_dev);
    hipDeviceSynchronize();
  }

  hipFree(pn_dev);
}

__global__ void cavity_flow_device(float* u, float* v, float* un, float* vn,
    float dt, float dx, float dy, float* p, float rho, float nu) {
  int x = blockIdx.x * blockDim.x + threadIdx.x;
  int y = blockIdx.y * blockDim.y + threadIdx.y;

  if (x < 1 || inx - 1 <= x || y < 1 || iny - 1 <= y) return;

  u[I(y, x)] = (un[I(y, x)] -
      un[I(y, x)] * dt / dx *
      (un[I(y, x)] - un[I(y, x - 1)]) -
      vn[I(y, x)] * dt / dy *
      (un[I(y, x)] - un[I(y - 1, x)]) -
      dt / (2 * rho * dx) * (p[I(y, x + 1)] - p[I(y, x - 1)]) +
      nu * (dt / (dx * dx) *
        (un[I(y, x + 1)] - 2 * un[I(y, x)] + un[I(y, x - 1)]) +
        dt / (dy * dy) *
        (un[I(y + 1, x)] - 2 * un[I(y, x)] + un[I(y - 1, x)])));

  v[I(y, x)] = (vn[I(y, x)] -
      un[I(y, x)] * dt / dx *
      (vn[I(y, x)] - vn[I(y, x - 1)]) -
      vn[I(y, x)] * dt / dy *
      (vn[I(y, x)] - vn[I(y - 1, x)]) -
      dt / (2 * rho * dy) * (p[I(y + 1, x)] - p[I(y - 1, x)]) +
      nu * (dt / (dx * dx) *
        (vn[I(y, x + 1)] - 2 * vn[I(y, x)] + vn[I(y, x - 1)]) +
        dt / (dy * dy) *
        (vn[I(y + 1, x)] - 2 * vn[I(y, x)] + vn[I(y - 1, x)])));
}

__global__ void cavity_flow_finish_device(float* u, float* v) {
  const int width = inx;
  const int height = iny;

  for (int x = 0; x < width; x++) {
    u[I(0, x)] = 0.0f;
  }
  for (int y = 0; y < height; y++) {
    u[I(y, 0)] = 0.0f;
    u[I(y, width - 1)] = 0.0f;
  }
  for (int x = 0; x < width; x++) {
    u[I(height - 1, x)] = 1.0f;
  }

  for (int x = 0; x < width; x++) {
    v[I(0, x)] = 0.0f;
    v[I(width - 1, x)] = 0.0f;
  }
  for (int y = 0; y < height; y++) {
    v[I(y, 0)] = 0.0f;
    v[I(y, width - 1)] = 0.0f;
  }
}

void cavity_flow(int nt, mat2d& u, mat2d& v, float dt, float dx, float dy, mat2d& p, float rho, float nu) {
  mat2d b;
  zeros(b, iny, inx);

  float *b_dev = cudaMalloc_with(b);
  float *u_dev = cudaMalloc_with(u);
  float *v_dev = cudaMalloc_with(v);
  float *un_dev; hipMalloc(&un_dev, sizeofmat);
  float *vn_dev; hipMalloc(&vn_dev, sizeofmat);
  float *p_dev = cudaMalloc_with(p);

  for (int i = 0; i < nt; i++) {
    hipMemcpy(un_dev, u_dev, sizeofmat, hipMemcpyDeviceToDevice);
    hipMemcpy(vn_dev, v_dev, sizeofmat, hipMemcpyDeviceToDevice);

    build_up_b_device<<<numBlocks, threads>>>(inx, iny, b_dev, rho, dt, u_dev, v_dev, dx, dy);
    hipDeviceSynchronize();

    pressure_poisson(p_dev, dx, dy, b_dev);

    cavity_flow_device<<<numBlocks, threads>>>(u_dev, v_dev, un_dev, vn_dev, dt, dx, dy, p_dev, rho, nu);
    hipDeviceSynchronize();

    cavity_flow_finish_device<<<1, 1>>>(u_dev, v_dev);
    hipDeviceSynchronize();
  }

  hipFree(b_dev);
  cudaFree_with(u, u_dev);
  cudaFree_with(v, v_dev);
  hipFree(un_dev);
  hipFree(vn_dev);
  cudaFree_with(p, p_dev);
}

int main() {
  int nt = 700;
  float dx = 2.0f / (nx - 1.0f);
  float dy = 2.0f / (ny - 1.0f);

  vector<float> x;
  vector<float> y;
  linspace(x, 0.0f, 2.0f, inx);
  linspace(y, 0.0f, 2.0f, iny);

  float rho = 1.0f;
  float nu = 0.1f;
  float dt = 0.001f;

  mat2d u, v, p, b;
  zeros(u, iny, inx);
  zeros(v, iny, inx);
  zeros(p, iny, inx);
  zeros(b, iny, inx);

  cavity_flow(nt, u, v, dt, dx, dy, p, rho, nu);

  ofstream output;
  output.open("cavity-cuda.json");
  output << "{\n" <<
    "\"x\": " << to_json_1d(x) << ", \"y\": " << to_json_1d(y) << ",\n" <<
    "\"p\": " << to_json_2d(p) << ",\n" <<
    "\"u\": " << to_json_2d(u) << ",\n" <<
    "\"v\": " << to_json_2d(v) << "\n" << "}\n";
  output.close();

  return 0;
}

	.text
	.file	"13_cavity-cuda.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z8linspaceRSt6vectorIfSaIfEEffi # -- Begin function _Z8linspaceRSt6vectorIfSaIfEEffi
	.type	_Z8linspaceRSt6vectorIfSaIfEEffi,@function
_Z8linspaceRSt6vectorIfSaIfEEffi:       # @_Z8linspaceRSt6vectorIfSaIfEEffi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebx
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	movq	%rdi, %r14
	movslq	%esi, %r15
	movq	%r15, %rsi
	callq	_ZNSt6vectorIfSaIfEE7reserveEm
	movss	16(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	testl	%r15d, %r15d
	jle	.LBB0_6
# %bb.1:                                # %.lr.ph
	leal	-1(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	%xmm0, %xmm1
	xorl	%ebp, %ebp
	leaq	20(%rsp), %r15
	movss	%xmm1, 12(%rsp)                 # 4-byte Spill
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebp, %xmm0
	mulss	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	movss	%xmm0, 20(%rsp)
	movq	8(%r14), %rsi
	cmpq	16(%r14), %rsi
	je	.LBB0_4
# %bb.3:                                #   in Loop: Header=BB0_2 Depth=1
	movss	%xmm0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r14)
	jmp	.LBB0_5
.LBB0_4:                                #   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	movss	16(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
.LBB0_5:                                # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	incl	%ebp
	cmpl	%ebp, %ebx
	jne	.LBB0_2
.LBB0_6:                                # %._crit_edge
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z8linspaceRSt6vectorIfSaIfEEffi, .Lfunc_end0-_Z8linspaceRSt6vectorIfSaIfEEffi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE7reserveEm,"axG",@progbits,_ZNSt6vectorIfSaIfEE7reserveEm,comdat
	.weak	_ZNSt6vectorIfSaIfEE7reserveEm  # -- Begin function _ZNSt6vectorIfSaIfEE7reserveEm
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE7reserveEm,@function
_ZNSt6vectorIfSaIfEE7reserveEm:         # @_ZNSt6vectorIfSaIfEE7reserveEm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB1_8
# %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	16(%rdi), %rax
	subq	%r13, %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jae	.LBB1_7
# %bb.2:                                # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	subq	%rsi, %rdx
	testq	%rdx, %rdx
	jle	.LBB1_4
# %bb.3:
	movq	%r15, %rdi
	callq	memmove@PLT
	movq	(%rbx), %rsi
.LBB1_4:                                # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	subq	%r13, %r12
	testq	%rsi, %rsi
	je	.LBB1_6
# %bb.5:
	movq	%rsi, %rdi
	callq	_ZdlPv
.LBB1_6:                                # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	movq	%r15, (%rbx)
	addq	%r15, %r12
	movq	%r12, 8(%rbx)
	leaq	(%r15,%r14,4), %rax
	movq	%rax, 16(%rbx)
.LBB1_7:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB1_8:
	.cfi_def_cfa_offset 48
	movl	$.L.str.10, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end1:
	.size	_ZNSt6vectorIfSaIfEE7reserveEm, .Lfunc_end1-_ZNSt6vectorIfSaIfEE7reserveEm
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z5zerosRSt6vectorIfSaIfEEii    # -- Begin function _Z5zerosRSt6vectorIfSaIfEEii
	.type	_Z5zerosRSt6vectorIfSaIfEEii,@function
_Z5zerosRSt6vectorIfSaIfEEii:           # @_Z5zerosRSt6vectorIfSaIfEEii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%esi, %ebx
	movq	%rdi, %r14
	imull	%edx, %ebx
	movslq	%ebx, %r15
	movq	%r15, %rsi
	callq	_ZNSt6vectorIfSaIfEE7reserveEm
	testl	%r15d, %r15d
	jle	.LBB2_6
# %bb.1:
	leaq	12(%rsp), %r15
.LBB2_2:                                # =>This Inner Loop Header: Depth=1
	movl	$0, 12(%rsp)
	movq	8(%r14), %rsi
	cmpq	16(%r14), %rsi
	je	.LBB2_4
# %bb.3:                                #   in Loop: Header=BB2_2 Depth=1
	movl	$0, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 8(%r14)
	jmp	.LBB2_5
.LBB2_4:                                #   in Loop: Header=BB2_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.LBB2_5:                                # %_ZNSt6vectorIfSaIfEE9push_backEOf.exit
                                        #   in Loop: Header=BB2_2 Depth=1
	decl	%ebx
	jne	.LBB2_2
.LBB2_6:                                # %._crit_edge
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z5zerosRSt6vectorIfSaIfEEii, .Lfunc_end2-_Z5zerosRSt6vectorIfSaIfEEii
	.cfi_endproc
                                        # -- End function
	.globl	_Z15cudaMalloc_withRSt6vectorIfSaIfEE # -- Begin function _Z15cudaMalloc_withRSt6vectorIfSaIfEE
	.type	_Z15cudaMalloc_withRSt6vectorIfSaIfEE,@function
_Z15cudaMalloc_withRSt6vectorIfSaIfEE:  # @_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	movq	%rsp, %r14
	movl	$6724, %esi                     # imm = 0x1A44
	movq	%r14, %rdi
	callq	hipMalloc
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	movl	$6724, %edx                     # imm = 0x1A44
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r14), %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z15cudaMalloc_withRSt6vectorIfSaIfEE, .Lfunc_end3-_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	.cfi_endproc
                                        # -- End function
	.globl	_Z13cudaFree_withRSt6vectorIfSaIfEEPf # -- Begin function _Z13cudaFree_withRSt6vectorIfSaIfEEPf
	.type	_Z13cudaFree_withRSt6vectorIfSaIfEEPf,@function
_Z13cudaFree_withRSt6vectorIfSaIfEEPf:  # @_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movl	$6724, %edx                     # imm = 0x1A44
	movl	$2, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	hipFree                         # TAILCALL
.Lfunc_end4:
	.size	_Z13cudaFree_withRSt6vectorIfSaIfEEPf, .Lfunc_end4-_Z13cudaFree_withRSt6vectorIfSaIfEEPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff # -- Begin function _Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
	.type	_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff,@function
_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff: # @_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	20(%rsp), %rax
	movl	%edi, (%rax)
	leaq	16(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	12(%rsp), %rdx
	movss	%xmm0, (%rdx)
	leaq	8(%rsp), %r9
	movss	%xmm1, (%r9)
	leaq	48(%rsp), %r10
	movq	%rcx, (%r10)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	4(%rsp), %r8
	movss	%xmm2, (%r8)
	movq	%rsp, %r11
	movss	%xmm3, (%r11)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r9, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%rcx, 48(%rbx)
	movq	%r8, 56(%rbx)
	movq	%r11, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17build_up_b_deviceiiPfffS_S_ff, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff, .Lfunc_end5-_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
	.cfi_endproc
                                        # -- End function
	.globl	_Z38__device_stub__pressure_poisson_devicePfS_ffS_ # -- Begin function _Z38__device_stub__pressure_poisson_devicePfS_ffS_
	.type	_Z38__device_stub__pressure_poisson_devicePfS_ffS_,@function
_Z38__device_stub__pressure_poisson_devicePfS_ffS_: # @_Z38__device_stub__pressure_poisson_devicePfS_ffS_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	4(%rsp), %rsi
	movss	%xmm0, (%rsi)
	movq	%rsp, %rdi
	movss	%xmm1, (%rdi)
	leaq	24(%rsp), %r8
	movq	%rdx, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdi, 24(%rbx)
	movq	%r8, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z23pressure_poisson_devicePfS_ffS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z38__device_stub__pressure_poisson_devicePfS_ffS_, .Lfunc_end6-_Z38__device_stub__pressure_poisson_devicePfS_ffS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z45__device_stub__pressure_poisson_finish_devicePf # -- Begin function _Z45__device_stub__pressure_poisson_finish_devicePf
	.type	_Z45__device_stub__pressure_poisson_finish_devicePf,@function
_Z45__device_stub__pressure_poisson_finish_devicePf: # @_Z45__device_stub__pressure_poisson_finish_devicePf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z30pressure_poisson_finish_devicePf, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z45__device_stub__pressure_poisson_finish_devicePf, .Lfunc_end7-_Z45__device_stub__pressure_poisson_finish_devicePf
	.cfi_endproc
                                        # -- End function
	.globl	_Z16pressure_poissonPfffS_      # -- Begin function _Z16pressure_poissonPfffS_
	.type	_Z16pressure_poissonPfffS_,@function
_Z16pressure_poissonPfffS_:             # @_Z16pressure_poissonPfffS_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movss	%xmm1, 20(%rsp)                 # 4-byte Spill
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	movq	%rdi, %r14
	movabsq	$4294967297, %r15               # imm = 0x100000001
	leaq	8(%rsp), %rdi
	movl	$6724, %esi                     # imm = 0x1A44
	callq	hipMalloc
	movl	$50, %ebp
	movabsq	$8589934594, %r12               # imm = 0x200000002
	movabsq	$85899345940, %r13              # imm = 0x1400000014
.LBB8_1:                                # =>This Inner Loop Header: Depth=1
	movq	8(%rsp), %rdi
	movl	$6724, %edx                     # imm = 0x1A44
	movq	%r14, %rsi
	movl	$3, %ecx
	callq	hipMemcpy
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_3
# %bb.2:                                #   in Loop: Header=BB8_1 Depth=1
	movq	8(%rsp), %rsi
	movq	%r14, %rdi
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	20(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movq	%rbx, %rdx
	callq	_Z38__device_stub__pressure_poisson_devicePfS_ffS_
.LBB8_3:                                #   in Loop: Header=BB8_1 Depth=1
	callq	hipDeviceSynchronize
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_5
# %bb.4:                                #   in Loop: Header=BB8_1 Depth=1
	movq	%r14, %rdi
	callq	_Z45__device_stub__pressure_poisson_finish_devicePf
.LBB8_5:                                #   in Loop: Header=BB8_1 Depth=1
	callq	hipDeviceSynchronize
	decl	%ebp
	jne	.LBB8_1
# %bb.6:
	movq	8(%rsp), %rdi
	callq	hipFree
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z16pressure_poissonPfffS_, .Lfunc_end8-_Z16pressure_poissonPfffS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff # -- Begin function _Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
	.type	_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff,@function
_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff: # @_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	20(%rsp), %rcx
	movss	%xmm0, (%rcx)
	leaq	16(%rsp), %r9
	movss	%xmm1, (%r9)
	leaq	12(%rsp), %r10
	movss	%xmm2, (%r10)
	leaq	40(%rsp), %r11
	movq	%r8, (%r11)
	leaq	8(%rsp), %r8
	movss	%xmm3, (%r8)
	leaq	4(%rsp), %r14
	movss	%xmm4, (%r14)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r9, 40(%rbx)
	movq	%r10, 48(%rbx)
	movq	%r11, 56(%rbx)
	movq	%r8, 64(%rbx)
	movq	%r14, 72(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18cavity_flow_devicePfS_S_S_fffS_ff, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff, .Lfunc_end9-_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
	.cfi_endproc
                                        # -- End function
	.globl	_Z40__device_stub__cavity_flow_finish_devicePfS_ # -- Begin function _Z40__device_stub__cavity_flow_finish_devicePfS_
	.type	_Z40__device_stub__cavity_flow_finish_devicePfS_,@function
_Z40__device_stub__cavity_flow_finish_devicePfS_: # @_Z40__device_stub__cavity_flow_finish_devicePfS_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z25cavity_flow_finish_devicePfS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z40__device_stub__cavity_flow_finish_devicePfS_, .Lfunc_end10-_Z40__device_stub__cavity_flow_finish_devicePfS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff # -- Begin function _Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
	.type	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff,@function
_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff: # @_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movss	%xmm4, 52(%rsp)                 # 4-byte Spill
	movss	%xmm3, 28(%rsp)                 # 4-byte Spill
	movq	%rcx, %r15
	movss	%xmm2, 12(%rsp)                 # 4-byte Spill
	movss	%xmm1, 8(%rsp)                  # 4-byte Spill
	movss	%xmm0, 24(%rsp)                 # 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %ebp
	xorps	%xmm0, %xmm0
	leaq	80(%rsp), %rdi
	movaps	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
.Ltmp0:
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z5zerosRSt6vectorIfSaIfEEii
.Ltmp1:
# %bb.1:
.Ltmp3:
	leaq	16(%rsp), %rdi
	movl	$6724, %esi                     # imm = 0x1A44
	callq	hipMalloc
.Ltmp4:
# %bb.2:                                # %.noexc
	movq	16(%rsp), %rdi
	movq	80(%rsp), %rsi
.Ltmp5:
	movl	$6724, %edx                     # imm = 0x1A44
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp6:
# %bb.3:
	movq	16(%rsp), %r14
.Ltmp8:
	movq	%rbx, 72(%rsp)                  # 8-byte Spill
	movq	%rbx, %rdi
	callq	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
.Ltmp9:
# %bb.4:
.Ltmp11:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
.Ltmp12:
# %bb.5:
.Ltmp14:
	movq	%rax, %r13
	leaq	16(%rsp), %rdi
	movl	$6724, %esi                     # imm = 0x1A44
	callq	hipMalloc
.Ltmp15:
# %bb.6:                                # %_ZL9hipMallocIfE10hipError_tPPT_m.exit
.Ltmp17:
	leaq	40(%rsp), %rdi
	movl	$6724, %esi                     # imm = 0x1A44
	callq	hipMalloc
.Ltmp18:
# %bb.7:                                # %_ZL9hipMallocIfE10hipError_tPPT_m.exit75
.Ltmp20:
	movq	%r12, 64(%rsp)                  # 8-byte Spill
	movq	%r15, 56(%rsp)                  # 8-byte Spill
	movq	%r15, %rdi
	callq	_Z15cudaMalloc_withRSt6vectorIfSaIfEE
	movq	%rax, 32(%rsp)                  # 8-byte Spill
.Ltmp21:
# %bb.8:                                # %.preheader
	testl	%ebp, %ebp
	jle	.LBB11_26
# %bb.9:
	movabsq	$85899345940, %r12              # imm = 0x1400000014
	movabsq	$4294967297, %r15               # imm = 0x100000001
.LBB11_10:                              # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	16(%rsp), %rdi
.Ltmp22:
	movl	$6724, %edx                     # imm = 0x1A44
	movq	%rbx, %rsi
	movl	$3, %ecx
	callq	hipMemcpy
.Ltmp23:
# %bb.11:                               #   in Loop: Header=BB11_10 Depth=1
	movq	40(%rsp), %rdi
.Ltmp24:
	movl	$6724, %edx                     # imm = 0x1A44
	movq	%r13, %rsi
	movl	$3, %ecx
	callq	hipMemcpy
.Ltmp25:
# %bb.12:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp26:
	movabsq	$8589934594, %rdi               # imm = 0x200000002
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp27:
# %bb.13:                               #   in Loop: Header=BB11_10 Depth=1
	testl	%eax, %eax
	jne	.LBB11_15
# %bb.14:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp28:
	movl	$41, %edi
	movl	$41, %esi
	movq	%r14, %rdx
	movss	28(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	24(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movq	%rbx, %rcx
	movq	%r13, %r8
	movss	8(%rsp), %xmm2                  # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	callq	_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
.Ltmp29:
.LBB11_15:                              #   in Loop: Header=BB11_10 Depth=1
.Ltmp30:
	callq	hipDeviceSynchronize
.Ltmp31:
# %bb.16:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp32:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movss	8(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movq	%r14, %rsi
	callq	_Z16pressure_poissonPfffS_
.Ltmp33:
# %bb.17:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp34:
	movabsq	$8589934594, %rdi               # imm = 0x200000002
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp35:
# %bb.18:                               #   in Loop: Header=BB11_10 Depth=1
	testl	%eax, %eax
	jne	.LBB11_20
# %bb.19:                               #   in Loop: Header=BB11_10 Depth=1
	movq	16(%rsp), %rdx
	movq	40(%rsp), %rcx
.Ltmp36:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movss	24(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movss	8(%rsp), %xmm1                  # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	movss	12(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movq	32(%rsp), %r8                   # 8-byte Reload
	movss	28(%rsp), %xmm3                 # 4-byte Reload
                                        # xmm3 = mem[0],zero,zero,zero
	movss	52(%rsp), %xmm4                 # 4-byte Reload
                                        # xmm4 = mem[0],zero,zero,zero
	callq	_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
.Ltmp37:
.LBB11_20:                              #   in Loop: Header=BB11_10 Depth=1
.Ltmp38:
	callq	hipDeviceSynchronize
.Ltmp39:
# %bb.21:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp40:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp41:
# %bb.22:                               #   in Loop: Header=BB11_10 Depth=1
	testl	%eax, %eax
	jne	.LBB11_24
# %bb.23:                               #   in Loop: Header=BB11_10 Depth=1
.Ltmp42:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_Z40__device_stub__cavity_flow_finish_devicePfS_
.Ltmp43:
.LBB11_24:                              #   in Loop: Header=BB11_10 Depth=1
.Ltmp44:
	callq	hipDeviceSynchronize
.Ltmp45:
# %bb.25:                               #   in Loop: Header=BB11_10 Depth=1
	decl	%ebp
	jne	.LBB11_10
.LBB11_26:                              # %._crit_edge
.Ltmp47:
	movq	%r14, %rdi
	callq	hipFree
.Ltmp48:
# %bb.27:
	movq	72(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
.Ltmp49:
	movl	$6724, %edx                     # imm = 0x1A44
	movq	%rbx, %rsi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp50:
# %bb.28:                               # %.noexc76
.Ltmp51:
	movq	%rbx, %rdi
	callq	hipFree
.Ltmp52:
# %bb.29:                               # %_Z13cudaFree_withRSt6vectorIfSaIfEEPf.exit
	movq	64(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
.Ltmp53:
	movl	$6724, %edx                     # imm = 0x1A44
	movq	%r13, %rsi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp54:
# %bb.30:                               # %.noexc78
.Ltmp55:
	movq	%r13, %rdi
	callq	hipFree
.Ltmp56:
# %bb.31:                               # %_Z13cudaFree_withRSt6vectorIfSaIfEEPf.exit80
	movq	16(%rsp), %rdi
.Ltmp57:
	callq	hipFree
.Ltmp58:
# %bb.32:
	movq	40(%rsp), %rdi
.Ltmp59:
	callq	hipFree
.Ltmp60:
# %bb.33:
	movq	56(%rsp), %rax                  # 8-byte Reload
	movq	(%rax), %rdi
.Ltmp61:
	movl	$6724, %edx                     # imm = 0x1A44
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp62:
# %bb.34:                               # %.noexc81
.Ltmp63:
	movq	32(%rsp), %rdi                  # 8-byte Reload
	callq	hipFree
.Ltmp64:
# %bb.35:                               # %_Z13cudaFree_withRSt6vectorIfSaIfEEPf.exit83
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB11_37
# %bb.36:
	callq	_ZdlPv
.LBB11_37:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB11_45:
	.cfi_def_cfa_offset 160
.Ltmp19:
	jmp	.LBB11_46
.LBB11_42:
.Ltmp16:
	jmp	.LBB11_46
.LBB11_41:
.Ltmp13:
	jmp	.LBB11_46
.LBB11_40:
.Ltmp10:
	jmp	.LBB11_46
.LBB11_38:
.Ltmp2:
	jmp	.LBB11_46
.LBB11_39:
.Ltmp7:
	jmp	.LBB11_46
.LBB11_43:
.Ltmp65:
	jmp	.LBB11_46
.LBB11_44:
.Ltmp46:
.LBB11_46:
	movq	%rax, %rbx
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB11_48
# %bb.47:
	callq	_ZdlPv
.LBB11_48:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit85
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end11:
	.size	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff, .Lfunc_end11-_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table11:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp6-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin0          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp12-.Ltmp11                #   Call between .Ltmp11 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp18-.Ltmp17                #   Call between .Ltmp17 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp21-.Ltmp20                #   Call between .Ltmp20 and .Ltmp21
	.uleb128 .Ltmp65-.Lfunc_begin0          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp45-.Ltmp22                #   Call between .Ltmp22 and .Ltmp45
	.uleb128 .Ltmp46-.Lfunc_begin0          #     jumps to .Ltmp46
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp47-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp64-.Ltmp47                #   Call between .Ltmp47 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin0          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Lfunc_end11-.Ltmp64           #   Call between .Ltmp64 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI12_0:
	.long	0x40000000                      # float 2
.LCPI12_1:
	.long	0x3a83126f                      # float 0.00100000005
.LCPI12_2:
	.long	0x3d4ccccd                      # float 0.0500000007
.LCPI12_3:
	.long	0x3f800000                      # float 1
.LCPI12_4:
	.long	0x3dcccccd                      # float 0.100000001
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$864, %rsp                      # imm = 0x360
	.cfi_def_cfa_offset 880
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	leaq	160(%rsp), %rdi
	movaps	%xmm0, (%rdi)
	xorl	%eax, %eax
	movq	%rax, 16(%rdi)
	movq	%rax, 80(%rsp)
	movaps	%xmm0, 64(%rsp)
.Ltmp66:
	movss	.LCPI12_0(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	movl	$41, %esi
	callq	_Z8linspaceRSt6vectorIfSaIfEEffi
.Ltmp67:
# %bb.1:
.Ltmp68:
	leaq	64(%rsp), %rdi
	movss	.LCPI12_0(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	movl	$41, %esi
	callq	_Z8linspaceRSt6vectorIfSaIfEEffi
.Ltmp69:
# %bb.2:
	xorps	%xmm0, %xmm0
	leaq	128(%rsp), %rdi
	movaps	%xmm0, (%rdi)
	xorl	%eax, %eax
	movq	%rax, 16(%rdi)
	movq	%rax, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	movq	%rax, 16(%rsp)
	movaps	%xmm0, (%rsp)
	movq	%rax, 112(%rsp)
	movaps	%xmm0, 96(%rsp)
.Ltmp71:
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z5zerosRSt6vectorIfSaIfEEii
.Ltmp72:
# %bb.3:
.Ltmp73:
	leaq	32(%rsp), %rdi
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z5zerosRSt6vectorIfSaIfEEii
.Ltmp74:
# %bb.4:
.Ltmp75:
	movq	%rsp, %rdi
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z5zerosRSt6vectorIfSaIfEEii
.Ltmp76:
# %bb.5:
.Ltmp77:
	leaq	96(%rsp), %rdi
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z5zerosRSt6vectorIfSaIfEEii
.Ltmp78:
# %bb.6:
.Ltmp79:
	leaq	128(%rsp), %rsi
	leaq	32(%rsp), %rdx
	movss	.LCPI12_1(%rip), %xmm0          # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI12_2(%rip), %xmm1          # xmm1 = mem[0],zero,zero,zero
	movq	%rsp, %rcx
	movss	.LCPI12_3(%rip), %xmm3          # xmm3 = mem[0],zero,zero,zero
	movss	.LCPI12_4(%rip), %xmm4          # xmm4 = mem[0],zero,zero,zero
	movl	$700, %edi                      # imm = 0x2BC
	movaps	%xmm1, %xmm2
	callq	_Z11cavity_flowiRSt6vectorIfSaIfEES2_fffS2_ff
.Ltmp80:
# %bb.7:
.Ltmp82:
	leaq	352(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp83:
# %bb.8:
.Ltmp85:
	leaq	352(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp86:
# %bb.9:
.Ltmp87:
	leaq	352(%rsp), %rdi
	movl	$.L.str.1, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp88:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp89:
	leaq	352(%rsp), %rdi
	movl	$.L.str.2, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp90:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit35
.Ltmp91:
	leaq	320(%rsp), %rdi
	leaq	160(%rsp), %rsi
	callq	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Ltmp92:
# %bb.12:
	movq	320(%rsp), %rsi
	movq	328(%rsp), %rdx
.Ltmp94:
	leaq	352(%rsp), %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp95:
# %bb.13:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
.Ltmp96:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$7, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp97:
# %bb.14:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit36
.Ltmp99:
	leaq	288(%rsp), %rdi
	leaq	64(%rsp), %rsi
	callq	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Ltmp100:
# %bb.15:
	movq	288(%rsp), %rsi
	movq	296(%rsp), %rdx
.Ltmp102:
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp103:
# %bb.16:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit37
.Ltmp104:
	movq	%rax, %rbx
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp105:
# %bb.17:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit38
.Ltmp106:
	movl	$.L.str.5, %esi
	movl	$5, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp107:
# %bb.18:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit39
.Ltmp109:
	leaq	256(%rsp), %rdi
	movq	%rsp, %rsi
	callq	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Ltmp110:
# %bb.19:
	movq	256(%rsp), %rsi
	movq	264(%rsp), %rdx
.Ltmp112:
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp113:
# %bb.20:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit40
.Ltmp114:
	movq	%rax, %rbx
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp115:
# %bb.21:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit41
.Ltmp116:
	movl	$.L.str.6, %esi
	movl	$5, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp117:
# %bb.22:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit42
.Ltmp119:
	leaq	224(%rsp), %rdi
	leaq	128(%rsp), %rsi
	callq	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Ltmp120:
# %bb.23:
	movq	224(%rsp), %rsi
	movq	232(%rsp), %rdx
.Ltmp122:
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp123:
# %bb.24:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit43
.Ltmp124:
	movq	%rax, %rbx
	movl	$.L.str.4, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp125:
# %bb.25:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit44
.Ltmp126:
	movl	$.L.str.7, %esi
	movl	$5, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp127:
# %bb.26:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit45
.Ltmp129:
	leaq	192(%rsp), %rdi
	leaq	32(%rsp), %rsi
	callq	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Ltmp130:
# %bb.27:
	movq	192(%rsp), %rsi
	movq	200(%rsp), %rdx
.Ltmp132:
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp133:
# %bb.28:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit46
.Ltmp134:
	movq	%rax, %rbx
	movl	$.L.str.8, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp135:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit47
.Ltmp136:
	movl	$.L.str.9, %esi
	movl	$2, %edx
	movq	%rbx, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp137:
# %bb.30:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit48
	leaq	208(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_32
# %bb.31:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB12_32:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	leaq	240(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_34
# %bb.33:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
.LBB12_34:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	leaq	272(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_36
# %bb.35:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i52
	callq	_ZdlPv
.LBB12_36:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit54
	leaq	304(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_38
# %bb.37:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i55
	callq	_ZdlPv
.LBB12_38:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit57
	leaq	336(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_40
# %bb.39:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i58
	callq	_ZdlPv
.LBB12_40:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit60
.Ltmp139:
	leaq	352(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp140:
# %bb.41:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	360(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 352(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	600(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_43
# %bb.42:
	callq	_ZdlPv
.LBB12_43:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_45
# %bb.44:
	callq	_ZdlPv
.LBB12_45:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit62
	movq	32(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_47
# %bb.46:
	callq	_ZdlPv
.LBB12_47:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit64
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_49
# %bb.48:
	callq	_ZdlPv
.LBB12_49:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit66
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_51
# %bb.50:
	callq	_ZdlPv
.LBB12_51:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit68
	movq	160(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_53
# %bb.52:
	callq	_ZdlPv
.LBB12_53:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit70
	xorl	%eax, %eax
	addq	$864, %rsp                      # imm = 0x360
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB12_54:
	.cfi_def_cfa_offset 880
.Ltmp131:
	jmp	.LBB12_66
.LBB12_55:
.Ltmp121:
	jmp	.LBB12_70
.LBB12_56:
.Ltmp111:
	jmp	.LBB12_74
.LBB12_57:
.Ltmp101:
	jmp	.LBB12_61
.LBB12_58:
.Ltmp93:
	jmp	.LBB12_80
.LBB12_59:
.Ltmp84:
	jmp	.LBB12_96
.LBB12_60:
.Ltmp98:
.LBB12_61:
	movq	%rax, %rbx
	jmp	.LBB12_77
.LBB12_62:
.Ltmp70:
	movq	%rax, %rbx
	jmp	.LBB12_90
.LBB12_63:
.Ltmp138:
	movq	%rax, %rbx
	leaq	208(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_67
# %bb.64:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i71
	callq	_ZdlPv
	jmp	.LBB12_67
.LBB12_65:
.Ltmp128:
.LBB12_66:
	movq	%rax, %rbx
.LBB12_67:
	leaq	240(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_71
# %bb.68:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i74
	callq	_ZdlPv
	jmp	.LBB12_71
.LBB12_69:
.Ltmp118:
.LBB12_70:
	movq	%rax, %rbx
.LBB12_71:
	leaq	272(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_75
# %bb.72:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i77
	callq	_ZdlPv
	jmp	.LBB12_75
.LBB12_73:
.Ltmp108:
.LBB12_74:
	movq	%rax, %rbx
.LBB12_75:
	leaq	304(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_77
# %bb.76:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i80
	callq	_ZdlPv
.LBB12_77:
	leaq	336(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB12_81
# %bb.78:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i83
	callq	_ZdlPv
	jmp	.LBB12_81
.LBB12_79:
.Ltmp141:
.LBB12_80:
	movq	%rax, %rbx
.LBB12_81:
	leaq	352(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	jmp	.LBB12_82
.LBB12_95:
.Ltmp81:
.LBB12_96:
	movq	%rax, %rbx
.LBB12_82:
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_84
# %bb.83:
	callq	_ZdlPv
.LBB12_84:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit87
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_86
# %bb.85:
	callq	_ZdlPv
.LBB12_86:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit89
	movq	32(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_88
# %bb.87:
	callq	_ZdlPv
.LBB12_88:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit91
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_90
# %bb.89:
	callq	_ZdlPv
.LBB12_90:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_92
# %bb.91:
	callq	_ZdlPv
.LBB12_92:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit95
	movq	160(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_94
# %bb.93:
	callq	_ZdlPv
.LBB12_94:                              # %_ZNSt6vectorIfSaIfEED2Ev.exit97
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end12:
	.size	main, .Lfunc_end12-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table12:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp66-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp69-.Ltmp66                #   Call between .Ltmp66 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin1          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp80-.Ltmp71                #   Call between .Ltmp71 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin1          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp83-.Ltmp82                #   Call between .Ltmp82 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin1          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp90-.Ltmp85                #   Call between .Ltmp85 and .Ltmp90
	.uleb128 .Ltmp141-.Lfunc_begin1         #     jumps to .Ltmp141
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp92-.Ltmp91                #   Call between .Ltmp91 and .Ltmp92
	.uleb128 .Ltmp93-.Lfunc_begin1          #     jumps to .Ltmp93
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp94-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp97-.Ltmp94                #   Call between .Ltmp94 and .Ltmp97
	.uleb128 .Ltmp98-.Lfunc_begin1          #     jumps to .Ltmp98
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp99-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp100-.Ltmp99               #   Call between .Ltmp99 and .Ltmp100
	.uleb128 .Ltmp101-.Lfunc_begin1         #     jumps to .Ltmp101
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp102-.Lfunc_begin1         # >> Call Site 8 <<
	.uleb128 .Ltmp107-.Ltmp102              #   Call between .Ltmp102 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin1         #     jumps to .Ltmp108
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp109-.Lfunc_begin1         # >> Call Site 9 <<
	.uleb128 .Ltmp110-.Ltmp109              #   Call between .Ltmp109 and .Ltmp110
	.uleb128 .Ltmp111-.Lfunc_begin1         #     jumps to .Ltmp111
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp112-.Lfunc_begin1         # >> Call Site 10 <<
	.uleb128 .Ltmp117-.Ltmp112              #   Call between .Ltmp112 and .Ltmp117
	.uleb128 .Ltmp118-.Lfunc_begin1         #     jumps to .Ltmp118
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp119-.Lfunc_begin1         # >> Call Site 11 <<
	.uleb128 .Ltmp120-.Ltmp119              #   Call between .Ltmp119 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin1         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin1         # >> Call Site 12 <<
	.uleb128 .Ltmp127-.Ltmp122              #   Call between .Ltmp122 and .Ltmp127
	.uleb128 .Ltmp128-.Lfunc_begin1         #     jumps to .Ltmp128
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp129-.Lfunc_begin1         # >> Call Site 13 <<
	.uleb128 .Ltmp130-.Ltmp129              #   Call between .Ltmp129 and .Ltmp130
	.uleb128 .Ltmp131-.Lfunc_begin1         #     jumps to .Ltmp131
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp132-.Lfunc_begin1         # >> Call Site 14 <<
	.uleb128 .Ltmp137-.Ltmp132              #   Call between .Ltmp132 and .Ltmp137
	.uleb128 .Ltmp138-.Lfunc_begin1         #     jumps to .Ltmp138
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp139-.Lfunc_begin1         # >> Call Site 15 <<
	.uleb128 .Ltmp140-.Ltmp139              #   Call between .Ltmp139 and .Ltmp140
	.uleb128 .Ltmp141-.Lfunc_begin1         #     jumps to .Ltmp141
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp140-.Lfunc_begin1         # >> Call Site 16 <<
	.uleb128 .Lfunc_end12-.Ltmp140          #   Call between .Ltmp140 and .Lfunc_end12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.weak	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE # -- Begin function _Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.type	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,@function
_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE: # @_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$408, %rsp                      # imm = 0x198
	.cfi_def_cfa_offset 448
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	16(%rsp), %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
	leaq	32(%rsp), %r14
.Ltmp142:
	movl	$.L.str.12, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp143:
# %bb.1:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	(%r15), %r12
	movq	8(%r15), %r15
	cmpq	%r15, %r12
	je	.LBB13_7
# %bb.2:                                # %.lr.ph.preheader
	movb	$1, %al
.LBB13_3:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%r12), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	testb	$1, %al
	jne	.LBB13_5
# %bb.4:                                #   in Loop: Header=BB13_3 Depth=1
.Ltmp145:
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp146:
.LBB13_5:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit12
                                        #   in Loop: Header=BB13_3 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0                 # 4-byte Folded Reload
.Ltmp147:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp148:
# %bb.6:                                # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB13_3 Depth=1
	addq	$4, %r12
	xorl	%eax, %eax
	cmpq	%r15, %r12
	jne	.LBB13_3
.LBB13_7:                               # %._crit_edge
.Ltmp150:
	movl	$.L.str.14, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp151:
# %bb.8:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit11
	leaq	40(%rsp), %rsi
.Ltmp152:
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp153:
# %bb.9:                                # %_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv.exit
	leaq	16(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	144(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rax
	addq	$408, %rsp                      # imm = 0x198
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB13_12:
	.cfi_def_cfa_offset 448
.Ltmp144:
	jmp	.LBB13_11
.LBB13_10:
.Ltmp154:
	jmp	.LBB13_11
.LBB13_13:
.Ltmp149:
.LBB13_11:
	movq	%rax, %rbx
	leaq	16(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	144(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end13:
	.size	_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, .Lfunc_end13-_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.cfi_endproc
	.section	.gcc_except_table._Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"aG",@progbits,_Z10to_json_1dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.p2align	2, 0x0
GCC_except_table13:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp142-.Lfunc_begin2         #   Call between .Lfunc_begin2 and .Ltmp142
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp142-.Lfunc_begin2         # >> Call Site 2 <<
	.uleb128 .Ltmp143-.Ltmp142              #   Call between .Ltmp142 and .Ltmp143
	.uleb128 .Ltmp144-.Lfunc_begin2         #     jumps to .Ltmp144
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin2         # >> Call Site 3 <<
	.uleb128 .Ltmp148-.Ltmp145              #   Call between .Ltmp145 and .Ltmp148
	.uleb128 .Ltmp149-.Lfunc_begin2         #     jumps to .Ltmp149
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp150-.Lfunc_begin2         # >> Call Site 4 <<
	.uleb128 .Ltmp153-.Ltmp150              #   Call between .Ltmp150 and .Ltmp153
	.uleb128 .Ltmp154-.Lfunc_begin2         #     jumps to .Ltmp154
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp153-.Lfunc_begin2         # >> Call Site 5 <<
	.uleb128 .Lfunc_end13-.Ltmp153          #   Call between .Ltmp153 and .Lfunc_end13
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"axG",@progbits,_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.weak	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE # -- Begin function _Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.type	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,@function
_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE: # @_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsp, %rdi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
	leaq	16(%rsp), %r14
.Ltmp155:
	movl	$.L.str.12, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp156:
# %bb.1:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.preheader.preheader
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
.LBB14_2:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB14_6 Depth 2
	testq	%r13, %r13
	je	.LBB14_4
# %bb.3:                                #   in Loop: Header=BB14_2 Depth=1
.Ltmp157:
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp158:
.LBB14_4:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit21
                                        #   in Loop: Header=BB14_2 Depth=1
.Ltmp159:
	movl	$.L.str.12, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp160:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit22.preheader
                                        #   in Loop: Header=BB14_2 Depth=1
	xorl	%ebp, %ebp
.LBB14_6:                               #   Parent Loop BB14_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	testq	%rbp, %rbp
	je	.LBB14_8
# %bb.7:                                #   in Loop: Header=BB14_6 Depth=2
.Ltmp161:
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp162:
.LBB14_8:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit24
                                        #   in Loop: Header=BB14_6 Depth=2
	movq	(%r15), %rax
	addq	%r12, %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%rbp,4), %xmm0
.Ltmp163:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp164:
# %bb.9:                                # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB14_6 Depth=2
	incq	%rbp
	cmpq	$41, %rbp
	jne	.LBB14_6
# %bb.10:                               #   in Loop: Header=BB14_2 Depth=1
.Ltmp166:
	movl	$.L.str.14, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp167:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit23
                                        #   in Loop: Header=BB14_2 Depth=1
	incq	%r13
	addq	$164, %r12
	cmpq	$41, %r13
	jne	.LBB14_2
# %bb.12:
.Ltmp169:
	movl	$.L.str.14, %esi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp170:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit20
	leaq	24(%rsp), %rsi
.Ltmp171:
	movq	%rbx, %rdi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp172:
# %bb.14:                               # %_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv.exit
	movq	%rsp, %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	128(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rax
	addq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB14_15:
	.cfi_def_cfa_offset 448
.Ltmp173:
	jmp	.LBB14_16
.LBB14_17:
.Ltmp168:
	jmp	.LBB14_16
.LBB14_18:
.Ltmp165:
.LBB14_16:
	movq	%rax, %rbx
	movq	%rsp, %rdi
	movl	$_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	128(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end14:
	.size	_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE, .Lfunc_end14-_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE
	.cfi_endproc
	.section	.gcc_except_table._Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,"aG",@progbits,_Z10to_json_2dIfENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIT_SaIS7_EE,comdat
	.p2align	2, 0x0
GCC_except_table14:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Lfunc_begin3-.Lfunc_begin3    # >> Call Site 1 <<
	.uleb128 .Ltmp155-.Lfunc_begin3         #   Call between .Lfunc_begin3 and .Ltmp155
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp155-.Lfunc_begin3         # >> Call Site 2 <<
	.uleb128 .Ltmp156-.Ltmp155              #   Call between .Ltmp155 and .Ltmp156
	.uleb128 .Ltmp173-.Lfunc_begin3         #     jumps to .Ltmp173
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp157-.Lfunc_begin3         # >> Call Site 3 <<
	.uleb128 .Ltmp160-.Ltmp157              #   Call between .Ltmp157 and .Ltmp160
	.uleb128 .Ltmp168-.Lfunc_begin3         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp161-.Lfunc_begin3         # >> Call Site 4 <<
	.uleb128 .Ltmp164-.Ltmp161              #   Call between .Ltmp161 and .Ltmp164
	.uleb128 .Ltmp165-.Lfunc_begin3         #     jumps to .Ltmp165
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp166-.Lfunc_begin3         # >> Call Site 5 <<
	.uleb128 .Ltmp167-.Ltmp166              #   Call between .Ltmp166 and .Ltmp167
	.uleb128 .Ltmp168-.Lfunc_begin3         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp169-.Lfunc_begin3         # >> Call Site 6 <<
	.uleb128 .Ltmp172-.Ltmp169              #   Call between .Ltmp169 and .Ltmp172
	.uleb128 .Ltmp173-.Lfunc_begin3         #     jumps to .Ltmp173
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp172-.Lfunc_begin3         # >> Call Site 7 <<
	.uleb128 .Lfunc_end14-.Ltmp172          #   Call between .Ltmp172 and .Lfunc_end14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIfE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIfE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIfE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIfE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIfE8allocateEmPKv,@function
_ZNSt15__new_allocatorIfE8allocateEmPKv: # @_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB15_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB15_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB15_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB15_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end15:
	.size	_ZNSt15__new_allocatorIfE8allocateEmPKv, .Lfunc_end15-_ZNSt15__new_allocatorIfE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_ # -- Begin function _ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,@function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_: # @_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.11, %edx
	callq	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB16_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIfE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB16_3
.LBB16_1:
	xorl	%ebp, %ebp
.LBB16_3:                               # %_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movss	(%rax), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB16_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB16_5:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB16_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB16_7:                               # %_ZNSt6vectorIfSaIfEE11_S_relocateEPfS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB16_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB16_9:                               # %_ZNSt12_Vector_baseIfSaIfEE13_M_deallocateEPfm.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .Lfunc_end16-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB17_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB17_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end17:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .Lfunc_end17-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB18_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB18_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17build_up_b_deviceiiPfffS_S_ff, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z23pressure_poisson_devicePfS_ffS_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z30pressure_poisson_finish_devicePf, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18cavity_flow_devicePfS_S_S_fffS_ff, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z25cavity_flow_finish_devicePfS_, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end18:
	.size	__hip_module_ctor, .Lfunc_end18-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB19_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB19_2:
	retq
.Lfunc_end19:
	.size	__hip_module_dtor, .Lfunc_end19-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z17build_up_b_deviceiiPfffS_S_ff,@object # @_Z17build_up_b_deviceiiPfffS_S_ff
	.section	.rodata,"a",@progbits
	.globl	_Z17build_up_b_deviceiiPfffS_S_ff
	.p2align	3, 0x0
_Z17build_up_b_deviceiiPfffS_S_ff:
	.quad	_Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
	.size	_Z17build_up_b_deviceiiPfffS_S_ff, 8

	.type	_Z23pressure_poisson_devicePfS_ffS_,@object # @_Z23pressure_poisson_devicePfS_ffS_
	.globl	_Z23pressure_poisson_devicePfS_ffS_
	.p2align	3, 0x0
_Z23pressure_poisson_devicePfS_ffS_:
	.quad	_Z38__device_stub__pressure_poisson_devicePfS_ffS_
	.size	_Z23pressure_poisson_devicePfS_ffS_, 8

	.type	_Z30pressure_poisson_finish_devicePf,@object # @_Z30pressure_poisson_finish_devicePf
	.globl	_Z30pressure_poisson_finish_devicePf
	.p2align	3, 0x0
_Z30pressure_poisson_finish_devicePf:
	.quad	_Z45__device_stub__pressure_poisson_finish_devicePf
	.size	_Z30pressure_poisson_finish_devicePf, 8

	.type	_Z18cavity_flow_devicePfS_S_S_fffS_ff,@object # @_Z18cavity_flow_devicePfS_S_S_fffS_ff
	.globl	_Z18cavity_flow_devicePfS_S_S_fffS_ff
	.p2align	3, 0x0
_Z18cavity_flow_devicePfS_S_S_fffS_ff:
	.quad	_Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
	.size	_Z18cavity_flow_devicePfS_S_S_fffS_ff, 8

	.type	_Z25cavity_flow_finish_devicePfS_,@object # @_Z25cavity_flow_finish_devicePfS_
	.globl	_Z25cavity_flow_finish_devicePfS_
	.p2align	3, 0x0
_Z25cavity_flow_finish_devicePfS_:
	.quad	_Z40__device_stub__cavity_flow_finish_devicePfS_
	.size	_Z25cavity_flow_finish_devicePfS_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"cavity-cuda.json"
	.size	.L.str, 17

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"{\n"
	.size	.L.str.1, 3

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"\"x\": "
	.size	.L.str.2, 6

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	", \"y\": "
	.size	.L.str.3, 8

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	",\n"
	.size	.L.str.4, 3

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"\"p\": "
	.size	.L.str.5, 6

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"\"u\": "
	.size	.L.str.6, 6

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"\"v\": "
	.size	.L.str.7, 6

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"\n"
	.size	.L.str.8, 2

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"}\n"
	.size	.L.str.9, 3

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"vector::reserve"
	.size	.L.str.10, 16

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.11, 26

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"["
	.size	.L.str.12, 2

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	","
	.size	.L.str.13, 2

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"]"
	.size	.L.str.14, 2

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z17build_up_b_deviceiiPfffS_S_ff"
	.size	.L__unnamed_1, 34

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z23pressure_poisson_devicePfS_ffS_"
	.size	.L__unnamed_2, 36

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z30pressure_poisson_finish_devicePf"
	.size	.L__unnamed_3, 37

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z18cavity_flow_devicePfS_S_S_fffS_ff"
	.size	.L__unnamed_4, 38

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z25cavity_flow_finish_devicePfS_"
	.size	.L__unnamed_5, 34

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z32__device_stub__build_up_b_deviceiiPfffS_S_ff
	.addrsig_sym _Z38__device_stub__pressure_poisson_devicePfS_ffS_
	.addrsig_sym _Z45__device_stub__pressure_poisson_finish_devicePf
	.addrsig_sym _Z33__device_stub__cavity_flow_devicePfS_S_S_fffS_ff
	.addrsig_sym _Z40__device_stub__cavity_flow_finish_devicePfS_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z17build_up_b_deviceiiPfffS_S_ff
	.addrsig_sym _Z23pressure_poisson_devicePfS_ffS_
	.addrsig_sym _Z30pressure_poisson_finish_devicePf
	.addrsig_sym _Z18cavity_flow_devicePfS_S_S_fffS_ff
	.addrsig_sym _Z25cavity_flow_finish_devicePfS_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z17build_up_b_deviceiiPfffS_S_ff ; -- Begin function _Z17build_up_b_deviceiiPfffS_S_ff
	.globl	_Z17build_up_b_deviceiiPfffS_S_ff
	.p2align	8
	.type	_Z17build_up_b_deviceiiPfffS_S_ff,@function
_Z17build_up_b_deviceiiPfffS_S_ff:      ; @_Z17build_up_b_deviceiiPfffS_S_ff
; %bb.0:
	s_load_b32 s2, s[0:1], 0x3c
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s14, s3, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e32 0, v1
	s_cbranch_execz .LBB0_3
; %bb.1:
	s_load_b64 s[12:13], s[0:1], 0x0
	v_bfe_u32 v0, v0, 10, 10
	s_lshr_b32 s2, s2, 16
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[2:3], null, s15, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_lt_i32_e32 vcc_lo, 0, v2
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s12, -1
	s_add_i32 s3, s13, -1
	v_cmp_gt_i32_e64 s2, s2, v1
	v_cmp_gt_i32_e64 s3, s3, v2
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s2, s2, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s2
	s_cbranch_execz .LBB0_3
; %bb.2:
	v_mul_lo_u32 v0, v2, s12
	s_load_b256 s[4:11], s[0:1], 0x8
	v_ashrrev_i32_e32 v3, 31, v1
	s_lshl_b32 s2, s12, 1
	s_load_b64 s[0:1], s[0:1], 0x28
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v5, 31, v0
	v_add_co_u32 v2, vcc_lo, v1, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, v3, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[8:9], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	v_add_f32_e64 v16, s1, s1
	v_add_co_u32 v2, vcc_lo, s8, v8
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v9, vcc_lo
	s_clause 0x1
	global_load_b32 v12, v[2:3], off offset:4
	global_load_b32 v13, v[2:3], off offset:-4
	v_add_nc_u32_e32 v4, s12, v0
	v_add_nc_u32_e32 v0, v0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v6, s2, v4
	v_add_nc_u32_e32 v4, v4, v1
	v_add_nc_u32_e32 v6, v6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v5, 31, v4
	v_ashrrev_i32_e32 v1, 31, v0
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	v_add_co_u32 v2, vcc_lo, s10, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v5, vcc_lo
	v_add_co_u32 v10, vcc_lo, s10, v6
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v11, vcc_lo, s11, v7, vcc_lo
	s_clause 0x1
	global_load_b32 v14, v[2:3], off
	global_load_b32 v10, v[10:11], off
	v_add_co_u32 v2, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, s8, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v7, vcc_lo
	s_clause 0x1
	global_load_b32 v6, v[2:3], off
	global_load_b32 v5, v[4:5], off
	v_div_scale_f32 v7, null, s7, s7, 1.0
	v_add_f32_e64 v2, s0, s0
	s_waitcnt vmcnt(4)
	v_sub_f32_e32 v11, v12, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v12, v7
	v_div_scale_f32 v13, null, v2, v2, v11
	v_div_scale_f32 v19, s0, v11, v2, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v15, v13
	s_waitcnt_depctr 0xfff
	v_fma_f32 v3, -v7, v12, 1.0
	v_fmac_f32_e32 v12, v3, v12
	v_fma_f32 v3, -v13, v15, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v15, v3, v15
	v_add_co_u32 v3, s1, s10, v8
	v_add_co_ci_u32_e64 v4, s1, s11, v9, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v22, v19, v15
	s_waitcnt vmcnt(2)
	v_sub_f32_e32 v10, v14, v10
	v_div_scale_f32 v14, vcc_lo, 1.0, s7, 1.0
	v_fma_f32 v9, -v13, v22, v19
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v17, null, v16, v16, v10
	v_mul_f32_e32 v18, v14, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v22, v9, v15
	v_rcp_f32_e32 v20, v17
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v5, v6, v5
	v_fma_f32 v21, -v7, v18, v14
	v_fma_f32 v9, -v13, v22, v19
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v18, v21, v12
	v_div_scale_f32 v21, s1, v10, v16, v10
	s_waitcnt_depctr 0xfff
	v_fma_f32 v8, -v17, v20, 1.0
	v_fmac_f32_e32 v20, v8, v20
	s_clause 0x1
	global_load_b32 v8, v[3:4], off offset:4
	global_load_b32 v3, v[3:4], off offset:-4
	v_fma_f32 v4, -v7, v18, v14
	v_mul_f32_e32 v7, v21, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v4, v4, v12, v18
	s_mov_b32 vcc_lo, s0
	v_fma_f32 v12, -v17, v7, v21
	v_div_fmas_f32 v9, v9, v15, v22
	s_mov_b32 vcc_lo, s1
	s_mov_b32 s1, 0x3e76c4e1
	v_div_fixup_f32 v4, v4, s7, 1.0
	v_fmac_f32_e32 v7, v12, v20
	v_div_fixup_f32 v9, v9, v2, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v11, -v17, v7, v21
	v_frexp_mant_f32_e64 v12, |v9|
	v_frexp_exp_i32_f32_e32 v27, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v7, v11, v20, v7
	v_cmp_gt_f32_e32 vcc_lo, 0x3f2aaaab, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v7, v7, v16, v10
	v_cndmask_b32_e64 v11, 0, 1, vcc_lo
	v_ldexp_f32 v10, v12, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_frexp_mant_f32_e64 v11, |v7|
	v_cmp_gt_f32_e64 s0, 0x3f2aaaab, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v13, 0, 1, s0
	v_ldexp_f32 v11, v11, v13
	v_add_f32_e32 v13, -1.0, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v12, 1.0, v10 :: v_dual_add_f32 v15, 1.0, v11
	v_rcp_f32_e32 v14, v12
	v_add_f32_e32 v18, -1.0, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v19, v15
	v_sub_f32_e32 v10, v10, v18
	s_waitcnt_depctr 0xfff
	v_dual_mul_f32 v17, v13, v14 :: v_dual_add_f32 v18, -1.0, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mul_f32 v20, v12, v17 :: v_dual_mul_f32 v21, v18, v19
	v_fma_f32 v12, v17, v12, -v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v22, v15, v21
	v_fmac_f32_e32 v12, v17, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v10, -1.0, v15 :: v_dual_add_f32 v23, v20, v12
	v_sub_f32_e32 v10, v11, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v11, v21, v15, -v22
	v_dual_sub_f32 v15, v13, v23 :: v_dual_sub_f32 v20, v23, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v11, v21, v10
	v_sub_f32_e32 v10, v13, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v12, v20, v12 :: v_dual_add_f32 v13, v22, v11
	v_sub_f32_e32 v10, v10, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v20, v18, v13
	v_add_f32_e32 v10, v12, v10
	v_sub_f32_e32 v12, v13, v22
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v18, v18, v20
	v_dual_add_f32 v10, v15, v10 :: v_dual_sub_f32 v11, v12, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v12, v18, v13
	v_dual_mul_f32 v10, v14, v10 :: v_dual_add_f32 v11, v11, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v12, v17, v10 :: v_dual_add_f32 v11, v20, v11
	v_sub_f32_e32 v13, v12, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mul_f32 v11, v19, v11 :: v_dual_sub_f32 v10, v10, v13
	v_add_f32_e32 v15, v21, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v17, v10, v10 :: v_dual_sub_f32 v18, v15, v21
	v_dual_sub_f32 v11, v11, v18 :: v_dual_mul_f32 v14, v12, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v20, v11, v11
	v_fma_f32 v13, v12, v12, -v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v13, v12, v17
	v_dual_mul_f32 v17, v15, v15 :: v_dual_add_f32 v18, v14, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v19, v15, v15, -v17
	v_fmaak_f32 v21, s1, v18, 0x3e91f4c4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v19, v15, v20 :: v_dual_sub_f32 v14, v18, v14
	v_dual_fmaak_f32 v20, v18, v21, 0x3ecccdef :: v_dual_add_f32 v21, v17, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v13, v13, v14 :: v_dual_mul_f32 v22, v18, v20
	v_fmaak_f32 v14, s1, v21, 0x3e91f4c4
	v_sub_f32_e32 v17, v21, v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v23, v18, v20, -v22
	v_dual_fmaak_f32 v14, v21, v14, 0x3ecccdef :: v_dual_sub_f32 v17, v19, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v23, v13, v20
	v_mul_f32_e32 v20, v21, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v24, v22, v23
	v_fma_f32 v19, v21, v14, -v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v22, v24, v22
	v_dual_fmac_f32 v19, v17, v14 :: v_dual_add_f32 v26, 0x3f2aaaaa, v24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v14, v23, v22
	v_subrev_co_ci_u32_e32 v23, vcc_lo, 0, v27, vcc_lo
	v_dual_add_f32 v27, v20, v19 :: v_dual_add_f32 v22, 0xbf2aaaaa, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v20, v27, v20
	v_sub_f32_e32 v22, v24, v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_add_f32 v24, 0x3f2aaaaa, v27 :: v_dual_sub_f32 v19, v19, v20
	v_mul_f32_e32 v25, v12, v18
	v_add_f32_e32 v19, 0x31739010, v19
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v28, v18, v12, -v25
	v_fmac_f32_e32 v28, v18, v10
	v_ldexp_f32 v10, v10, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v28, v13, v12
	v_ldexp_f32 v12, v12, 1
	v_dual_mul_f32 v18, v15, v21 :: v_dual_add_f32 v29, v25, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v13, v21, v15, -v18
	v_sub_f32_e32 v25, v29, v25
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v13, v21, v11
	v_ldexp_f32 v11, v11, 1
	v_fmac_f32_e32 v13, v17, v15
	v_ldexp_f32 v15, v15, 1
	v_add_f32_e32 v20, 0xbf2aaaaa, v24
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v20, v27, v20
	v_add_f32_e32 v17, v19, v20
	v_cvt_f32_i32_e32 v20, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v23, v24, v17
	v_dual_mul_f32 v27, 0x3f317218, v20 :: v_dual_sub_f32 v24, v24, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v17, v17, v24 :: v_dual_add_f32 v14, 0x31739010, v14
	v_fma_f32 v24, 0x3f317218, v20, -v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v14, v14, v22
	v_add_f32_e32 v22, v26, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v21, v26, v22
	v_mul_f32_e32 v26, v29, v22
	v_add_f32_e32 v14, v14, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f32 v19, v29, v22, -v26
	v_sub_f32_e32 v21, v28, v25
	v_add_f32_e32 v25, v18, v13
	v_fmac_f32_e32 v19, v29, v14
	v_frexp_exp_i32_f32_e32 v14, v7
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v28, v25, v23
	v_fmac_f32_e32 v19, v21, v22
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_subrev_co_ci_u32_e64 v14, vcc_lo, 0, v14, s0
	v_fma_f32 v21, v25, v23, -v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v22, v26, v19
	v_cvt_f32_i32_e32 v14, v14
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v21, v25, v17
	v_add_f32_e32 v17, v12, v22
	s_waitcnt vmcnt(0)
	v_dual_sub_f32 v18, v25, v18 :: v_dual_sub_f32 v3, v8, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v12, v17, v12
	v_sub_f32_e32 v13, v13, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_sub_f32 v18, v22, v26 :: v_dual_fmac_f32 v21, v13, v23
	v_sub_f32_e32 v13, v19, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_add_f32 v10, v10, v13 :: v_dual_mul_f32 v13, 0x3f317218, v14
	v_sub_f32_e32 v12, v22, v12
	v_fma_f32 v22, 0x3f317218, v14, -v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v10, v10, v12
	v_fmac_f32_e32 v22, 0xb102e308, v14
	v_fmac_f32_e32 v24, 0xb102e308, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v12, v27, v24
	v_sub_f32_e32 v14, v12, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v14, v24, v14
	v_add_f32_e32 v18, v28, v21
	v_dual_add_f32 v19, v15, v18 :: v_dual_sub_f32 v20, v18, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v15, v19, v15 :: v_dual_sub_f32 v20, v21, v20
	v_add_f32_e32 v21, v17, v10
	v_sub_f32_e32 v15, v18, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v11, v11, v20 :: v_dual_add_f32 v18, v12, v21
	v_dual_add_f32 v6, v11, v15 :: v_dual_sub_f32 v11, v18, v12
	v_sub_f32_e32 v15, v21, v17
	v_add_f32_e32 v17, v13, v22
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v20, v19, v6 :: v_dual_sub_f32 v23, v18, v11
	v_sub_f32_e32 v10, v10, v15
	v_sub_f32_e32 v11, v21, v11
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v13, v17, v13
	v_dual_add_f32 v15, v17, v20 :: v_dual_sub_f32 v12, v12, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f32_e32 v23, v14, v10
	v_div_scale_f32 v21, null, v16, v16, v5
	v_sub_f32_e32 v24, v15, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_dual_add_f32 v11, v11, v12 :: v_dual_sub_f32 v12, v20, v19
	v_sub_f32_e32 v19, v23, v14
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v13, v22, v13 :: v_dual_sub_f32 v22, v15, v24
	v_dual_add_f32 v11, v23, v11 :: v_dual_sub_f32 v6, v6, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v12, v23, v19
	v_dual_sub_f32 v20, v20, v24 :: v_dual_sub_f32 v17, v17, v22
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v22, v18, v11
	v_sub_f32_e32 v10, v10, v19
	v_dual_sub_f32 v12, v14, v12 :: v_dual_add_f32 v19, v13, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_add_f32 v14, v20, v17 :: v_dual_sub_f32 v17, v22, v18
	v_rcp_f32_e32 v18, v21
	v_add_f32_e32 v10, v10, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v20, v19, v13
	v_add_f32_e32 v12, v19, v14
	v_sub_f32_e32 v11, v11, v17
	v_div_scale_f32 v14, vcc_lo, v5, v16, v5
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v17, v19, v20
	v_dual_add_f32 v19, v15, v12 :: v_dual_add_f32 v10, v10, v11
	s_delay_alu instid0(TRANS32_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v11, -v21, v18, 1.0
	v_dual_sub_f32 v6, v6, v20 :: v_dual_sub_f32 v13, v13, v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v15, v19, v15
	v_add_f32_e32 v17, v22, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v18, v11, v18
	v_dual_add_f32 v6, v6, v13 :: v_dual_sub_f32 v11, v12, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v12, v17, v22
	v_mul_f32_e32 v13, v14, v18
	v_add_f32_e32 v15, v17, v17
	v_mul_f32_e32 v20, 0, v17
	v_add_f32_e32 v6, v6, v11
	v_sub_f32_e32 v10, v10, v12
	v_fma_f32 v11, -v21, v13, v14
	v_fma_f32 v12, v17, 2.0, -v15
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v17, v19, v6
	v_fmac_f32_e32 v20, 2.0, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_fmac_f32 v13, v11, v18 :: v_dual_sub_f32 v10, v17, v19
	v_add_f32_e32 v11, v12, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f32 v12, -v21, v13, v14
	v_add_f32_e32 v14, v17, v17
	v_dual_mul_f32 v19, 0, v17 :: v_dual_sub_f32 v6, v6, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v10, v15, v11
	v_div_fmas_f32 v12, v12, v18, v13
	v_cmp_class_f32_e64 vcc_lo, v15, 0x204
	v_fma_f32 v13, v17, 2.0, -v14
	v_fmac_f32_e32 v19, 2.0, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_fixup_f32 v5, v12, v16, v5
	v_cndmask_b32_e32 v6, v10, v15, vcc_lo
	v_sub_f32_e32 v10, v10, v15
	v_add_f32_e32 v8, v13, v19
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v3, v5, v3
	v_cmp_eq_f32_e32 vcc_lo, 0x42b17218, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_dual_sub_f32 v10, v11, v10 :: v_dual_add_f32 v13, v14, v8
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v6|
	v_div_scale_f32 v17, null, v2, v2, v3
	v_cndmask_b32_e64 v12, 0, 0x37000000, vcc_lo
	v_cmp_class_f32_e64 vcc_lo, v14, 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v20, v17
	v_dual_sub_f32 v5, v6, v12 :: v_dual_cndmask_b32 v16, v13, v14
	v_cndmask_b32_e64 v6, 0, v10, s0
	v_sub_f32_e32 v10, v13, v14
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v18, 0x3fb8aa3b, v5
	v_cmp_eq_f32_e32 vcc_lo, 0x42b17218, v16
	v_cmp_ngt_f32_e64 s0, 0xc2ce8ed0, v5
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f32 v25, -v17, v20, 1.0
	v_sub_f32_e32 v8, v8, v10
	v_fma_f32 v21, 0x3fb8aa3b, v5, -v18
	v_cndmask_b32_e64 v19, 0, 0x37000000, vcc_lo
	v_rndne_f32_e32 v22, v18
	v_div_scale_f32 v27, vcc_lo, v3, v2, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v21, 0x32a5705f, v5
	v_dual_sub_f32 v23, v16, v19 :: v_dual_sub_f32 v18, v18, v22
	v_cvt_i32_f32_e32 v22, v22
	v_fmac_f32_e32 v20, v25, v20
	v_add_f32_e32 v6, v12, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v24, 0x3fb8aa3b, v23
	v_dual_add_f32 v18, v18, v21 :: v_dual_mul_f32 v15, v27, v20
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f32 v21, 0x3fb8aa3b, v23, -v24
	v_rndne_f32_e32 v26, v24
	v_exp_f32_e32 v18, v18
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v11, -v17, v15, v27
	v_dual_fmac_f32 v21, 0x32a5705f, v23 :: v_dual_sub_f32 v24, v24, v26
	v_cvt_i32_f32_e32 v14, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v15, v11, v20
	v_add_f32_e32 v21, v24, v21
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v18, v18, v22
	v_fma_f32 v11, -v17, v15, v27
	v_exp_f32_e32 v21, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v13, 0, v18, s0
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v5
	v_div_fmas_f32 v11, v11, v20, v15
	v_cmp_neq_f32_e32 vcc_lo, 0, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v5, 0x7f800000, v13, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v16|
	v_div_fixup_f32 v2, v11, v2, v3
	s_delay_alu instid0(TRANS32_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ldexp_f32 v10, v21, v14
	v_fma_f32 v6, v5, v6, v5
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v8, 0, v8, s0
	v_cmp_ngt_f32_e64 s0, 0xc2ce8ed0, v23
	v_add_f32_e32 v8, v19, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v10, 0, v10, s0
	v_cmp_eq_f32_e64 s0, 0x7f800000, v5
	v_cndmask_b32_e64 v5, v6, v5, s0
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v23
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v6, 0x7f800000, v10, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v9|
	v_add_f32_e32 v10, v9, v7
	v_fma_f32 v8, v6, v8, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v5, 0x7f800000, |v5|, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v7|
	v_cndmask_b32_e32 v5, 0, v5, vcc_lo
	v_cmp_eq_f32_e32 vcc_lo, 0x7f800000, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f32 v3, v4, v10, -v5
	v_cndmask_b32_e32 v6, v8, v6, vcc_lo
	v_cmp_neq_f32_e32 vcc_lo, 0, v7
	v_fmac_f32_e32 v3, -2.0, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v4, 0x7f800000, |v6|, s0
	v_cndmask_b32_e32 v2, 0, v4, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v2, v3, v2
	v_mul_f32_e32 v2, s6, v2
	global_store_b32 v[0:1], v2, off
.LBB0_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17build_up_b_deviceiiPfffS_S_ff
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 30
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z17build_up_b_deviceiiPfffS_S_ff, .Lfunc_end0-_Z17build_up_b_deviceiiPfffS_S_ff
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2848
; NumSgprs: 18
; NumVgprs: 30
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 30
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z23pressure_poisson_devicePfS_ffS_ ; -- Begin function _Z23pressure_poisson_devicePfS_ffS_
	.globl	_Z23pressure_poisson_devicePfS_ffS_
	.p2align	8
	.type	_Z23pressure_poisson_devicePfS_ffS_,@function
_Z23pressure_poisson_devicePfS_ffS_:    ; @_Z23pressure_poisson_devicePfS_ffS_
; %bb.0:
	s_load_b32 s2, s[0:1], 0x2c
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s14, s3, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e32 0, v1
	s_cbranch_execz .LBB1_3
; %bb.1:
	v_bfe_u32 v0, v0, 10, 10
	s_lshr_b32 s2, s2, 16
	v_cmp_gt_u32_e32 vcc_lo, 40, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s15, s2, v[0:1]
	v_subrev_nc_u32_e32 v0, 40, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_u32_e64 s2, 0xffffffd8, v0
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s2
	s_cbranch_execz .LBB1_3
; %bb.2:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mul_lo_u32 v4, v3, 41
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_mov_b32 v5, v2 :: v_dual_add_nc_u32 v8, -1, v3
	v_add_co_u32 v6, s0, v1, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e64 v7, null, 0, 0, s0
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_lshlrev_b64 v[2:3], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	s_waitcnt lgkmcnt(0)
	v_mad_u64_u32 v[4:5], null, 0xa4, v8, s[6:7]
	v_add_co_u32 v8, vcc_lo, s6, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v7, vcc_lo
	v_add_co_u32 v10, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v11, vcc_lo, s7, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, v4, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, v5, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, v10, v0
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v1, vcc_lo, v11, v1, vcc_lo
	s_clause 0x3
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[8:9], off offset:164
	global_load_b32 v4, v[0:1], off offset:-4
	global_load_b32 v5, v[8:9], off offset:4
	v_add_co_u32 v0, vcc_lo, s10, v6
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v7, vcc_lo
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(3)
	v_add_f32_e32 v1, v3, v2
	v_mul_f32_e64 v2, s8, s8
	s_waitcnt vmcnt(1)
	v_add_f32_e32 v3, v5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v4, s9, s9, v2
	v_dual_mul_f32 v2, s9, v2 :: v_dual_mul_f32 v3, s9, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f32_e32 v4, v4, v4
	v_dual_mul_f32 v2, s9, v2 :: v_dual_mul_f32 v1, s8, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f32 v5, null, v4, v4, v2
	v_mul_f32_e32 v1, s8, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v9, v5
	v_fmac_f32_e32 v1, s9, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_div_scale_f32 v3, null, v4, v4, v1
	v_div_scale_f32 v12, vcc_lo, v1, v4, v1
	s_waitcnt_depctr 0xfff
	v_fma_f32 v11, -v5, v9, 1.0
	v_rcp_f32_e32 v8, v3
	v_fmac_f32_e32 v9, v11, v9
	s_waitcnt_depctr 0xfff
	v_fma_f32 v10, -v3, v8, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v8, v10, v8
	v_div_scale_f32 v10, s0, v2, v4, v2
	v_mul_f32_e32 v11, v12, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v13, v10, v9
	v_fma_f32 v14, -v3, v11, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v15, -v5, v13, v10
	v_fmac_f32_e32 v11, v14, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v13, v15, v9
	v_fma_f32 v3, -v3, v11, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v5, -v5, v13, v10
	v_div_fmas_f32 v3, v3, v8, v11
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v5, v5, v9, v13
	v_div_fixup_f32 v1, v3, v4, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v2, v5, v4, v2
	s_waitcnt vmcnt(0)
	v_fma_f32 v2, -v2, v0, v1
	v_add_co_u32 v0, vcc_lo, s4, v6
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v7, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB1_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z23pressure_poisson_devicePfS_ffS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 16
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z23pressure_poisson_devicePfS_ffS_, .Lfunc_end1-_Z23pressure_poisson_devicePfS_ffS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 636
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z30pressure_poisson_finish_devicePf ; -- Begin function _Z30pressure_poisson_finish_devicePf
	.globl	_Z30pressure_poisson_finish_devicePf
	.p2align	8
	.type	_Z30pressure_poisson_finish_devicePf,@function
_Z30pressure_poisson_finish_devicePf:   ; @_Z30pressure_poisson_finish_devicePf
; %bb.0:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[2:3], 0
.LBB2_1:                                ; =>This Inner Loop Header: Depth=1
	s_waitcnt lgkmcnt(0)
	s_add_u32 s4, s0, s2
	s_addc_u32 s5, s1, s3
	s_add_u32 s2, s2, 0xa4
	global_load_b32 v1, v0, s[4:5] offset:156
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s2, 0x1a44
	s_waitcnt vmcnt(0)
	global_store_b32 v0, v1, s[4:5] offset:160
	s_cbranch_scc1 .LBB2_1
; %bb.2:                                ; %.preheader27.preheader
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[2:3], 0
.LBB2_3:                                ; %.preheader27
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s4, s0, s2
	s_addc_u32 s5, s1, s3
	s_add_u32 s2, s2, 4
	global_load_b32 v1, v0, s[4:5] offset:164
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s2, 0xa4
	s_waitcnt vmcnt(0)
	global_store_b32 v0, v1, s[4:5]
	s_cbranch_scc1 .LBB2_3
; %bb.4:                                ; %.preheader26.preheader
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[2:3], 0
.LBB2_5:                                ; %.preheader26
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s4, s0, s2
	s_addc_u32 s5, s1, s3
	s_add_u32 s2, s2, 0xa4
	global_load_b32 v1, v0, s[4:5] offset:4
	s_addc_u32 s3, s3, 0
	s_cmpk_eq_i32 s2, 0x1a44
	s_waitcnt vmcnt(0)
	global_store_b32 v0, v1, s[4:5]
	s_cbranch_scc0 .LBB2_5
; %bb.6:                                ; %.preheader
	v_mov_b32_e32 v0, 0
	s_add_u32 s2, s0, 0x19a0
	s_addc_u32 s3, s1, 0
	s_mov_b64 s[0:1], 0
.LBB2_7:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s4, s2, s0
	s_addc_u32 s5, s3, s1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmpk_eq_i32 s0, 0xa4
	global_store_b32 v0, v0, s[4:5]
	s_cbranch_scc0 .LBB2_7
; %bb.8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z30pressure_poisson_finish_devicePf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 2
		.amdhsa_next_free_sgpr 6
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z30pressure_poisson_finish_devicePf, .Lfunc_end2-_Z30pressure_poisson_finish_devicePf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 252
; NumSgprs: 6
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 6
; NumVGPRsForWavesPerEU: 2
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18cavity_flow_devicePfS_S_S_fffS_ff ; -- Begin function _Z18cavity_flow_devicePfS_S_S_fffS_ff
	.globl	_Z18cavity_flow_devicePfS_S_S_fffS_ff
	.p2align	8
	.type	_Z18cavity_flow_devicePfS_S_S_fffS_ff,@function
_Z18cavity_flow_devicePfS_S_S_fffS_ff:  ; @_Z18cavity_flow_devicePfS_S_S_fffS_ff
; %bb.0:
	s_load_b32 s2, s[0:1], 0x4c
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s14, s3, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e32 0, v1
	s_cbranch_execz .LBB3_3
; %bb.1:
	v_bfe_u32 v0, v0, 10, 10
	s_lshr_b32 s2, s2, 16
	v_cmp_gt_u32_e32 vcc_lo, 40, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s15, s2, v[0:1]
	v_subrev_nc_u32_e32 v0, 40, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_u32_e64 s2, 0xffffffd8, v0
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s2
	s_cbranch_execz .LBB3_3
; %bb.2:
	v_mul_lo_u32 v0, v3, 41
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x0
	s_load_b256 s[12:19], s[0:1], 0x20
	v_add_nc_u32_e32 v12, -1, v1
	v_dual_mov_b32 v2, 0 :: v_dual_add_nc_u32 v3, -1, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, s2, v0, v1
	v_add_co_ci_u32_e64 v5, null, 0, 0, s2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v12, s0, v0, v12
	v_add_co_ci_u32_e64 v13, null, 0, 0, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_mad_u64_u32 v[14:15], null, v3, 41, v[1:2]
	v_lshlrev_b64 v[0:1], 2, v[12:13]
	s_waitcnt lgkmcnt(0)
	v_mul_f32_e64 v21, s13, s13
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v6, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v5, vcc_lo
	v_add_co_u32 v8, vcc_lo, s10, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s11, v5, vcc_lo
	global_load_b64 v[10:11], v[6:7], off
	global_load_b32 v20, v[8:9], off
	v_lshlrev_b64 v[2:3], 2, v[14:15]
	v_add_co_u32 v12, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v13, vcc_lo, s9, v1, vcc_lo
	v_div_scale_f32 v24, null, v21, v21, s12
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v14, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v15, vcc_lo, s9, v3, vcc_lo
	v_add_co_u32 v16, vcc_lo, s16, v4
	v_add_co_ci_u32_e32 v17, vcc_lo, s17, v5, vcc_lo
	v_add_co_u32 v18, vcc_lo, s16, v0
	v_add_co_ci_u32_e32 v19, vcc_lo, s17, v1, vcc_lo
	s_clause 0x1
	global_load_b32 v12, v[12:13], off
	global_load_b32 v13, v[14:15], off
	s_clause 0x1
	global_load_b32 v14, v[16:17], off offset:4
	global_load_b32 v15, v[18:19], off
	global_load_b32 v18, v[6:7], off offset:164
	v_add_f32_e64 v19, s18, s18
	v_rcp_f32_e32 v27, v24
	v_mul_f32_e64 v22, s14, s14
	v_div_scale_f32 v28, s0, s12, v21, s12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v23, s13, v19
	v_div_scale_f32 v25, null, v22, v22, s12
	v_div_scale_f32 v29, s1, s12, v22, s12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_1)
	v_div_scale_f32 v26, null, v23, v23, s12
	v_fma_f32 v34, -v24, v27, 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_rcp_f32_e32 v30, v25
	v_div_scale_f32 v33, s2, s12, v23, s12
	v_rcp_f32_e32 v31, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v27, v34, v27
	s_waitcnt_depctr 0xfff
	v_fma_f32 v37, -v25, v30, 1.0
	v_fma_f32 v38, -v26, v31, 1.0
	v_dual_fmac_f32 v30, v37, v30 :: v_dual_mul_f32 v37, v28, v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v31, v38, v31
	v_fma_f32 v42, -v24, v37, v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v38, v29, v30
	v_mul_f32_e32 v40, v33, v31
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v37, v42, v27
	v_fma_f32 v24, -v24, v37, v28
	s_waitcnt vmcnt(6)
	v_mul_f32_e32 v32, s12, v10
	s_waitcnt vmcnt(5)
	v_mul_f32_e32 v20, s12, v20
	v_fma_f32 v11, -2.0, v10, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v35, null, s13, s13, v32
	v_div_scale_f32 v36, null, s14, s14, v20
	v_div_scale_f32 v44, vcc_lo, v32, s13, v32
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v39, v35
	v_rcp_f32_e32 v34, v36
	s_waitcnt vmcnt(4)
	v_add_f32_e32 v11, v12, v11
	s_waitcnt vmcnt(1)
	v_sub_f32_e32 v14, v14, v15
	s_waitcnt_depctr 0xfff
	v_fma_f32 v41, -v35, v39, 1.0
	v_fma_f32 v43, -v36, v34, 1.0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_fmac_f32 v18, -2.0, v10 :: v_dual_fmac_f32 v39, v41, v39
	v_fmac_f32_e32 v34, v43, v34
	v_div_scale_f32 v41, s3, v20, s14, v20
	v_fma_f32 v43, -v25, v38, v29
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v46, v44, v39
	v_mul_f32_e32 v42, v41, v34
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v38, v43, v30
	v_fma_f32 v28, -v36, v42, v41
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f32 v25, -v25, v38, v29
	v_sub_f32_e32 v29, v10, v12
	v_fma_f32 v45, -v26, v40, v33
	v_fmac_f32_e32 v42, v28, v34
	v_dual_sub_f32 v28, v10, v13 :: v_dual_add_f32 v13, v13, v18
	v_fma_f32 v43, -v35, v46, v44
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v40, v45, v31
	v_fmac_f32_e32 v46, v43, v39
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f32 v26, -v26, v40, v33
	v_fma_f32 v33, -v36, v42, v41
	v_fma_f32 v15, -v35, v46, v44
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v15, v15, v39, v46
	s_mov_b32 vcc_lo, s3
	v_div_fmas_f32 v33, v33, v34, v42
	s_mov_b32 vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_2)
	v_div_fixup_f32 v15, v15, s13, v32
	v_div_fmas_f32 v26, v26, v31, v40
	s_mov_b32 vcc_lo, s0
	v_div_fixup_f32 v18, v33, s14, v20
	v_div_fmas_f32 v24, v24, v27, v37
	s_mov_b32 vcc_lo, s1
	v_fma_f32 v10, -v15, v29, v10
	v_div_fmas_f32 v25, v25, v30, v38
	v_div_fixup_f32 v12, v26, v23, s12
	v_div_fixup_f32 v20, v24, v21, s12
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f32 v10, -v18, v28, v10
	v_div_fixup_f32 v15, v25, v22, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v12, -v12, v14, v10
	v_mul_f32_e32 v13, v15, v13
	v_add_co_u32 v10, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v13, v20, v11
	v_add_co_ci_u32_e32 v11, vcc_lo, s5, v5, vcc_lo
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_fmac_f32_e32 v12, s19, v13
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	global_store_b32 v[10:11], v12, off
	global_load_b32 v12, v[6:7], off
	global_load_b64 v[6:7], v[8:9], off
	v_add_co_u32 v10, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v11, vcc_lo, s11, v3, vcc_lo
	s_clause 0x2
	global_load_b32 v13, v[0:1], off
	global_load_b32 v10, v[10:11], off
	global_load_b32 v8, v[8:9], off offset:164
	v_add_co_u32 v0, vcc_lo, s16, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s17, v3, vcc_lo
	s_clause 0x1
	global_load_b32 v2, v[16:17], off offset:164
	global_load_b32 v0, v[0:1], off
	v_mul_f32_e32 v1, s14, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f32 v3, null, v1, v1, s12
	v_div_scale_f32 v21, s0, s12, v1, s12
	v_rcp_f32_e32 v11, v3
	s_waitcnt_depctr 0xfff
	v_fma_f32 v18, -v3, v11, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v11, v18, v11
	s_waitcnt vmcnt(6)
	v_dual_mul_f32 v22, v21, v11 :: v_dual_mul_f32 v9, s12, v12
	s_waitcnt vmcnt(5)
	v_fma_f32 v7, -2.0, v6, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_div_scale_f32 v14, null, s13, s13, v9
	v_div_scale_f32 v24, vcc_lo, v9, s13, v9
	s_waitcnt vmcnt(2)
	v_fmac_f32_e32 v8, -2.0, v6
	v_rcp_f32_e32 v17, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_f32_e32 v8, v10, v8
	s_waitcnt vmcnt(0)
	v_sub_f32_e32 v0, v2, v0
	v_dual_add_f32 v2, v13, v7 :: v_dual_mul_f32 v7, v15, v8
	s_waitcnt_depctr 0xfff
	v_fma_f32 v18, -v14, v17, 1.0
	v_mul_f32_e32 v12, s12, v6
	v_fmac_f32_e32 v7, v20, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v17, v18, v17
	v_div_scale_f32 v16, null, s14, s14, v12
	v_div_scale_f32 v18, s1, v12, s14, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v25, v24, v17
	v_rcp_f32_e32 v19, v16
	s_waitcnt_depctr 0xfff
	v_fma_f32 v23, -v16, v19, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v19, v23, v19
	v_fma_f32 v23, -v3, v22, v21
	v_mul_f32_e32 v26, v18, v19
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v22, v23, v11
	v_fma_f32 v23, -v14, v25, v24
	v_fma_f32 v27, -v16, v26, v18
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fmac_f32_e32 v25, v23, v17
	v_sub_f32_e32 v23, v6, v10
	v_fma_f32 v3, -v3, v22, v21
	v_dual_fmac_f32 v26, v27, v19 :: v_dual_sub_f32 v21, v6, v13
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v14, -v14, v25, v24
	v_fma_f32 v16, -v16, v26, v18
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v14, v14, v17, v25
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f32 v10, v16, v19, v26
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fixup_f32 v9, v14, s13, v9
	v_div_fmas_f32 v3, v3, v11, v22
	v_div_fixup_f32 v10, v10, s14, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v6, -v9, v21, v6
	v_div_fixup_f32 v1, v3, v1, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v3, -v10, v23, v6
	v_fma_f32 v2, -v1, v0, v3
	v_add_co_u32 v0, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_fmac_f32_e32 v2, s19, v7
	global_store_b32 v[0:1], v2, off
.LBB3_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18cavity_flow_devicePfS_S_S_fffS_ff
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 320
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 47
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z18cavity_flow_devicePfS_S_S_fffS_ff, .Lfunc_end3-_Z18cavity_flow_devicePfS_S_S_fffS_ff
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1516
; NumSgprs: 22
; NumVgprs: 47
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 5
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 47
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z25cavity_flow_finish_devicePfS_ ; -- Begin function _Z25cavity_flow_finish_devicePfS_
	.globl	_Z25cavity_flow_finish_devicePfS_
	.p2align	8
	.type	_Z25cavity_flow_finish_devicePfS_,@function
_Z25cavity_flow_finish_devicePfS_:      ; @_Z25cavity_flow_finish_devicePfS_
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[4:5], 0
.LBB4_1:                                ; =>This Inner Loop Header: Depth=1
	s_waitcnt lgkmcnt(0)
	s_add_u32 s6, s0, s4
	s_addc_u32 s7, s1, s5
	s_add_u32 s4, s4, 4
	s_addc_u32 s5, s5, 0
	s_cmpk_lg_i32 s4, 0xa4
	global_store_b32 v0, v0, s[6:7]
	s_cbranch_scc1 .LBB4_1
; %bb.2:                                ; %.preheader35.preheader
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[4:5], 0
.LBB4_3:                                ; %.preheader35
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s6, s0, s4
	s_addc_u32 s7, s1, s5
	s_add_u32 s4, s4, 0xa4
	s_addc_u32 s5, s5, 0
	s_cmpk_eq_i32 s4, 0x1a44
	s_clause 0x1
	global_store_b32 v0, v0, s[6:7]
	global_store_b32 v0, v0, s[6:7] offset:160
	s_cbranch_scc0 .LBB4_3
; %bb.4:                                ; %.preheader34
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, 1.0
	s_add_u32 s4, s0, 0x19a0
	s_addc_u32 s5, s1, 0
	s_mov_b64 s[0:1], 0
.LBB4_5:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s6, s4, s0
	s_addc_u32 s7, s5, s1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmpk_lg_i32 s0, 0xa4
	global_store_b32 v0, v1, s[6:7]
	s_cbranch_scc1 .LBB4_5
; %bb.6:                                ; %.preheader33.preheader
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, 0x1000
	s_mov_b64 s[0:1], 0
.LBB4_7:                                ; %.preheader33
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s4, s2, s0
	s_addc_u32 s5, s3, s1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmpk_lg_i32 s0, 0xa4
	s_clause 0x1
	global_store_b32 v0, v0, s[4:5]
	global_store_b32 v1, v0, s[4:5] offset:2464
	s_cbranch_scc1 .LBB4_7
; %bb.8:                                ; %.preheader.preheader
	v_mov_b32_e32 v0, 0
	s_mov_b64 s[0:1], 0
.LBB4_9:                                ; %.preheader
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s4, s2, s0
	s_addc_u32 s5, s3, s1
	s_add_u32 s0, s0, 0xa4
	s_addc_u32 s1, s1, 0
	s_cmpk_eq_i32 s0, 0x1a44
	s_clause 0x1
	global_store_b32 v0, v0, s[4:5]
	global_store_b32 v0, v0, s[4:5] offset:160
	s_cbranch_scc0 .LBB4_9
; %bb.10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z25cavity_flow_finish_devicePfS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 2
		.amdhsa_next_free_sgpr 8
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z25cavity_flow_finish_devicePfS_, .Lfunc_end4-_Z25cavity_flow_finish_devicePfS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 308
; NumSgprs: 8
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 8
; NumVGPRsForWavesPerEU: 2
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         44
        .size:           4
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17build_up_b_deviceiiPfffS_S_ff
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17build_up_b_deviceiiPfffS_S_ff.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     30
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z23pressure_poisson_devicePfS_ffS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z23pressure_poisson_devicePfS_ffS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z30pressure_poisson_finish_devicePf
    .private_segment_fixed_size: 0
    .sgpr_count:     6
    .sgpr_spill_count: 0
    .symbol:         _Z30pressure_poisson_finish_devicePf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         36
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         68
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         76
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         78
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         80
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         82
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         84
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         86
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         128
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 320
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18cavity_flow_devicePfS_S_S_fffS_ff
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z18cavity_flow_devicePfS_S_S_fffS_ff.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     47
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z25cavity_flow_finish_devicePfS_
    .private_segment_fixed_size: 0
    .sgpr_count:     8
    .sgpr_spill_count: 0
    .symbol:         _Z25cavity_flow_finish_devicePfS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
