	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_audio_frame
_decode_audio_frame:                    ## @decode_audio_frame
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_packet
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.2:
	movl	$1, (%r15)
LBB0_3:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_avcodec_send_packet
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_avcodec_receive_frame
	movl	%eax, %r12d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	xorl	%ebx, %ebx
	cmpl	%eax, %r12d
	je	LBB0_14
## %bb.8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
## %bb.9:
	movl	$1, (%r15)
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_15
LBB0_10:
	testl	%r12d, %r12d
	js	LBB0_11
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_13
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_av_err2str
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_13:
	movl	%r12d, %ebx
LBB0_14:
	leaq	-44(%rbp), %rdi
	callq	_av_packet_unref
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read frame (error '%s')\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not send packet for decoding (error '%s')\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"Could not decode frame (error '%s')\n"

	.no_dead_strip	_decode_audio_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_audio_frame
_decode_audio_frame:                    ; @decode_audio_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	add	x0, sp, #12
	bl	_init_packet
	add	x1, sp, #12
	mov	x0, x19
	bl	_av_read_frame
	tbz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	add	x1, sp, #12
	mov	x0, x22
	bl	_avcodec_send_packet
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	bl	_avcodec_receive_frame
	mov	x19, x0
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w19, w0
	b.ne	LBB0_7
; %bb.5:
	mov	w19, #0
	b	LBB0_14
LBB0_6:
	mov	x19, x0
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	bl	_av_err2str
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_11
; %bb.8:
	mov	w19, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_14
LBB0_9:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_av_err2str
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_fprintf
	b	LBB0_15
LBB0_11:
	tbnz	w19, #31, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_av_err2str
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_14:
	add	x0, sp, #12
	bl	_av_packet_unref
LBB0_15:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read frame (error '%s')\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not send packet for decoding (error '%s')\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"Could not decode frame (error '%s')\n"

	.no_dead_strip	_decode_audio_frame
.subsections_via_symbols
