	.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_opencl_kernel_memset
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_run_opencl_kernel_memset
	.p2align	4, 0x90
_run_opencl_kernel_memset:              ## @run_opencl_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, -116(%rbp)
	leal	15(%r15), %eax
	testl	%r8d, %r8d
	movl	%r8d, %ebx
	cmovsl	%eax, %ebx
	movl	%ebx, %r13d
	sarl	$4, %r13d
	cmpl	$31, %eax
	jae	LBB0_4
LBB0_1:
	andl	$-16, %ebx
	subl	%ebx, %r15d
	je	LBB0_3
## %bb.2:
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	%xmm0, -80(%rbp)
	movl	24(%r12), %esi
	movl	-116(%rbp), %edx
	movq	_CL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$4, %r13d
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 16(%rsp)
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$0, 8(%rsp)
	movq	%r14, %rdi
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_hc_clEnqueueWriteBuffer
	cmpl	$-1, %eax
	je	LBB0_14
LBB0_3:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_4:
	movq	32(%r12), %rax
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	movl	%ecx, 4(%rax)
	movq	(%r12), %rax
	movl	%r13d, 8(%rax)
	movl	8(%r12), %esi
	movl	%r13d, %edi
	movl	%esi, -140(%rbp)                ## 4-byte Spill
	callq	_round_up_multiple_64
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	28(%r12), %r14d
	leaq	-116(%rbp), %r8
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	movl	$-1, %ecx
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.5:
	movq	16(%r12), %rax
	movq	8(%rax), %r8
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movl	$1, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.6:
	movq	16(%r12), %rax
	movq	16(%rax), %r8
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movl	$2, %edx
	movl	$4, %ecx
	callq	_hc_clSetKernelArg
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.7:
	movslq	-140(%rbp), %rax                ## 4-byte Folded Reload
	movslq	-136(%rbp), %rcx                ## 4-byte Folded Reload
	movq	%rcx, -80(%rbp)
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1]
	movdqu	%xmm0, -72(%rbp)
	movq	%rax, -112(%rbp)
	movdqu	%xmm0, -104(%rbp)
	movl	24(%r12), %esi
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 16(%rsp)
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$0, 8(%rsp)
	leaq	-80(%rbp), %r9
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_hc_clEnqueueNDRangeKernel
	cmpl	$-1, %eax
	movq	-128(%rbp), %r14                ## 8-byte Reload
	je	LBB0_14
## %bb.8:
	movl	24(%r12), %esi
	movq	%r14, %rdi
	callq	_hc_clFlush
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:
	movl	24(%r12), %esi
	movq	%r14, %rdi
	callq	_hc_clFinish
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.10:
	movl	-132(%rbp), %ecx                ## 4-byte Reload
	jmp	LBB0_1
LBB0_14:
	movl	$-1, %ecx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ecx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_TRUE,4,2                    ## @CL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_opencl_kernel_memset       ; -- Begin function run_opencl_kernel_memset
	.p2align	2
_run_opencl_kernel_memset:              ; @run_opencl_kernel_memset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x21, x3
	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]
	str	x8, [sp, #72]
	str	w2, [sp, #20]
	add	w8, w4, #15
	cmp	w4, #0
	csel	w27, w8, w4, lt
	asr	w23, w27, #4
	cmp	w8, #31
	b.hs	LBB0_4
LBB0_1:
	and	w8, w27, #0xfffffff0
	sub	w5, w22, w8
	cbz	w5, LBB0_3
; %bb.2:
	dup.4s	v0, w21
	str	q0, [sp, #48]
	ldr	w1, [x20, #24]
	ldr	w2, [sp, #20]
Lloh3:
	adrp	x8, _CL_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CL_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	lsl	w4, w23, #4
	stp	xzr, xzr, [sp]
	add	x6, sp, #48
	mov	x0, x19
	mov	w7, #0
	bl	_hc_clEnqueueWriteBuffer
	cmn	w0, #1
	b.eq	LBB0_11
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	ldr	x8, [x20, #32]
	str	w21, [x8, #4]
	ldr	x8, [x20]
	str	w23, [x8, #8]
	ldr	w25, [x20, #8]
	mov	x0, x23
	mov	x1, x25
	bl	_round_up_multiple_64
	mov	x26, x0
	ldr	w24, [x20, #28]
	add	x4, sp, #20
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x4, [x8, #8]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	x4, [x8, #16]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #2
	mov	w3, #4
	bl	_hc_clSetKernelArg
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:
	sxtw	x8, w25
	sxtw	x9, w26
	str	x9, [sp, #48]
	mov	w9, #1
	dup.2d	v0, x9
	stur	q0, [sp, #56]
	str	x8, [sp, #24]
	stur	q0, [sp, #32]
	ldr	w1, [x20, #24]
	stp	xzr, xzr, [sp]
	add	x5, sp, #48
	add	x6, sp, #24
	mov	x0, x19
	mov	x2, x24
	mov	w3, #1
	mov	x4, #0
	mov	w7, #0
	bl	_hc_clEnqueueNDRangeKernel
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_hc_clFlush
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_hc_clFinish
	cmn	w0, #1
	b.ne	LBB0_1
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldr	x8, [sp, #72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_TRUE,4,2                    ; @CL_TRUE
.subsections_via_symbols
