	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function decodeAudio
LCPI0_0:
	.quad	0x40f5f90000000000              ## double 9.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decodeAudio:                           ## @decodeAudio
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r12
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %rcx
	cmpq	%rax, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rcx, (%rbx)
LBB0_4:
	movq	64(%rbx), %r15
	leaq	-88(%rbp), %rdi
	callq	_av_init_packet
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movq	24(%r14), %rax
	movq	(%r14), %rdx
	movq	16(%r14), %rcx
	movq	%rdx, -88(%rbp)
	movq	(%r12), %rdx
	movq	%rdx, -56(%rbp)
	movq	_AV_PKT_FLAG_DISCARD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	8(%r14), %edx
	orl	%edx, -80(%rbp)
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_7:
	movq	%rax, -64(%rbp)
	movq	%rcx, -72(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_avcodec_send_packet
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	cmpl	(%rcx), %eax
	jne	LBB0_42
LBB0_9:
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	leaq	40(%rbx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_hb_buffer_list_append
LBB0_40:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	32(%rbx), %rdi
	callq	_av_frame_unref
	incl	24(%rbx)
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	js	LBB0_10
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r15), %eax
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	4(%rdi), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, 8(%rbx)
	movq	8(%rdi), %r13
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	movapd	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	48(%rbx), %rax
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-72(%rbp), %rdi
	callq	_hb_buffer_init
	movq	%rax, -48(%rbp)
	movq	40(%rax), %rdi
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rsi
	callq	_memcpy
LBB0_33:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_40
LBB0_34:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	12(%r14), %eax
	movl	%eax, 32(%rsi)
	movq	%r13, 8(%rsi)
	movapd	-112(%rbp), %xmm0               ## 16-byte Reload
	movsd	%xmm0, 16(%rsi)
	cmpq	(%r12), %r13
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rax
	movq	(%rbx), %r13
	movq	%r13, 8(%rsi)
	cmpq	%rax, %r13
	je	LBB0_39
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_AV_FRAME_DATA_DOWNMIX_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_frame_get_side_data
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	48(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	_HB_AMIXDOWN_DOLBY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	(%rax), %rax
	setne	%dl
	movq	_HB_AMIXDOWN_DOLBYPLII@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	setne	%cl
	andb	%dl, %cl
	movzbl	%cl, %ecx
	shlq	$4, %rcx
	movsd	(%rax,%rcx), %xmm0              ## xmm0 = mem[0],zero
	movsd	8(%rax,%rcx), %xmm1             ## xmm1 = mem[0],zero
	movl	56(%rbx), %edi
	movl	32(%rax), %esi
	callq	_hb_audio_resample_set_mix_levels
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	32(%rbx), %rax
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	36(%rax), %edi
	callq	_av_get_default_channel_layout
	movq	%rax, %rsi
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	56(%rbx), %edi
	callq	_hb_audio_resample_set_channel_layout
	movl	56(%rbx), %edi
	movq	32(%rbx), %rax
	movl	32(%rax), %esi
	callq	_hb_audio_resample_set_sample_fmt
	movl	56(%rbx), %edi
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	callq	_hb_audio_resample_set_sample_rate
	movl	56(%rbx), %edi
	callq	_hb_audio_resample_update
	testq	%rax, %rax
	jne	LBB0_41
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	56(%rbx), %edi
	movq	32(%rbx), %rax
	movq	24(%rax), %rsi
	movl	4(%rax), %edx
	callq	_hb_audio_resample
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_40
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, 16(%rbx)
	jle	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	48(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_hb_mixdown_get_discrete_channel_count
	movl	%eax, %esi
	shll	$2, %esi
	movq	-48(%rbp), %r8
	movl	(%r8), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%eax, %r12
	movq	16(%rbx), %rax
	cmpq	%r12, %rax
	jge	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_14 Depth=1
	imull	%eax, %esi
	imulq	$90000, %rax, %rax              ## imm = 0x15F90
	movq	48(%rbx), %rdx
	movq	16(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_14 Depth=1
	cqto
	idivq	%rdi
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, (%rbx)
	movq	(%r12), %rax
	cmpq	%rax, %r13
	je	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_14 Depth=1
	movslq	8(%rbx), %rax
	addq	%rax, %r13
	movq	%r13, (%rbx)
	movq	%r13, 24(%rsi)
	jmp	LBB0_39
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rsi
	jmp	LBB0_34
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
	movq	16(%rbx), %rax
	subq	%r12, %rax
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_31:                                ##   in Loop: Header=BB0_14 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, -120(%rbp)               ## 8-byte Spill
	movq	40(%r8), %rdi
	movslq	%esi, %r12
	leaq	(%rdi,%r12), %rsi
	subl	%r12d, %ecx
	movl	%ecx, %edx
	callq	_memmove
	movq	-48(%rbp), %rax
	subl	%r12d, (%rax)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13, %xmm0
	movsd	-120(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r13
	movapd	-112(%rbp), %xmm0               ## 16-byte Reload
	subsd	%xmm1, %xmm0
	movapd	%xmm0, -112(%rbp)               ## 16-byte Spill
	xorl	%eax, %eax
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, 16(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r12
	jmp	LBB0_33
LBB0_10:
	movl	%eax, %r13d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r13d
	je	LBB0_42
## %bb.11:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_42
## %bb.12:
	incl	60(%rbx)
	jmp	LBB0_42
LBB0_41:
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	movq	32(%rbx), %rdi
	callq	_av_frame_unref
LBB0_42:
	leaq	-88(%rbp), %rdi
	callq	_av_packet_unref
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_DISCARD,4,2        ## @AV_PKT_FLAG_DISCARD
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_AV_FRAME_DATA_DOWNMIX_INFO,4,2 ## @AV_FRAME_DATA_DOWNMIX_INFO
	.comm	_HB_AMIXDOWN_DOLBY,8,3          ## @HB_AMIXDOWN_DOLBY
	.comm	_HB_AMIXDOWN_DOLBYPLII,8,3      ## @HB_AMIXDOWN_DOLBYPLII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decavcodec: hb_audio_resample_update() failed"

	.no_dead_strip	_decodeAudio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decodeAudio
_decodeAudio:                           ; @decodeAudio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #64]
Lloh0:
	adrp	x24, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_NOPTS_VALUE@GOTPAGEOFF]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x20]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	str	x9, [x19]
LBB0_4:
	add	x0, sp, #8
	bl	_av_init_packet
	cbz	x20, LBB0_6
; %bb.5:
	ldp	x9, x8, [x20, #16]
	ldr	x10, [x20]
	str	x10, [sp, #8]
	ldr	x10, [x24]
	str	x10, [sp, #40]
Lloh2:
	adrp	x10, _AV_PKT_FLAG_DISCARD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AV_PKT_FLAG_DISCARD@GOTPAGEOFF]
	ldr	w11, [x20, #8]
Lloh4:
	ldr	w10, [x10]
	mul	w10, w10, w11
	ldr	w11, [sp, #16]
	orr	w10, w11, w10
	str	w10, [sp, #16]
	b	LBB0_7
LBB0_6:
	mov	x8, #0
	mov	x9, #0
LBB0_7:
	stp	x9, x8, [sp, #24]
	add	x1, sp, #8
	mov	x0, x21
	bl	_avcodec_send_packet
Lloh5:
	adrp	x22, _AVERROR_EOF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AVERROR_EOF@GOTPAGEOFF]
	tbz	w0, #31, LBB0_9
; %bb.8:
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_38
LBB0_9:
	ldr	x1, [x19, #32]
	mov	x0, x21
	bl	_avcodec_receive_frame
	tbnz	w0, #31, LBB0_34
; %bb.10:
	add	x22, x19, #40
	mov	x26, #273778395316224
	movk	x26, #16629, lsl #48
Lloh7:
	adrp	x27, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh8:
	ldr	x27, [x27, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh9:
	adrp	x28, _AV_FRAME_DATA_DOWNMIX_INFO@GOTPAGE
Lloh10:
	ldr	x28, [x28, _AV_FRAME_DATA_DOWNMIX_INFO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_hb_buffer_list_append
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x19, #32]
	bl	_av_frame_unref
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x1, [x19, #32]
	mov	x0, x21
	bl	_avcodec_receive_frame
	tbnz	w0, #31, LBB0_33
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	ldr	w8, [x0]
	cbnz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x21]
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	s0, [x0, #4]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fmov	d1, x26
	scvtf	d2, w8
	fmul	d0, d0, d1
	fdiv	d0, d0, d2
	fcvtzs	w8, d0
	str	w8, [x19, #8]
	ldr	x23, [x0, #8]
	scvtf	d8, w8
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [sp, #24]
	bl	_hb_buffer_init
	str	x0, [sp]
	ldr	x0, [x0, #40]
	ldp	x2, x1, [sp, #24]
	bl	_memcpy
	ldr	x1, [sp]
	cbz	x1, LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20, #12]
	str	w8, [x1, #32]
	str	x23, [x1, #8]
	str	d8, [x1, #16]
	ldr	x8, [x24]
	cmp	x23, x8
	b.ne	LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x8, x23
	ldr	x23, [x19]
	str	x23, [x1, #8]
	cmp	x23, x8
	b.eq	LBB0_11
	b	LBB0_29
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x28]
	bl	_av_frame_get_side_data
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x19, #48]
	ldr	x9, [x9, #8]
Lloh11:
	adrp	x10, _HB_AMIXDOWN_DOLBY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HB_AMIXDOWN_DOLBY@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
Lloh14:
	adrp	x10, _HB_AMIXDOWN_DOLBYPLII@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HB_AMIXDOWN_DOLBYPLII@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ccmp	x9, x10, #4, ne
	mov	w9, #16
	csel	x9, xzr, x9, eq
	mov	w10, #24
	mov	w11, #8
	csel	x10, x11, x10, eq
	ldr	d1, [x8, x10]
	ldr	d0, [x8, x9]
	ldr	w0, [x19, #56]
	ldr	w1, [x8, #32]
	bl	_hb_audio_resample_set_mix_levels
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #32]
	ldr	x1, [x8, #16]
	cbnz	x1, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x8, #36]
	bl	_av_get_default_channel_layout
	mov	x1, x0
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x19, #56]
	bl	_hb_audio_resample_set_channel_layout
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #32]
	bl	_hb_audio_resample_set_sample_fmt
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	bl	_hb_audio_resample_set_sample_rate
	ldr	w0, [x19, #56]
	bl	_hb_audio_resample_update
	cbnz	x0, LBB0_37
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #32]
	ldr	x1, [x8, #24]
	ldr	w2, [x8, #4]
	bl	_hb_audio_resample
	str	x0, [sp]
	cbz	x0, LBB0_12
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, #8]
	bl	_hb_mixdown_get_discrete_channel_count
	lsl	w10, w0, #2
	ldr	x9, [sp]
	ldr	w8, [x9]
	sdiv	w11, w8, w10
	sxtw	x25, w11
	ldr	x11, [x19, #16]
	cmp	x11, x25
	b.ge	LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=1
	mul	w25, w10, w11
	mov	w10, #24464
	movk	w10, #1, lsl #16
	mul	x10, x11, x10
	ldr	x11, [x19, #48]
	ldr	x11, [x11, #16]
	sdiv	x10, x10, x11
	scvtf	d9, x10
	ldr	x0, [x9, #40]
	add	x1, x0, w25, sxtw
	sub	w2, w8, w25
	bl	_memmove
	mov	x8, #0
	ldr	x9, [sp]
	ldr	w10, [x9]
	sub	w10, w10, w25
	str	w10, [x9]
	scvtf	d0, x23
	fadd	d0, d0, d9
	fcvtzs	x23, d0
	fsub	d8, d8, d9
	b	LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x23, [x19]
	ldr	x8, [x24]
	cmp	x23, x8
	b.eq	LBB0_11
LBB0_29:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x8, [x19, #8]
	add	x8, x23, x8
	str	x8, [x19]
	str	x8, [x1, #24]
	b	LBB0_11
LBB0_30:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	b	LBB0_17
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, sp
	bl	_hb_buffer_close
	ldr	x8, [x19, #16]
	sub	x8, x8, x25
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x8, [x19, #16]
	ldr	x1, [sp]
	cbnz	x1, LBB0_17
	b	LBB0_12
LBB0_33:
	mov	x23, x0
Lloh17:
	adrp	x22, _AVERROR_EOF@GOTPAGE
Lloh18:
	ldr	x22, [x22, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_35
LBB0_34:
	mov	x23, x0
LBB0_35:
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
	ldr	w8, [x22]
	cmp	w23, w0
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_38
; %bb.36:
	ldr	w8, [x19, #60]
	add	w8, w8, #1
	str	w8, [x19, #60]
	b	LBB0_38
LBB0_37:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	ldr	x0, [x19, #32]
	bl	_av_frame_unref
LBB0_38:
	add	x0, sp, #8
	bl	_av_packet_unref
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_DISCARD,4,2        ; @AV_PKT_FLAG_DISCARD
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_AV_FRAME_DATA_DOWNMIX_INFO,4,2 ; @AV_FRAME_DATA_DOWNMIX_INFO
	.comm	_HB_AMIXDOWN_DOLBY,8,3          ; @HB_AMIXDOWN_DOLBY
	.comm	_HB_AMIXDOWN_DOLBYPLII,8,3      ; @HB_AMIXDOWN_DOLBYPLII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decavcodec: hb_audio_resample_update() failed"

	.no_dead_strip	_decodeAudio
.subsections_via_symbols
