	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_add_callback
_ogg_add_callback:                      ## @ogg_add_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ogg_thread_running@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_private_ogg@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testb	$-128, %al
	jne	LBB0_8
## %bb.2:
	movl	4(%rbx), %edx
	movq	_READ_SAMPLES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jge	LBB0_3
## %bb.5:
	testb	$64, %al
	je	LBB0_8
## %bb.6:
	andl	$-65, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ASND_StopVoice                 ## TAILCALL
LBB0_3:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rsi
	addl	%edx, %edx
	xorl	%edi, %edi
	callq	_ASND_AddVoice
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorb	$1, 8(%rbx)
	movq	$0, (%rbx)
LBB0_7:
	movq	_oggplayer_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LWP_ThreadSignal               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ogg_thread_running,4,2         ## @ogg_thread_running
	.comm	_private_ogg,24,3               ## @private_ogg
	.comm	_READ_SAMPLES,4,2               ## @READ_SAMPLES
	.comm	_oggplayer_queue,4,2            ## @oggplayer_queue
	.no_dead_strip	_ogg_add_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_add_callback
_ogg_add_callback:                      ; @ogg_add_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, _ogg_thread_running@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ogg_thread_running@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x19, _private_ogg@GOTPAGE
Lloh4:
	ldr	x19, [x19, _private_ogg@GOTPAGEOFF]
	ldr	w8, [x19]
	tbnz	w8, #7, LBB0_7
; %bb.2:
	ldr	w9, [x19, #4]
Lloh5:
	adrp	x10, _READ_SAMPLES@GOTPAGE
Lloh6:
	ldr	x10, [x10, _READ_SAMPLES@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_6
; %bb.3:
	tbz	w8, #6, LBB0_7
; %bb.4:
	and	w8, w8, #0xffffffbf
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ASND_StopVoice
LBB0_6:
	ldp	x10, x8, [x19, #8]
	ldr	x1, [x8, x10, lsl #3]
	lsl	w2, w9, #1
	mov	w0, #0
	bl	_ASND_AddVoice
	cbz	x0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19, #8]
	eor	x8, x8, #0x1
	stp	xzr, x8, [x19]
LBB0_9:
Lloh8:
	adrp	x8, _oggplayer_queue@GOTPAGE
Lloh9:
	ldr	x8, [x8, _oggplayer_queue@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWP_ThreadSignal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ogg_thread_running,4,2         ; @ogg_thread_running
	.comm	_private_ogg,24,3               ; @private_ogg
	.comm	_READ_SAMPLES,4,2               ; @READ_SAMPLES
	.comm	_oggplayer_queue,4,2            ; @oggplayer_queue
	.no_dead_strip	_ogg_add_callback
.subsections_via_symbols
