	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aix_read_header
_aix_read_header:                       ## @aix_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movl	$4, %esi
	callq	_avio_skip
	movl	(%r12), %edi
	callq	_avio_rb32
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	$16, %esi
	callq	_avio_skip
	movl	(%r12), %edi
	callq	_avio_rb16
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	addl	$8, %r14d
	shll	$4, %eax
	addl	$48, %eax
	cmpl	%r14d, %eax
	jae	LBB0_1
## %bb.3:
	movl	(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_avio_seek
	movl	(%r12), %edi
	callq	_avio_r8
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	movl	(%r12), %edi
	movl	$7, %esi
	callq	_avio_skip
	movq	_AV_CODEC_ID_ADPCM_ADX@GOTPCREL(%rip), %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 20(%rcx)
	movl	(%r15), %eax
	movl	%eax, 16(%rcx)
	movl	(%r12), %edi
	callq	_avio_rb32
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	callq	_avio_r8
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	(%r12), %edi
	movl	$3, %esi
	callq	_avio_skip
	decl	%r13d
	jne	LBB0_5
## %bb.7:
	movl	(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_avio_seek
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovael	%eax, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_avio_rl32
	movq	%rax, %rbx
	movl	$65, %edi
	movl	$73, %esi
	movl	$88, %edx
	movl	$80, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	callq	_avio_rb32
	cmpl	$8, %eax
	jbe	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_avio_skip
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	addl	$-8, %ebx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_ff_get_extradata
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_ADX,4,2      ## @AV_CODEC_ID_ADPCM_ADX
	.no_dead_strip	_aix_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aix_read_header
_aix_read_header:                       ; @aix_read_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #4
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_rb32
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #16
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_rb16
	cbz	w0, LBB0_11
; %bb.1:
	add	w20, w20, #8
	lsl	w8, w0, #4
	add	w1, w8, #48
	cmp	w1, w20
	b.hs	LBB0_11
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_avio_seek
	ldr	w0, [x19]
	bl	_avio_r8
	mov	x21, x0
	cbz	w21, LBB0_11
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #7
	bl	_avio_skip
Lloh2:
	adrp	x24, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	adrp	x25, _AV_CODEC_ID_ADPCM_ADX@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AV_CODEC_ID_ADPCM_ADX@GOTPAGEOFF]
	mov	x26, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	w8, [x24]
	ldr	x9, [x0]
	ldr	w10, [x25]
	stp	w10, w8, [x9, #16]
	ldr	w0, [x19]
	bl	_avio_rb32
	ldr	x8, [x22]
	str	w0, [x8]
	ldr	w0, [x19]
	bl	_avio_r8
	ldr	x8, [x22]
	str	x0, [x8, #8]
	ldr	w3, [x8]
	mov	x0, x22
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	w0, [x19]
	mov	w1, #3
	bl	_avio_skip
	subs	w26, w26, #1
	b.ne	LBB0_4
; %bb.6:
	ldr	w0, [x19]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_avio_seek
	mov	x22, #0
	cmp	w21, #1
	csinc	w8, w21, wzr, hi
	lsl	x21, x8, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_avio_rl32
	mov	x20, x0
	mov	w0, #65
	mov	w1, #73
	mov	w2, #88
	mov	w3, #80
	bl	_MKTAG
	cmp	x20, x0
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19]
	bl	_avio_rb32
	subs	w20, w0, #8
	b.ls	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19]
	mov	w1, #8
	bl	_avio_skip
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22]
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	mov	x3, x20
	bl	_ff_get_extradata
	add	x22, x22, #8
	cmp	x21, x22
	b.ne	LBB0_7
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_ADX,4,2      ; @AV_CODEC_ID_ADPCM_ADX
	.no_dead_strip	_aix_read_header
.subsections_via_symbols
