	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_BB_Menu                    ## -- Begin function PBI_BB_Menu
	.p2align	4, 0x90
_PBI_BB_Menu:                           ## @PBI_BB_Menu
	.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	_PBI_BB_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_buttondown@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%eax, %edi
	callq	_D
	xorl	%eax, %eax
	callq	_CPU_GenerateIRQ
	movq	_BB_BUTTON_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PBI_IRQ@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBI_BB_enabled,4,2             ## @PBI_BB_enabled
	.comm	_buttondown,8,3                 ## @buttondown
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blackbox button down interrupt generated\n"

	.comm	_BB_BUTTON_IRQ_MASK,4,2         ## @BB_BUTTON_IRQ_MASK
	.comm	_PBI_IRQ,4,2                    ## @PBI_IRQ
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_BB_Menu                    ; -- Begin function PBI_BB_Menu
	.p2align	2
_PBI_BB_Menu:                           ; @PBI_BB_Menu
	.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, _PBI_BB_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBI_BB_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _buttondown@GOTPAGE
Lloh4:
	ldr	x19, [x19, _buttondown@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _FALSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_D
	bl	_CPU_GenerateIRQ
Lloh10:
	adrp	x8, _BB_BUTTON_IRQ_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BB_BUTTON_IRQ_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PBI_IRQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PBI_IRQ@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_3:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PBI_BB_enabled,4,2             ; @PBI_BB_enabled
	.comm	_buttondown,8,3                 ; @buttondown
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blackbox button down interrupt generated\n"

	.comm	_BB_BUTTON_IRQ_MASK,4,2         ; @BB_BUTTON_IRQ_MASK
	.comm	_PBI_IRQ,4,2                    ; @PBI_IRQ
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
