	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adts_aac_read_packet
_adts_aac_read_packet:                  ## @adts_aac_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, %r15
	movq	%rdi, %r14
	movq	_ADTS_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	_ID3v2_HEADER_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_handle_id3
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_av_get_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r12), %ebx
	jl	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rdi
	callq	_AV_RB16
	andl	$-16, %eax
	cmpl	$65520, %eax                    ## imm = 0xFFF0
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %ebx
	subl	(%r12), %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_av_assert2
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_av_append_packet
	cmpl	%ebx, %eax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rdi
	movq	_ID3v2_DEFAULT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_id3v2_match
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	%r14, %rdi
	callq	_adts_aac_resync
	jmp	LBB0_8
LBB0_14:
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movq	8(%r15), %rdi
	addq	$3, %rdi
	callq	_AV_RB32
	shrl	$13, %eax
	andl	$8191, %eax                     ## imm = 0x1FFF
	cmpl	(%r12), %eax
	jge	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movl	(%r14), %edi
	subl	(%r15), %eax
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_av_append_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADTS_HEADER_SIZE,4,2           ## @ADTS_HEADER_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ID3v2_HEADER_SIZE,4,2          ## @ID3v2_HEADER_SIZE
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ## @ID3v2_DEFAULT_MAGIC
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_adts_aac_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adts_aac_read_packet
_adts_aac_read_packet:                  ; @adts_aac_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
Lloh0:
	adrp	x22, _ADTS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADTS_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ID3v2_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ID3v2_HEADER_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ID3v2_DEFAULT_MAGIC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ID3v2_DEFAULT_MAGIC@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_av_packet_unref
	mov	x0, x20
	bl	_adts_aac_resync
	tbnz	w0, #31, LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_av_get_packet
	mov	x21, x0
	tbnz	w0, #31, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	bl	_AV_RB16
	lsr	w8, w0, #4
	cmp	w8, #4095
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x22]
	sub	w21, w8, w9
	cmp	w21, #0
	cset	w0, gt
	bl	_av_assert2
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_av_append_packet
	cmp	w0, w21
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_ff_id3v2_match
	cbz	w0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_handle_id3
	tbz	w0, #31, LBB0_2
LBB0_8:
	mov	x21, x0
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_av_packet_unref
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_10:
	ldr	x8, [x19, #8]
	add	x0, x8, #3
	bl	_AV_RB32
	ubfx	w8, w0, #13, #13
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_av_packet_unref
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_14
LBB0_12:
	ldr	w0, [x20]
	ldr	w9, [x19]
	sub	w2, w8, w9
	mov	x1, x19
	bl	_av_append_packet
	mov	x21, x0
	tbz	w0, #31, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ADTS_HEADER_SIZE,4,2           ; @ADTS_HEADER_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ID3v2_HEADER_SIZE,4,2          ; @ID3v2_HEADER_SIZE
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ; @ID3v2_DEFAULT_MAGIC
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_adts_aac_read_packet
.subsections_via_symbols
