	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_read_header
_ast_read_header:                       ## @ast_read_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_avio_skip
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 24(%rcx)
	movq	_ff_codec_ast_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_avio_rb16
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_ff_codec_get_id
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	(%r15), %edi
	callq	_avio_rb16
	cmpl	$16, %eax
	jne	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	callq	_avio_rb16
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	cmpl	$4, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$2, %eax
	je	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_avpriv_request_sample
	jmp	LBB0_7
LBB0_8:
	movq	_AV_CH_LAYOUT_4POINT0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
LBB0_10:
	movl	(%r15), %edi
	movl	$2, %esi
	callq	_avio_skip
	movl	(%r15), %edi
	callq	_avio_rb32
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jg	LBB0_11
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	$0, 16(%r14)
	movl	(%r15), %edi
	callq	_avio_rb32
	movq	%rax, 8(%r14)
	movl	(%r15), %edi
	movl	$40, %esi
	callq	_avio_skip
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_ast_tags,4,2          ## @ff_codec_ast_tags
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"depth %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_4POINT0,4,2       ## @AV_CH_LAYOUT_4POINT0
	.no_dead_strip	_ast_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_read_header
_ast_read_header:                       ; @ast_read_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	mov	w1, #8
	bl	_avio_skip
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #24]
Lloh3:
	adrp	x8, _ff_codec_ast_tags@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_codec_ast_tags@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x20]
	bl	_avio_rb16
	mov	x1, x0
	mov	x0, x21
	bl	_ff_codec_get_id
	ldr	x8, [x19]
	str	w0, [x8, #20]
	ldr	w0, [x20]
	bl	_avio_rb16
	mov	x2, x0
	cmp	w2, #16
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20]
	bl	_avio_rb16
	ldr	x8, [x19]
	str	w0, [x8]
	cmp	w0, #4
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #2
	b.eq	LBB0_8
; %bb.4:
	cbnz	w0, LBB0_10
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avpriv_request_sample
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x9, _AV_CH_LAYOUT_4POINT0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_CH_LAYOUT_4POINT0@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	str	w9, [x8, #16]
LBB0_10:
	ldr	w0, [x20]
	mov	w1, #2
	bl	_avio_skip
	ldr	w0, [x20]
	bl	_avio_rb32
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cmp	x0, #0
	b.gt	LBB0_13
LBB0_11:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	str	xzr, [x19, #16]
	ldr	w0, [x20]
	bl	_avio_rb32
	str	x0, [x19, #8]
	ldr	w0, [x20]
	mov	w1, #40
	bl	_avio_skip
	ldr	x8, [x19]
	ldr	x3, [x8, #8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_ast_tags,4,2          ; @ff_codec_ast_tags
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"depth %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_4POINT0,4,2       ; @AV_CH_LAYOUT_4POINT0
	.no_dead_strip	_ast_read_header
.subsections_via_symbols
