	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_opencl_load
_program_opencl_load:                   ## @program_opencl_load
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	36(%rbx), %esi
	callq	_ff_opencl_filter_load_program_from_file
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_clCreateCommandQueue
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	16(%rbx), %edi
	movq	(%rbx), %rsi
	leaq	-24(%rbp), %rdx
	callq	_clCreateKernel
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-24(%rbp), %rcx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_4:
	movq	-24(%rbp), %rcx
	movq	_CL_INVALID_KERNEL_NAME@GOTPCREL(%rip), %rax
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdx
LBB0_7:
	movq	%r14, %rdi
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create OpenCL command queue: %d.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CL_INVALID_KERNEL_NAME,8,3     ## @CL_INVALID_KERNEL_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Kernel function '%s' not found in program.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create kernel: %d.\n"

	.no_dead_strip	_program_opencl_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_opencl_load
_program_opencl_load:                   ; @program_opencl_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w1, [x20, #36]
	bl	_ff_opencl_filter_load_program_from_file
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [x20, #24]
	ldp	w1, w0, [x8]
	add	x3, sp, #8
	mov	w2, #0
	bl	_clCreateCommandQueue
	str	w0, [x20, #32]
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #16]
	ldr	x1, [x20]
	add	x2, sp, #8
	bl	_clCreateKernel
	str	w0, [x20, #12]
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _CL_INVALID_KERNEL_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CL_INVALID_KERNEL_NAME@GOTPAGEOFF]
	ldr	x3, [sp, #8]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	cmp	x3, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x3, [x20]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_av_log
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create OpenCL command queue: %d.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CL_INVALID_KERNEL_NAME,8,3     ; @CL_INVALID_KERNEL_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Kernel function '%s' not found in program.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create kernel: %d.\n"

	.no_dead_strip	_program_opencl_load
.subsections_via_symbols
