	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiu_ax_callback               ## -- Begin function wiiu_ax_callback
	.p2align	4, 0x90
_wiiu_ax_callback:                      ## @wiiu_ax_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_wiiu_cb_ax@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	12(%rbx), %edi
	callq	_AXIsMultiVoiceRunning
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_OSUninterruptibleSpinLock_Acquire
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	_AX_AUDIO_SAMPLE_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	movl	12(%rbx), %edi
	movq	_AX_VOICE_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AXSetMultiVoiceState
	movq	(%rbx), %rax
LBB0_5:
	movq	_AX_AUDIO_SAMPLE_COUNT@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_OSUninterruptibleSpinLock_Release ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wiiu_cb_ax,8,3                 ## @wiiu_cb_ax
	.comm	_AX_AUDIO_SAMPLE_MIN,8,3        ## @AX_AUDIO_SAMPLE_MIN
	.comm	_AX_VOICE_STATE_STOPPED,4,2     ## @AX_VOICE_STATE_STOPPED
	.comm	_AX_AUDIO_SAMPLE_COUNT,8,3      ## @AX_AUDIO_SAMPLE_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiu_ax_callback               ; -- Begin function wiiu_ax_callback
	.p2align	2
_wiiu_ax_callback:                      ; @wiiu_ax_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _wiiu_cb_ax@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wiiu_cb_ax@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_AXIsMultiVoiceRunning
	cbz	x0, LBB0_6
; %bb.2:
	add	x19, x20, #8
	mov	x0, x19
	bl	_OSUninterruptibleSpinLock_Acquire
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AX_AUDIO_SAMPLE_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AX_AUDIO_SAMPLE_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
Lloh6:
	adrp	x8, _AX_VOICE_STATE_STOPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AX_VOICE_STATE_STOPPED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_AXSetMultiVoiceState
	ldr	x8, [x20]
LBB0_5:
Lloh9:
	adrp	x9, _AX_AUDIO_SAMPLE_COUNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AX_AUDIO_SAMPLE_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_OSUninterruptibleSpinLock_Release
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_wiiu_cb_ax,8,3                 ; @wiiu_cb_ax
	.comm	_AX_AUDIO_SAMPLE_MIN,8,3        ; @AX_AUDIO_SAMPLE_MIN
	.comm	_AX_VOICE_STATE_STOPPED,4,2     ; @AX_VOICE_STATE_STOPPED
	.comm	_AX_AUDIO_SAMPLE_COUNT,8,3      ; @AX_AUDIO_SAMPLE_COUNT
.subsections_via_symbols
