	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_device_create
_opencl_device_create:                  ## @opencl_device_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_opencl_filter_device@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	_opencl_enumerate_devices@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	_opencl_filter_platform@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	_opencl_enumerate_platforms@GOTPCREL(%rip), %rax
	movq	%rax, -40(%rbp)
	movq	%rdx, -32(%rbp)
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_8
## %bb.2:
	movl	$-1, -20(%rbp)
	movl	$-1, -24(%rbp)
	cmpb	$46, %al
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_6
LBB0_7:
	movl	-24(%rbp), %eax
	movl	%eax, -72(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_9
LBB0_8:
	movq	$-1, -72(%rbp)
LBB0_9:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_opencl_device_create_internal
LBB0_10:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	testl	%eax, %eax
	jg	LBB0_7
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_opencl_filter_device,4,2       ## @opencl_filter_device
	.comm	_opencl_enumerate_devices,4,2   ## @opencl_enumerate_devices
	.comm	_opencl_filter_platform,4,2     ## @opencl_filter_platform
	.comm	_opencl_enumerate_platforms,4,2 ## @opencl_enumerate_platforms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".%d"

L_.str.1:                               ## @.str.1
	.asciz	"%d.%d"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Invalid OpenCL platform/device index specification \"%s\".\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_opencl_device_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_device_create
_opencl_device_create:                  ; @opencl_device_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _opencl_filter_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _opencl_filter_device@GOTPAGEOFF]
Lloh2:
	adrp	x9, _opencl_enumerate_devices@GOTPAGE
Lloh3:
	ldr	x9, [x9, _opencl_enumerate_devices@GOTPAGEOFF]
Lloh4:
	adrp	x10, _opencl_filter_platform@GOTPAGE
Lloh5:
	ldr	x10, [x10, _opencl_filter_platform@GOTPAGEOFF]
	stp	x8, x9, [sp, #24]
Lloh6:
	adrp	x8, _opencl_enumerate_platforms@GOTPAGE
Lloh7:
	ldr	x8, [x8, _opencl_enumerate_platforms@GOTPAGEOFF]
	stp	x10, x8, [sp, #40]
	str	x2, [sp, #56]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w9, #-1
	stp	w9, w9, [sp, #8]
	cmp	w8, #46
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	b	LBB0_6
LBB0_4:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #16]
	b	LBB0_8
LBB0_5:
	add	x8, sp, #12
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
LBB0_6:
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #0
	b.le	LBB0_10
; %bb.7:
	ldp	w8, w9, [sp, #8]
	stp	w8, w9, [sp, #16]
LBB0_8:
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, #0
	bl	_opencl_device_create_internal
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_opencl_filter_device,4,2       ; @opencl_filter_device
	.comm	_opencl_enumerate_devices,4,2   ; @opencl_enumerate_devices
	.comm	_opencl_filter_platform,4,2     ; @opencl_filter_platform
	.comm	_opencl_enumerate_platforms,4,2 ; @opencl_enumerate_platforms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".%d"

l_.str.1:                               ; @.str.1
	.asciz	"%d.%d"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Invalid OpenCL platform/device index specification \"%s\".\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_opencl_device_create
.subsections_via_symbols
