	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avaudio_do_processing
_avaudio_do_processing:                 ## @avaudio_do_processing
	.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	16(%rdi), %rax
	movq	(%rax), %r14
	cmpq	$0, 56(%r14)
	je	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movq	(%rax), %r15
	leaq	16(%r14), %r13
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_avcodec_send_frame
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movl	$1, %eax
	cmpq	$0, (%r13)
	jne	LBB0_2
LBB0_6:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %r12
	movslq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.8:
	cmpq	$0, 32(%r12)
	jne	LBB0_16
## %bb.9:
	movq	_FF_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	(%rdx,%rdi), %rax
	cmpq	8(%r12), %rax
	jle	LBB0_15
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_WARN
	jmp	LBB0_16
LBB0_13:
	movq	_MMAL_BUFFER_HEADER_FLAG_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_16
## %bb.14:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_15:
	addq	40(%r12), %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_16:
	leaq	-64(%rbp), %rdi
	callq	_av_init_packet
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	32(%r12), %rcx
	addq	40(%r12), %rcx
	jmp	LBB0_19
LBB0_18:
	xorl	%ecx, %ecx
LBB0_19:
	movq	%rcx, -56(%rbp)
	movl	%eax, -64(%rbp)
	movq	48(%r14), %rax
	movq	%rax, 16(%r14)
	movq	40(%r14), %rsi
	movq	%rsi, 24(%r14)
	movl	32(%r14), %edi
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdx
	callq	_avcodec_decode_audio3
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_22
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	movl	(%r12), %ecx
	movl	%ecx, %eax
LBB0_22:
	movq	16(%r12), %rdx
	movq	%rdx, (%r14)
	movq	_MMAL_TIME_UNKNOWN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_24
## %bb.23:
	movq	24(%r12), %rdx
	movq	%rdx, (%r14)
LBB0_24:
	cltq
	addq	%rax, 32(%r12)
	subl	%eax, %ecx
	movl	%ecx, (%r12)
	jne	LBB0_27
## %bb.25:
	movq	_MMAL_BUFFER_HEADER_FLAG_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_29
## %bb.26:
	cmpq	$0, (%r13)
	je	LBB0_28
LBB0_27:
	movl	8(%r14), %edi
	movq	%r12, %rsi
	callq	_mmal_queue_put_back
	jmp	LBB0_30
LBB0_28:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_avcodec_send_eos
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
LBB0_29:
	movq	$0, 32(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_mmal_port_buffer_header_callback
LBB0_30:
	movl	$1, %eax
	jmp	LBB0_2
LBB0_31:
	movl	8(%r14), %edi
	movq	%r12, %rsi
	callq	_mmal_queue_put_back
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_BUFFER_HEADER_FLAG_EOS,4,2 ## @MMAL_BUFFER_HEADER_FLAG_EOS
	.comm	_FF_INPUT_BUFFER_PADDING_SIZE,8,3 ## @FF_INPUT_BUFFER_PADDING_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not pad buffer"

L_.str.1:                               ## @.str.1
	.asciz	"decoding failed (%i), discarding buffer"

	.comm	_MMAL_TIME_UNKNOWN,8,3          ## @MMAL_TIME_UNKNOWN
	.no_dead_strip	_avaudio_do_processing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avaudio_do_processing
_avaudio_do_processing:                 ; @avaudio_do_processing
	.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
	ldr	x8, [x0, #16]
	ldr	x24, [x8]
	ldr	x8, [x24, #56]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x20, x0
	ldp	x9, x8, [x0]
	ldr	x19, [x8]
	ldr	x22, [x9]
	mov	x23, x24
	ldr	x8, [x23, #16]!
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_avcodec_send_frame
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.5:
	ldr	x8, [x23]
	cbnz	x8, LBB0_28
LBB0_6:
	ldr	w0, [x24, #8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_2
; %bb.7:
	mov	x21, x0
	ldrsw	x8, [x0]
	cbz	w8, LBB0_11
; %bb.8:
	ldr	x9, [x21, #32]
	cbnz	x9, LBB0_14
; %bb.9:
Lloh3:
	adrp	x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x9]
	ldr	x9, [x21, #8]
	add	x10, x2, x8
	cmp	x10, x9
	b.le	LBB0_13
; %bb.10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_WARN
	b	LBB0_14
LBB0_11:
	ldr	w8, [x21, #4]
Lloh8:
	adrp	x9, _MMAL_BUFFER_HEADER_FLAG_EOS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMAL_BUFFER_HEADER_FLAG_EOS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.12:
	mov	w8, #0
	mov	w1, #0
	b	LBB0_22
LBB0_13:
	ldr	x9, [x21, #40]
	add	x0, x9, x8
	mov	w1, #0
	bl	_memset
LBB0_14:
	mov	x0, sp
	bl	_av_init_packet
	ldr	w8, [x21]
	cbz	w8, LBB0_16
; %bb.15:
	ldp	x10, x9, [x21, #32]
	add	x9, x10, x9
	b	LBB0_17
LBB0_16:
	mov	x9, #0
LBB0_17:
	str	x9, [sp, #8]
	str	w8, [sp]
	ldur	q0, [x24, #40]
	ext.16b	v1, v0, v0, #8
	str	q1, [x24, #16]
	ldr	w0, [x24, #32]
	fmov	x1, d0
	mov	x3, sp
	mov	x2, x23
	bl	_avcodec_decode_audio3
	mov	x1, x0
	tbnz	w0, #31, LBB0_19
; %bb.18:
	ldr	w8, [x21]
	cmp	w1, w8
	b.le	LBB0_20
LBB0_19:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	ldr	w8, [x21]
	mov	x1, x8
LBB0_20:
	ldr	x9, [x21, #16]
	str	x9, [x24]
Lloh13:
	adrp	x10, _MMAL_TIME_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MMAL_TIME_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.21:
	ldr	x9, [x21, #24]
	str	x9, [x24]
LBB0_22:
	ldr	x9, [x21, #32]
	add	x9, x9, w1, sxtw
	str	x9, [x21, #32]
	subs	w8, w8, w1
	str	w8, [x21]
	b.ne	LBB0_25
; %bb.23:
	ldr	w8, [x21, #4]
Lloh16:
	adrp	x9, _MMAL_BUFFER_HEADER_FLAG_EOS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MMAL_BUFFER_HEADER_FLAG_EOS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.24:
	ldr	x8, [x23]
	cbz	x8, LBB0_26
LBB0_25:
	ldr	w0, [x24, #8]
	mov	x1, x21
	bl	_mmal_queue_put_back
	b	LBB0_28
LBB0_26:
	mov	x0, x20
	mov	x1, x22
	bl	_avcodec_send_eos
Lloh19:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_29
LBB0_27:
	str	xzr, [x21, #32]
	mov	x0, x19
	mov	x1, x21
	bl	_mmal_port_buffer_header_callback
LBB0_28:
	mov	w0, #1
	b	LBB0_2
LBB0_29:
	ldr	w0, [x24, #8]
	mov	x1, x21
	bl	_mmal_queue_put_back
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_BUFFER_HEADER_FLAG_EOS,4,2 ; @MMAL_BUFFER_HEADER_FLAG_EOS
	.comm	_FF_INPUT_BUFFER_PADDING_SIZE,8,3 ; @FF_INPUT_BUFFER_PADDING_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not pad buffer"

l_.str.1:                               ; @.str.1
	.asciz	"decoding failed (%i), discarding buffer"

	.comm	_MMAL_TIME_UNKNOWN,8,3          ; @MMAL_TIME_UNKNOWN
	.no_dead_strip	_avaudio_do_processing
.subsections_via_symbols
