	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shpchp_handle_attention_button ## -- Begin function shpchp_handle_attention_button
	.p2align	4, 0x90
_shpchp_handle_attention_button:        ## @shpchp_handle_attention_button
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ctrl_dbg
	addq	(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_shpchp_find_slot
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	_INT_BUTTON_PRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_queue_interrupt_event
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attention button interrupt received\n"

L_.str.1:                               ## @.str.1
	.asciz	"Button pressed on Slot(%s)\n"

	.comm	_INT_BUTTON_PRESS,4,2           ## @INT_BUTTON_PRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shpchp_handle_attention_button ; -- Begin function shpchp_handle_attention_button
	.p2align	2
_shpchp_handle_attention_button:        ; @shpchp_handle_attention_button
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	ldr	x8, [x19]
	add	x1, x8, x20
	mov	x0, x19
	bl	_shpchp_find_slot
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	mov	x1, x0
	blr	x8
	mov	x0, x20
	bl	_slot_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
Lloh4:
	adrp	x8, _INT_BUTTON_PRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_BUTTON_PRESS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_queue_interrupt_event
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attention button interrupt received\n"

l_.str.1:                               ; @.str.1
	.asciz	"Button pressed on Slot(%s)\n"

	.comm	_INT_BUTTON_PRESS,4,2           ; @INT_BUTTON_PRESS
.subsections_via_symbols
