	.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_tm
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_run_kernel_tm
	.p2align	4, 0x90
_run_kernel_tm:                         ## @run_kernel_tm
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	28(%rsi), %esi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_MIN
	movl	%eax, %r15d
	cmpl	$1, (%rbx)
	jne	LBB0_3
## %bb.1:
	movl	24(%rbx), %esi
	movl	$1024, %eax                     ## imm = 0x400
	xorl	%edx, %edx
	idivl	%r15d
	movl	16(%rbx), %r10d
	movl	20(%rbx), %r11d
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	%r15d, %r9d
	pushq	$0
	pushq	%r11
	pushq	%r10
	pushq	$0
	pushq	$1
	pushq	$1
	callq	_hc_cuLaunchKernel
	addq	$48, %rsp
	movl	$-1, %r12d
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.2:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_cuStreamSynchronize
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_3:
	cmpl	$1, 4(%rbx)
	jne	LBB0_7
## %bb.4:
	movl	12(%rbx), %edx
	movq	l___const.run_kernel_tm.global_work_size+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.run_kernel_tm.global_work_size(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movslq	%r15d, %rax
	movq	%rax, -96(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1]
	movups	%xmm0, -88(%rbp)
	movl	8(%rbx), %esi
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	leaq	-96(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$0, 8(%rsp)
	leaq	-64(%rbp), %r9
	movq	%r14, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_hc_clEnqueueNDRangeKernel
	addq	$32, %rsp
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.5:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_clFlush
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.6:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_hc_clFinish
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_8:
	movl	$-1, %r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.run_kernel_tm.global_work_size
l___const.run_kernel_tm.global_work_size:
	.quad	1024                            ## 0x400
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_kernel_tm                  ; -- Begin function run_kernel_tm
	.p2align	2
_run_kernel_tm:                         ; @run_kernel_tm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	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, #-40]
	ldr	w1, [x1, #28]
	mov	w22, #1024
	mov	w0, #1024
	bl	_MIN
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	ldp	w9, w1, [x20, #20]
	ldr	w8, [x20, #16]
	sdiv	w2, w22, w21
	str	xzr, [sp, #16]
	stp	w8, w9, [sp, #4]
	str	wzr, [sp]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	mov	x5, x21
	mov	w6, #1
	mov	w7, #1
	bl	_hc_cuLaunchKernel
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_hc_cuStreamSynchronize
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, l___const.run_kernel_tm.global_work_size@PAGE
Lloh4:
	add	x8, x8, l___const.run_kernel_tm.global_work_size@PAGEOFF
	ldr	q1, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #64]
	sxtw	x8, w21
	str	x8, [sp, #24]
	mov	w8, #1
	dup.2d	v0, x8
	stp	q0, q1, [sp, #32]
	ldp	w1, w2, [x20, #8]
	stp	xzr, xzr, [sp]
	add	x5, sp, #48
	add	x6, sp, #24
	mov	x0, x19
	mov	w3, #1
	mov	x4, #0
	mov	w7, #0
	bl	_hc_clEnqueueNDRangeKernel
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_hc_clFlush
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_hc_clFinish
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @__const.run_kernel_tm.global_work_size
l___const.run_kernel_tm.global_work_size:
	.quad	1024                            ; 0x400
	.quad	1                               ; 0x1
	.quad	1                               ; 0x1

.subsections_via_symbols
