	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_avfilter_graph_init         ## -- Begin function hb_avfilter_graph_init
	.p2align	4, 0x90
_hb_avfilter_graph_init:                ## @hb_avfilter_graph_init
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	_HB_FILTER_AVFILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hb_filter_settings_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	%rax, (%r12)
	xorl	%eax, %eax
	callq	_avfilter_graph_alloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set
	movq	32(%r12), %rdi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rsi
	callq	_avfilter_graph_parse2
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.8:
	cmpq	$0, -40(%rbp)
	je	LBB0_9
## %bb.12:
	movl	28(%r14), %esi
	movl	24(%r14), %edx
	movl	32(%r14), %ecx
	movl	20(%r14), %r8d
	movl	16(%r14), %r9d
	movl	12(%r14), %r10d
	movl	8(%r14), %r11d
	movl	(%r14), %eax
	movl	4(%r14), %ebx
	leaq	L_.str.5(%rip), %rdi
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_hb_strdup_printf
	addq	$32, %rsp
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_append_filter
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_13
## %bb.14:
	movq	-56(%rbp), %rbx
	movq	%r14, 48(%rbx)
	movl	40(%rbx), %edi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_avfilter_link
	testl	%eax, %eax
	js	LBB0_10
## %bb.15:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_append_filter
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, 8(%rbx)
	movq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_avfilter_graph_config
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	-48(%rbp), %rdi
	callq	_avfilter_inout_free
	leaq	-40(%rbp), %rdi
	callq	_avfilter_inout_free
	jmp	LBB0_22
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_hb_error
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_3
LBB0_16:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_3
LBB0_18:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_3
LBB0_20:
	leaq	L_.str.11(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_hb_error
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_avfilter_inout_free
	leaq	-40(%rbp), %rdi
	callq	_avfilter_inout_free
	leaq	-56(%rbp), %rdi
	callq	_hb_avfilter_graph_close
LBB0_11:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_FILTER_AVFILTER,4,2         ## @HB_FILTER_AVFILTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_avfilter_graph_init: no filter settings specified"

L_.str.1:                               ## @.str.1
	.asciz	"hb_avfilter_graph_init: avfilter_graph_alloc failed"

L_.str.2:                               ## @.str.2
	.asciz	"scale_sws_opts"

L_.str.3:                               ## @.str.3
	.asciz	"lanczos+accurate_rnd"

L_.str.4:                               ## @.str.4
	.asciz	"hb_avfilter_graph_init: avfilter_graph_parse2 failed (%s)"

L_.str.5:                               ## @.str.5
	.asciz	"width=%d:height=%d:pix_fmt=%d:sar=%d/%d:time_base=%d/%d:frame_rate=%d/%d"

L_.str.6:                               ## @.str.6
	.asciz	"buffer"

L_.str.7:                               ## @.str.7
	.asciz	"hb_avfilter_graph_init: failed to create buffer source filter"

L_.str.8:                               ## @.str.8
	.asciz	"buffersink"

L_.str.9:                               ## @.str.9
	.asciz	"hb_avfilter_graph_init: failed to create buffer output filter"

L_.str.10:                              ## @.str.10
	.asciz	"hb_avfilter_graph_init: failed to configure filter graph"

L_.str.11:                              ## @.str.11
	.asciz	"hb_avfilter_graph_init: failed to allocate frame filter"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ## @AV_OPT_SEARCH_CHILDREN
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_avfilter_graph_init         ; -- Begin function hb_avfilter_graph_init
	.p2align	2
_hb_avfilter_graph_init:                ; @hb_avfilter_graph_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #8]
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	mov	x19, x0
	str	x0, [sp, #24]
	cbz	x0, LBB0_21
; %bb.1:
Lloh0:
	adrp	x8, _HB_FILTER_AVFILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_FILTER_AVFILTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_hb_filter_settings_string
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	str	x0, [x19]
	bl	_avfilter_graph_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_13
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh5:
	adrp	x2, l_.str.3@PAGE
Lloh6:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set
	ldr	x0, [x19, #32]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x1, x21
	bl	_avfilter_graph_parse2
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_14
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.6:
	ldp	w2, w1, [x20, #24]
	ldr	w3, [x20, #32]
	ldp	w5, w4, [x20, #16]
	ldp	w7, w6, [x20, #8]
	ldp	w9, w8, [x20]
	stp	w8, w9, [sp]
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_hb_strdup_printf
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_append_filter
	mov	x20, x0
	mov	x0, x21
	bl	_free
	cbz	x20, LBB0_15
; %bb.7:
	ldp	x8, x19, [sp, #16]
	str	x20, [x19, #48]
	ldr	w0, [x19, #40]
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_avfilter_link
	tbnz	w0, #31, LBB0_20
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh11:
	adrp	x1, l_.str.8@PAGE
Lloh12:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_append_filter
	cbz	x0, LBB0_16
; %bb.9:
	str	x0, [x19, #8]
	ldr	x0, [x19, #32]
	mov	x1, #0
	bl	_avfilter_graph_config
	tbnz	w0, #31, LBB0_17
; %bb.10:
	bl	_av_frame_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x0, sp, #16
	bl	_avfilter_inout_free
	add	x0, sp, #8
	bl	_avfilter_inout_free
	b	LBB0_21
LBB0_12:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_13:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_14:
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh21:
	adrp	x0, l_.str.9@PAGE
Lloh22:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh23:
	adrp	x0, l_.str.10@PAGE
Lloh24:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_19:
	bl	_hb_error
LBB0_20:
	add	x0, sp, #16
	bl	_avfilter_inout_free
	add	x0, sp, #8
	bl	_avfilter_inout_free
	add	x0, sp, #24
	bl	_hb_avfilter_graph_close
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_FILTER_AVFILTER,4,2         ; @HB_FILTER_AVFILTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_avfilter_graph_init: no filter settings specified"

l_.str.1:                               ; @.str.1
	.asciz	"hb_avfilter_graph_init: avfilter_graph_alloc failed"

l_.str.2:                               ; @.str.2
	.asciz	"scale_sws_opts"

l_.str.3:                               ; @.str.3
	.asciz	"lanczos+accurate_rnd"

l_.str.4:                               ; @.str.4
	.asciz	"hb_avfilter_graph_init: avfilter_graph_parse2 failed (%s)"

l_.str.5:                               ; @.str.5
	.asciz	"width=%d:height=%d:pix_fmt=%d:sar=%d/%d:time_base=%d/%d:frame_rate=%d/%d"

l_.str.6:                               ; @.str.6
	.asciz	"buffer"

l_.str.7:                               ; @.str.7
	.asciz	"hb_avfilter_graph_init: failed to create buffer source filter"

l_.str.8:                               ; @.str.8
	.asciz	"buffersink"

l_.str.9:                               ; @.str.9
	.asciz	"hb_avfilter_graph_init: failed to create buffer output filter"

l_.str.10:                              ; @.str.10
	.asciz	"hb_avfilter_graph_init: failed to configure filter graph"

l_.str.11:                              ; @.str.11
	.asciz	"hb_avfilter_graph_init: failed to allocate frame filter"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ; @AV_OPT_SEARCH_CHILDREN
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
.subsections_via_symbols
