	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_input
_init_input:                            ## @init_input
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_AVPROBE_SCORE_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -44(%rbp)
	movl	24(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movq	_AVFMT_FLAG_CUSTOM_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rbx)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	jmp	LBB0_12
LBB0_4:
	movq	%rdx, %r13
	leaq	16(%rbx), %r12
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_12
	jmp	LBB0_6
LBB0_13:
	leaq	16(%rbx), %rsi
	movl	12(%rbx), %r9d
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_probe_input_buffer2         ## TAILCALL
LBB0_10:
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_av_probe_input_format2
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movl	-44(%rbp), %r15d
	jmp	LBB0_12
LBB0_6:
	leaq	24(%rbx), %rsi
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r13, %r8
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.8:
	movl	12(%rbx), %r9d
	movl	24(%rbx), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_av_probe_input_buffer2
LBB0_9:
	movl	%eax, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVPROBE_SCORE_RETRY,4,2        ## @AVPROBE_SCORE_RETRY
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ## @AVFMT_FLAG_CUSTOM_IO
	.comm	_AVFMT_NOFILE,4,2               ## @AVFMT_NOFILE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Custom AVIOContext makes no sense and will be ignored with AVFMT_NOFILE format.\n"

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.no_dead_strip	_init_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_input
_init_input:                            ; @init_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	str	wzr, [sp, #16]
Lloh0:
	adrp	x8, _AVPROBE_SCORE_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVPROBE_SCORE_RETRY@GOTPAGEOFF]
	str	xzr, [sp, #24]
Lloh2:
	ldr	w0, [x8]
	str	w0, [sp, #4]
	mov	x23, x19
	ldr	w8, [x23, #24]!
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _AVFMT_FLAG_CUSTOM_IO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVFMT_FLAG_CUSTOM_IO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	mov	x1, x19
	ldr	x9, [x1, #16]!
	ldr	w11, [x1, #12]
	orr	w10, w11, w10
	str	w10, [x1, #12]
	cbz	x9, LBB0_6
; %bb.2:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
Lloh9:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_12
LBB0_4:
	mov	x21, x2
	mov	x22, x19
	ldr	x8, [x22, #16]!
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
	b	LBB0_9
LBB0_6:
	ldr	w5, [x19, #12]
	mov	x0, x8
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_av_probe_input_buffer2
LBB0_7:
	add	x0, sp, #8
	add	x2, sp, #4
	mov	w1, #0
	bl	_av_probe_input_format2
	str	x0, [x22]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [sp, #4]
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _AVIO_FLAG_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w3, w10, w9
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x4, x21
	blr	x8
	tbnz	w0, #31, LBB0_12
; %bb.10:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	w0, [x19, #24]
	ldr	w5, [x19, #12]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	_av_probe_input_buffer2
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AVPROBE_SCORE_RETRY,4,2        ; @AVPROBE_SCORE_RETRY
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ; @AVFMT_FLAG_CUSTOM_IO
	.comm	_AVFMT_NOFILE,4,2               ; @AVFMT_NOFILE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Custom AVIOContext makes no sense and will be ignored with AVFMT_NOFILE format.\n"

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.no_dead_strip	_init_input
.subsections_via_symbols
