	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_XLD_votrax_busy_callback   ## -- Begin function PBI_XLD_votrax_busy_callback
	.p2align	4, 0x90
_PBI_XLD_votrax_busy_callback:          ## @PBI_XLD_votrax_busy_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movq	_PBI_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VOICE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.5:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_POKEY_OFFSET_IRQEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_POKEY_IRQEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_POKEY_PutByte                  ## TAILCALL
LBB0_1:
	movq	_votrax_latch@GOTPCREL(%rip), %rax
	testb	$-128, (%rax)
	jne	LBB0_2
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%eax, %edi
	callq	_D
	xorl	%eax, %eax
	callq	_CPU_GenerateIRQ
	movq	_VOICE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PBI_IRQ@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_votrax_latch,4,2               ## @votrax_latch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"votrax IRQ generated\n"

	.comm	_VOICE_MASK,4,2                 ## @VOICE_MASK
	.comm	_PBI_IRQ,4,2                    ## @PBI_IRQ
	.comm	_POKEY_OFFSET_IRQEN,4,2         ## @POKEY_OFFSET_IRQEN
	.comm	_POKEY_IRQEN,4,2                ## @POKEY_IRQEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_XLD_votrax_busy_callback   ; -- Begin function PBI_XLD_votrax_busy_callback
	.p2align	2
_PBI_XLD_votrax_busy_callback:          ; @PBI_XLD_votrax_busy_callback
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PBI_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBI_IRQ@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _VOICE_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VOICE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	bic	w9, w9, w10
	str	w9, [x8]
Lloh5:
	adrp	x8, _POKEY_OFFSET_IRQEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POKEY_OFFSET_IRQEN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _POKEY_IRQEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POKEY_IRQEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_POKEY_PutByte
LBB0_3:
Lloh11:
	adrp	x8, _votrax_latch@GOTPAGE
Lloh12:
	ldr	x8, [x8, _votrax_latch@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbnz	w8, #7, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_D
	bl	_CPU_GenerateIRQ
Lloh15:
	adrp	x8, _VOICE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VOICE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PBI_IRQ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PBI_IRQ@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_votrax_latch,4,2               ; @votrax_latch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"votrax IRQ generated\n"

	.comm	_VOICE_MASK,4,2                 ; @VOICE_MASK
	.comm	_PBI_IRQ,4,2                    ; @PBI_IRQ
	.comm	_POKEY_OFFSET_IRQEN,4,2         ; @POKEY_OFFSET_IRQEN
	.comm	_POKEY_IRQEN,4,2                ; @POKEY_IRQEN
.subsections_via_symbols
