	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aix_read_packet
_aix_read_packet:                       ## @aix_read_packet
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_avio_tell
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movl	4(%r14), %edi
	callq	_avio_rl32
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_avio_rb32
	movq	%rax, %r12
	movl	$65, %edi
	movl	$73, %esi
	movl	$88, %edx
	movl	$69, %ecx
	callq	_MKTAG
	cmpl	%eax, %r13d
	jne	LBB0_8
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	movl	%r12d, %esi
	callq	_avio_skip
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r14), %edi
	callq	_avio_rl32
	movl	4(%r14), %edi
	callq	_avio_rb32
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	_avio_skip
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_5
LBB0_7:
	movl	4(%r14), %edi
	callq	_avio_tell
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_avio_rl32
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_avio_rb32
	movq	%rax, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movl	$65, %edi
	movl	$73, %esi
	movl	$88, %edx
	movl	$80, %ecx
	callq	_MKTAG
	cmpl	%eax, %r13d
	jne	LBB0_14
## %bb.9:
	cmpl	$8, %r12d
	jbe	LBB0_14
## %bb.10:
	movl	4(%r14), %edi
	callq	_avio_r8
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_avio_r8
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_14
## %bb.11:
	cmpl	%ecx, %r13d
	jae	LBB0_14
## %bb.12:
	movl	4(%r14), %edi
	callq	_avio_rb16
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %edi
	callq	_avio_rb32
	addl	$-8, %r12d
	movl	4(%r14), %edi
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_17
## %bb.13:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_av_get_packet
	movl	%r13d, (%rbx)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rbx)
	movl	%r15d, 8(%rbx)
	jmp	LBB0_16
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r12d, %esi
	callq	_avio_skip
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_aix_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aix_read_packet
_aix_read_packet:                       ; @aix_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_avio_tell
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_avio_feof
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_avio_rl32
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_avio_rb32
	mov	x23, x0
	mov	w0, #65
	mov	w1, #73
	mov	w2, #88
	mov	w3, #69
	bl	_MKTAG
	cmp	w22, w0
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_avio_skip
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	bl	_avio_feof
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	bl	_avio_rl32
	ldr	w0, [x20, #4]
	bl	_avio_rb32
	mov	x1, x0
	ldr	w0, [x20, #4]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_avio_skip
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_5
LBB0_7:
	ldr	w0, [x20, #4]
	bl	_avio_tell
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_avio_rl32
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_avio_rb32
	mov	x23, x0
LBB0_8:
	mov	w0, #65
	mov	w1, #73
	mov	w2, #88
	mov	w3, #80
	bl	_MKTAG
	cmp	w22, w0
	b.ne	LBB0_14
; %bb.9:
	subs	w22, w23, #8
	b.ls	LBB0_14
; %bb.10:
	ldr	w0, [x20, #4]
	bl	_avio_r8
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_avio_r8
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:
	cmp	w23, w8
	b.hs	LBB0_14
; %bb.12:
	ldr	w0, [x20, #4]
	bl	_avio_rb16
	mov	x24, x0
	ldr	w0, [x20, #4]
	bl	_avio_rb32
	mov	x8, x0
	ldr	w0, [x20, #4]
	tbnz	w8, #31, LBB0_17
; %bb.13:
	mov	x1, x19
	mov	x2, x22
	bl	_av_get_packet
	stp	w23, w24, [x19]
	str	w21, [x19, #8]
	b	LBB0_16
LBB0_14:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x1, x22
	bl	_avio_skip
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_aix_read_packet
.subsections_via_symbols
