	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function run_kernel_amp
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_run_kernel_amp
	.p2align	4, 0x90
_run_kernel_amp:                        ## @run_kernel_amp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movl	%edx, 24(%rax)
	movslq	8(%rsi), %r12
	cmpl	$1, 12(%rsi)
	jne	LBB0_3
## %bb.1:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_CEILDIV
	movl	%eax, %r13d
	movl	40(%rbx), %esi
	movl	36(%rbx), %eax
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	%r12d, %r9d
	pushq	$0
	pushq	24(%rbx)
	pushq	%rax
	pushq	$0
	pushq	$1
	pushq	$1
	callq	_hc_cuLaunchKernel
	addq	$48, %rsp
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.2:
	movl	36(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_cuStreamSynchronize
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_3:
	xorl	%r15d, %r15d
	cmpl	$1, 16(%rbx)
	jne	LBB0_9
## %bb.4:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_round_up_multiple_64
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	32(%rbx), %r13d
	movq	24(%rbx), %rax
	movl	24(%rax), %r8d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$6, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.5:
	movslq	-116(%rbp), %rax                ## 4-byte Folded Reload
	movq	%rax, -80(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1]
	movups	%xmm0, -72(%rbp)
	movq	%r12, -112(%rbp)
	movups	%xmm0, -104(%rbp)
	movl	20(%rbx), %esi
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$0, 8(%rsp)
	leaq	-80(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_hc_clEnqueueNDRangeKernel
	addq	$32, %rsp
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.6:
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_clFlush
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.7:
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_clFinish
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_kernel_amp                 ; -- Begin function run_kernel_amp
	.p2align	2
_run_kernel_amp:                        ; @run_kernel_amp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x1]
	str	w2, [x8, #24]
	ldp	w21, w8, [x1, #8]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_CEILDIV
	mov	x22, x0
	ldp	w8, w1, [x20, #36]
	ldr	x9, [x20, #24]
	stp	x9, xzr, [sp, #8]
	stp	wzr, w8, [sp]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #1
	mov	w4, #1
	mov	x5, x21
	mov	w6, #1
	mov	w7, #1
	bl	_hc_cuLaunchKernel
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_hc_cuStreamSynchronize
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_3:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_round_up_multiple_64
	mov	x23, x0
	ldr	w22, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	w4, [x8, #24]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #6
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:
	sxtw	x8, w23
	str	x8, [sp, #48]
	mov	w8, #1
	dup.2d	v0, x8
	stur	q0, [sp, #56]
	str	x21, [sp, #24]
	stur	q0, [sp, #32]
	ldr	w1, [x20, #20]
	stp	xzr, xzr, [sp]
	add	x5, sp, #48
	add	x6, sp, #24
	mov	x0, x19
	mov	x2, x22
	mov	w3, #1
	mov	x4, #0
	mov	w7, #0
	bl	_hc_clEnqueueNDRangeKernel
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.6:
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_hc_clFlush
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.7:
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_hc_clFinish
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
