	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g723_1_read_packet
_g723_1_read_packet:                    ## @g723_1_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
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%eax, 24(%r15)
	movl	(%r14), %edi
	callq	_avio_r8
	movl	%eax, %r13d
	movq	_frame_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	andl	$3, %ecx
	movl	(%rax,%rcx,4), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r15), %rsi
	movl	%r13d, (%rsi)
	movl	$240, 8(%r15)
	movq	$0, 16(%r15)
	movl	(%r14), %edi
	addq	$4, %rsi
	decl	%r12d
	movl	%r12d, %edx
	callq	_avio_read
	cmpl	%r12d, %eax
	jge	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_packet_unref
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.4:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	12(%r15), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_frame_size,8,3                 ## @frame_size
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_g723_1_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g723_1_read_packet
_g723_1_read_packet:                    ; @g723_1_read_packet
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_avio_tell
	str	w0, [x19, #24]
	ldr	w0, [x20]
	bl	_avio_r8
	mov	x22, x0
Lloh0:
	adrp	x8, _frame_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _frame_size@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	w9, w0, #0x3
	ldr	w21, [x8, w9, uxtw #2]
	mov	x0, x19
	mov	x1, x21
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x1, [x19]
	str	w22, [x1], #4
	mov	w8, #240
	str	w8, [x19, #8]
	str	xzr, [x19, #16]
	ldr	w0, [x20]
	sub	w21, w21, #1
	mov	x2, x21
	bl	_avio_read
	cmp	w0, w21
	b.ge	LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_av_packet_unref
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w0, w20, w8, lt
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #12]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_frame_size,8,3                 ; @frame_size
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_g723_1_read_packet
.subsections_via_symbols
