	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_load_program_from_file ## -- Begin function ff_opencl_filter_load_program_from_file
	.p2align	4, 0x90
_ff_opencl_filter_load_program_from_file: ## @ff_opencl_filter_load_program_from_file
	.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, %rbx
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$65536, %esi                    ## imm = 0x10000
	movq	%rbx, %rcx
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	cmpl	$32769, %eax                    ## imm = 0x8001
	jb	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_av_log
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_14:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_fclose
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movl	$65536, %ebx                    ## imm = 0x10000
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	addq	%r14, %rdi
	movq	%r14, %rdx
	notq	%rdx
	addq	%rbx, %rdx
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r13, %r14
	cmpq	%rbx, %r14
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_av_reallocp
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rax
	movb	$0, (%rax,%r14)
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_ff_opencl_filter_load_program
	jmp	LBB0_14
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to open program source file \"%s\".\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"#line 1 \"%s\"\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opencl_filter_load_program_from_file ; -- Begin function ff_opencl_filter_load_program_from_file
	.p2align	2
_ff_opencl_filter_load_program_from_file: ; @ff_opencl_filter_load_program_from_file
	.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	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #65536
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #65536
	mov	x3, x21
	bl	_snprintf
	tbnz	w0, #31, LBB0_6
; %bb.3:
	cmp	w0, #8, lsl #12                 ; =32768
	b.ls	LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_av_log
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_6:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	mov	x22, x0
	mov	x0, x19
	bl	_fclose
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, x22
	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
LBB0_9:
	mov	w23, w0
	mov	w21, #65536
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, x23
	mvn	x8, x23
	add	x2, x21, x8
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_ferror
	cbnz	x0, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x22, x23
	cmp	x23, x21
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	x21, x21, #1
	add	x0, sp, #8
	mov	x1, x21
	bl	_av_reallocp
	tbz	w0, #31, LBB0_10
	b	LBB0_8
LBB0_14:
	ldr	x8, [sp, #8]
	strb	wzr, [x8, x23]
	ldr	x8, [sp, #8]
	str	x8, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_ff_opencl_filter_load_program
	b	LBB0_8
LBB0_15:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to open program source file \"%s\".\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"#line 1 \"%s\"\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
