	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_get_device_string
_opencl_get_device_string:              ## @opencl_get_device_string
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clGetDeviceInfo
	movq	_CL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.1:
	movq	-40(%rbp), %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	-40(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_clGetDeviceInfo
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	cltq
	xorl	%edi, %edi
	cmpq	%rax, -40(%rbp)
	sete	%dil
	callq	_av_assert0
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_av_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_SUCCESS,8,3                 ## @CL_SUCCESS
	.no_dead_strip	_opencl_get_device_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_get_device_string
_opencl_get_device_string:              ; @opencl_get_device_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_clGetDeviceInfo
	mov	x19, #0
Lloh0:
	adrp	x22, _CL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_av_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x2, [sp, #8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_clGetDeviceInfo
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #1
	ldr	x9, [sp, #8]
	cmp	x9, w8, sxtw
	cset	w0, eq
	bl	_av_assert0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_av_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_SUCCESS,8,3                 ; @CL_SUCCESS
	.no_dead_strip	_opencl_get_device_string
.subsections_via_symbols
