	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_cuda_kernel_memset         ## -- Begin function run_cuda_kernel_memset
	.p2align	4, 0x90
_run_cuda_kernel_memset:                ## @run_cuda_kernel_memset
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rdx, -56(%rbp)
	leal	15(%r12), %eax
	testl	%r8d, %r8d
	movl	%r8d, %r13d
	cmovsl	%eax, %r13d
	movl	%r13d, %r14d
	sarl	$4, %r14d
	cmpl	$31, %eax
	jb	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	leaq	-56(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	32(%rsi), %rax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, 4(%rax)
	movq	(%rsi), %rax
	movl	%r14d, 8(%rax)
	movl	8(%rsi), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	%r14d, %edi
	callq	_CEILDIV
	movl	24(%rbx), %esi
	movl	12(%rbx), %r10d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	16(%rbx)
	pushq	%r10
	pushq	$0
	pushq	$1
	pushq	$1
	callq	_hc_cuLaunchKernel
	addq	$48, %rsp
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	12(%rbx), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hc_cuStreamSynchronize
	cmpl	$-1, %eax
	movq	%rbx, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_7
LBB0_3:
	andl	$-16, %r13d
	subl	%r13d, %r12d
	je	LBB0_6
## %bb.4:
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	%xmm0, -80(%rbp)
	shll	$4, %r14d
	movslq	%r14d, %rsi
	addq	-56(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movl	%r12d, %ecx
	callq	_hc_cuMemcpyHtoD
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_5:
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_cuda_kernel_memset         ; -- Begin function run_cuda_kernel_memset
	.p2align	2
_run_cuda_kernel_memset:                ; @run_cuda_kernel_memset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x20, x3
	mov	x19, x0
	str	x2, [sp, #56]
	add	w8, w4, #15
	cmp	w4, #0
	csel	w25, w8, w4, lt
	asr	w22, w25, #4
	cmp	w8, #31
	b.lo	LBB0_3
; %bb.1:
	mov	x23, x1
	ldr	x8, [x1, #16]
	add	x9, sp, #56
	str	x9, [x8]
	ldr	x8, [x1, #32]
	str	w20, [x8, #4]
	ldr	x8, [x1]
	str	w22, [x8, #8]
	ldr	w24, [x1, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_CEILDIV
	mov	x2, x0
	ldr	w1, [x23, #24]
	ldr	w8, [x23, #12]
	ldr	x9, [x23, #16]
	stp	x9, xzr, [sp, #8]
	stp	wzr, w8, [sp]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	mov	x5, x24
	mov	w6, #1
	mov	w7, #1
	bl	_hc_cuLaunchKernel
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	ldr	w1, [x23, #12]
	mov	x0, x19
	bl	_hc_cuStreamSynchronize
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_3:
	and	w8, w25, #0xfffffff0
	sub	w3, w21, w8
	cbz	w3, LBB0_5
; %bb.4:
	dup.4s	v0, w20
	str	q0, [sp, #32]
	ldr	x8, [sp, #56]
	lsl	w9, w22, #4
	add	x1, x8, w9, sxtw
	add	x2, sp, #32
	mov	x0, x19
	bl	_hc_cuMemcpyHtoD
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
