	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audioMainLoop
_audioMainLoop:                         ## @audioMainLoop
	.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	%rdi, %rbx
	movq	_AUDIO_OUT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %esi
	movl	$2, %edx
	callq	_sceAudioSRCChReserve
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.1:
	movq	_PSP_AUDIO_VOLUME_MAX@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	8(%rbx), %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %esi
	callq	_sceAudioSRCOutputBlocking
	cmpq	$0, 32(%rbx)
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	movl	20(%rbx), %edi
	callq	_slock_lock
	movl	24(%rbx), %r15d
	subl	%r14d, %r15d
	movq	_AUDIO_BUFFER_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r15d
	movq	_AUDIO_OUT_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx), %r12d
	cmpl	%r12d, %r15d
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movl	%ecx, %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %edi
	callq	_slock_unlock
	movl	12(%rbx), %edi
	callq	_slock_lock
	movl	16(%rbx), %edi
	callq	_scond_signal
	movl	12(%rbx), %edi
	callq	_slock_unlock
	movl	(%r13), %edi
	cmpl	%r12d, %r15d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r14d
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sceAudioSRCChRelease           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_OUT_COUNT,4,2            ## @AUDIO_OUT_COUNT
	.comm	_AUDIO_BUFFER_SIZE_MASK,4,2     ## @AUDIO_BUFFER_SIZE_MASK
	.comm	_PSP_AUDIO_VOLUME_MAX,4,2       ## @PSP_AUDIO_VOLUME_MAX
	.comm	_SCE_AUDIO_OUT_MODE_STEREO,4,2  ## @SCE_AUDIO_OUT_MODE_STEREO
	.comm	_SCE_AUDIO_OUT_PORT_TYPE_MAIN,4,2 ## @SCE_AUDIO_OUT_PORT_TYPE_MAIN
	.no_dead_strip	_audioMainLoop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audioMainLoop
_audioMainLoop:                         ; @audioMainLoop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _AUDIO_OUT_COUNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AUDIO_OUT_COUNT@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19, #40]
	mov	w2, #2
	bl	_sceAudioSRCChReserve
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x21, _AUDIO_BUFFER_SIZE_MASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AUDIO_BUFFER_SIZE_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x22, _PSP_AUDIO_VOLUME_MAX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PSP_AUDIO_VOLUME_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w1, w8, w23
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_sceAudioSRCOutputBlocking
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x19]
	ldr	w0, [x19, #20]
	bl	_slock_lock
	ldr	w9, [x19, #24]
	ldr	w8, [x21]
	sub	w9, w9, w23
	and	w24, w9, w8
	ldr	w9, [x20]
	lsl	w25, w9, #1
	cmp	w24, w25
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, w23
	and	w23, w9, w8
	str	w23, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #20]
	bl	_slock_unlock
	ldr	w0, [x19, #12]
	bl	_slock_lock
	ldr	w0, [x19, #16]
	bl	_scond_signal
	ldr	w0, [x19, #12]
	bl	_slock_unlock
	ldr	w0, [x22]
	cmp	w24, w25
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #4]
	b	LBB0_3
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sceAudioSRCChRelease
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_OUT_COUNT,4,2            ; @AUDIO_OUT_COUNT
	.comm	_AUDIO_BUFFER_SIZE_MASK,4,2     ; @AUDIO_BUFFER_SIZE_MASK
	.comm	_PSP_AUDIO_VOLUME_MAX,4,2       ; @PSP_AUDIO_VOLUME_MAX
	.comm	_SCE_AUDIO_OUT_MODE_STEREO,4,2  ; @SCE_AUDIO_OUT_MODE_STEREO
	.comm	_SCE_AUDIO_OUT_PORT_TYPE_MAIN,4,2 ; @SCE_AUDIO_OUT_PORT_TYPE_MAIN
	.no_dead_strip	_audioMainLoop
.subsections_via_symbols
