	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_load_program  ## -- Begin function ff_opencl_filter_load_program
	.p2align	4, 0x90
_ff_opencl_filter_load_program:         ## @ff_opencl_filter_load_program
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%r15), %rcx
	movl	4(%rcx), %edi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r8
	movl	%edx, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_clCreateProgramWithSource
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_clBuildProgram
	movq	%rax, -48(%rbp)
	movq	_CL_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_av_log
	movq	-48(%rbp), %rax
	movq	_CL_BUILD_PROGRAM_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	_CL_PROGRAM_BUILD_LOG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-56(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_clGetProgramBuildInfo
	movq	-56(%rbp), %rdi
	callq	_av_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	-56(%rbp), %rcx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_clGetProgramBuildInfo
	movq	%rax, -48(%rbp)
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.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
LBB0_7:
	movq	%rbx, %rdi
	callq	_av_free
LBB0_8:
	movq	(%r15), %rdi
	callq	_clReleaseProgram
	movq	$0, (%r15)
	jmp	LBB0_9
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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 program: %d.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CL_SUCCESS,8,3                 ## @CL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to build program: %d.\n"

	.comm	_CL_BUILD_PROGRAM_FAILURE,8,3   ## @CL_BUILD_PROGRAM_FAILURE
	.comm	_CL_PROGRAM_BUILD_LOG,4,2       ## @CL_PROGRAM_BUILD_LOG
L_.str.2:                               ## @.str.2
	.asciz	"Build log:\n%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_load_program  ; -- Begin function ff_opencl_filter_load_program
	.p2align	2
_ff_opencl_filter_load_program:         ; @ff_opencl_filter_load_program
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x9, [x21, #8]
	ldr	w0, [x9, #4]
	add	x4, sp, #8
	mov	x1, x2
	mov	x2, x8
	mov	x3, #0
	bl	_clCreateProgramWithSource
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x2, [x21, #8]
	mov	w1, #1
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_clBuildProgram
	str	x0, [sp, #8]
Lloh0:
	adrp	x22, _CL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_11
LBB0_3:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_10
LBB0_4:
	mov	x3, x0
Lloh7:
	adrp	x23, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _AV_LOG_ERROR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [sp, #8]
Lloh11:
	adrp	x9, _CL_BUILD_PROGRAM_FAILURE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CL_BUILD_PROGRAM_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldp	x0, x8, [x21]
	ldr	w1, [x8]
Lloh14:
	adrp	x24, _CL_PROGRAM_BUILD_LOG@GOTPAGE
Lloh15:
	ldr	x24, [x24, _CL_PROGRAM_BUILD_LOG@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x5, sp
	mov	x3, #0
	mov	x4, #0
	bl	_clGetProgramBuildInfo
	ldr	x0, [sp]
	bl	_av_malloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.6:
	ldp	x0, x8, [x21]
	ldr	w1, [x8]
	ldr	w2, [x24]
	ldr	x3, [sp]
	mov	x4, x20
	mov	x5, #0
	bl	_clGetProgramBuildInfo
	str	x0, [sp, #8]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x23]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
LBB0_8:
	mov	x0, x20
	bl	_av_free
LBB0_9:
	ldr	x0, [x21]
	bl	_clReleaseProgram
	str	xzr, [x21]
LBB0_10:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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 program: %d.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CL_SUCCESS,8,3                 ; @CL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to build program: %d.\n"

	.comm	_CL_BUILD_PROGRAM_FAILURE,8,3   ; @CL_BUILD_PROGRAM_FAILURE
	.comm	_CL_PROGRAM_BUILD_LOG,4,2       ; @CL_PROGRAM_BUILD_LOG
l_.str.2:                               ; @.str.2
	.asciz	"Build log:\n%s\n"

.subsections_via_symbols
