	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_filter_device
_opencl_filter_device:                  ## @opencl_filter_device
	.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
	movq	%rdx, %r13
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	_opencl_device_types@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r12), %rdi
	movl	8(%r15), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_16
LBB0_5:
	movq	(%r14), %rax
	movl	8(%rax,%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.6:
	movq	_CL_DEVICE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_clGetDeviceInfo
	movq	_CL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.7:
	testl	%ebx, -64(%rbp)
	je	LBB0_22
LBB0_8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_opencl_device_params@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_21
## %bb.9:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_av_free
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movq	(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %r12
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r12), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %r15
	movq	(%r13), %rax
	movl	12(%rax,%r12), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_opencl_get_device_string
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	movl	8(%r15), %esi
	movq	%rax, %rdi
	callq	_av_stristr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_20
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax,%r12), %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_19
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_19:
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device_type"

	.comm	_opencl_device_types,8,3        ## @opencl_device_types
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unknown device type %s.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CL_DEVICE_TYPE,4,2             ## @CL_DEVICE_TYPE
	.comm	_CL_SUCCESS,8,3                 ## @CL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to query device type of device \"%s\".\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"device_type does not match.\n"

	.comm	_opencl_device_params,8,3       ## @opencl_device_params
L_.str.4:                               ## @.str.4
	.asciz	"Failed to query %s of device \"%s\".\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s does not match (\"%s\").\n"

	.no_dead_strip	_opencl_filter_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_filter_device
_opencl_filter_device:                  ; @opencl_filter_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x26, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x0
Lloh2:
	adrp	x20, _opencl_device_types@GOTPAGE
Lloh3:
	ldr	x20, [x20, _opencl_device_types@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x24, #0
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x24]
	ldr	w1, [x23, #8]
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x0, [x20]
	bl	_FF_ARRAY_ELEMS
	add	x24, x24, #16
	cmp	x25, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_16
LBB0_5:
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	w20, [x8, #8]
	cbz	w20, LBB0_16
; %bb.6:
Lloh4:
	adrp	x8, _CL_DEVICE_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CL_DEVICE_TYPE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x3, sp, #28
	mov	x0, x22
	mov	w2, #4
	mov	x4, #0
	bl	_clGetDeviceInfo
Lloh7:
	adrp	x8, _CL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CL_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.7:
	ldr	w8, [sp, #28]
	tst	w8, w20
	b.eq	LBB0_22
LBB0_8:
Lloh10:
	adrp	x27, _opencl_device_params@GOTPAGE
Lloh11:
	ldr	x27, [x27, _opencl_device_params@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.9:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	mov	x28, #0
	mov	x20, #0
	mov	w23, #0
Lloh12:
	adrp	x24, l_.str.5@PAGE
Lloh13:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x25
	bl	_av_free
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldr	x0, [x27]
	bl	_FF_ARRAY_ELEMS
	add	x28, x28, #16
	cmp	x20, w0, sxtw
	b.ge	LBB0_21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x1, [x8, x28]
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x26, x0
	ldr	x8, [x27]
	add	x8, x8, x28
	ldr	w1, [x8, #12]
	mov	x0, x22
	bl	_opencl_get_device_string
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x0
	ldr	w1, [x26, #8]
	bl	_av_stristr
	cbnz	w0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh14:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x26]
	stp	x8, x25, [sp]
	mov	x0, x19
	mov	x2, x24
	bl	_av_log
	mov	w23, #1
	b	LBB0_10
LBB0_16:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x23, #8]
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_21
LBB0_17:
	mov	w23, #0
	b	LBB0_21
LBB0_18:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	x8, [x27]
	ldr	x8, [x8, x28]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	str	x26, [sp]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_av_log
Lloh35:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh37:
	ldr	w23, [x8]
LBB0_21:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
Lloh38:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w23, #1
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device_type"

	.comm	_opencl_device_types,8,3        ; @opencl_device_types
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unknown device type %s.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CL_DEVICE_TYPE,4,2             ; @CL_DEVICE_TYPE
	.comm	_CL_SUCCESS,8,3                 ; @CL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to query device type of device \"%s\".\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"device_type does not match.\n"

	.comm	_opencl_device_params,8,3       ; @opencl_device_params
l_.str.4:                               ; @.str.4
	.asciz	"Failed to query %s of device \"%s\".\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s does not match (\"%s\").\n"

	.no_dead_strip	_opencl_filter_device
.subsections_via_symbols
