	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @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, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movq	_AV_CODEC_ID_ADPCM_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_FF_SANE_NB_CHANNELS@GOTPCREL(%rip), %r15
	cmpl	%eax, (%r15)
	jge	LBB0_5
## %bb.4:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	8(%rbx), %edi
	callq	_avio_r8
	movl	8(%rbx), %edi
	callq	_avio_rl32
	movq	%rax, %rcx
	movq	(%r14), %rsi
	movl	%ecx, 4(%rsi)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%r15)
	cmpl	%ecx, %eax
	jge	LBB0_7
## %bb.6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	imull	(%rsi), %ecx
	movl	%ecx, 4(%rsi)
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_MS,4,2       ## @AV_CODEC_ID_ADPCM_MS
	.comm	_FF_SANE_NB_CHANNELS,4,2        ## @FF_SANE_NB_CHANNELS
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @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	x19, x0
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _AV_CODEC_ID_ADPCM_MS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_ADPCM_MS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	x8, [x20]
	str	w0, [x8]
Lloh6:
	adrp	x21, _FF_SANE_NB_CHANNELS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FF_SANE_NB_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.ge	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	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_5:
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	w0, [x19, #8]
	bl	_avio_r8
	ldr	w0, [x19, #8]
	bl	_avio_rl32
	ldr	x8, [x20]
	str	w0, [x8, #4]
Lloh12:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x21]
	sdiv	w9, w9, w10
	cmp	w9, w0
	b.ge	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	ldr	w9, [x8]
	mul	w9, w9, w0
	str	w9, [x8, #4]
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_avio_seek
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_MS,4,2       ; @AV_CODEC_ID_ADPCM_MS
	.comm	_FF_SANE_NB_CHANNELS,4,2        ; @FF_SANE_NB_CHANNELS
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_read_header
.subsections_via_symbols
