	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_opencl_kernel_wgs
_get_opencl_kernel_wgs:                 ## @get_opencl_kernel_wgs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -88(%rbp)
	movl	(%rsi), %edx
	movq	_CL_KERNEL_WORK_GROUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	$0, (%rsp)
	leaq	-88(%rbp), %r9
	movl	%r12d, %esi
	movl	$8, %r8d
	xorl	%eax, %eax
	callq	_hc_clGetKernelWorkGroupInfo
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	-88(%rbp), %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	(%rbx), %edx
	movq	_CL_KERNEL_COMPILE_WORK_GROUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	$0, (%rsp)
	leaq	-80(%rbp), %r9
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$24, %r8d
	xorl	%eax, %eax
	callq	_hc_clGetKernelWorkGroupInfo
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.2:
	movq	-72(%rbp), %rsi
	imulq	-80(%rbp), %rsi
	imulq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	%r15d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MIN
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_KERNEL_WORK_GROUP_SIZE,4,2  ## @CL_KERNEL_WORK_GROUP_SIZE
	.comm	_CL_KERNEL_COMPILE_WORK_GROUP_SIZE,4,2 ## @CL_KERNEL_COMPILE_WORK_GROUP_SIZE
	.no_dead_strip	_get_opencl_kernel_wgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_opencl_kernel_wgs
_get_opencl_kernel_wgs:                 ; @get_opencl_kernel_wgs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	xzr, [sp, #24]
	ldr	w2, [x1]
Lloh3:
	adrp	x8, _CL_KERNEL_WORK_GROUP_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CL_KERNEL_WORK_GROUP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x8, sp, #24
	stp	x8, xzr, [sp]
	mov	x1, x21
	mov	w4, #8
	bl	_hc_clGetKernelWorkGroupInfo
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	w20, [sp, #24]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	ldr	w2, [x23]
Lloh6:
	adrp	x8, _CL_KERNEL_COMPILE_WORK_GROUP_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CL_KERNEL_COMPILE_WORK_GROUP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x8, sp, #32
	stp	x8, xzr, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	w4, #24
	bl	_hc_clGetKernelWorkGroupInfo
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldp	x8, x9, [sp, #32]
	mul	x8, x9, x8
	ldr	x9, [sp, #48]
	mul	x1, x8, x9
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MIN
	mov	x20, x0
LBB0_4:
	mov	w0, #0
	str	w20, [x19]
LBB0_5:
	ldr	x8, [sp, #56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_KERNEL_WORK_GROUP_SIZE,4,2  ; @CL_KERNEL_WORK_GROUP_SIZE
	.comm	_CL_KERNEL_COMPILE_WORK_GROUP_SIZE,4,2 ; @CL_KERNEL_COMPILE_WORK_GROUP_SIZE
	.no_dead_strip	_get_opencl_kernel_wgs
.subsections_via_symbols
