	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_button_press_event
_handle_button_press_event:             ## @handle_button_press_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_4
## %bb.1:
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work
	xorl	%ecx, %ecx
	cmpl	$132, (%rbx)
	sete	%cl
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax,%rcx,8)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movl	$128, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_slot_info               ## TAILCALL
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*32(%rax)
	xorl	%eax, %eax
	cmpl	$0, -28(%rbp)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %r15
	cmoveq	%rcx, %r15
	sete	%al
	movl	$132, %ecx
	subl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_slot_name
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*24(%rax)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movl	20(%rbx), %edi
	addq	$16, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	movq	%rbx, %rsi
	callq	_queue_delayed_work
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctrl_warn                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI slot #%s - powering off due to button press\n"

L_.str.1:                               ## @.str.1
	.asciz	"PCI slot #%s - powering on due to button press\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"Button cancel on Slot(%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	"PCI slot #%s - action canceled due to button press\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"Not a valid state\n"

	.no_dead_strip	_handle_button_press_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_button_press_event
_handle_button_press_event:             ; @handle_button_press_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #131
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ctrl_info
	add	x0, x19, #16
	bl	_cancel_delayed_work
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	cmp	w8, #132
	mov	w8, #8
	mov	w10, #16
	csel	x8, x10, x8, eq
	ldr	x8, [x9, x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ctrl_info
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_ctrl_info
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_update_slot_info
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #32]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cmp	w8, #0
	mov	w8, #131
	cinc	w8, w8, ne
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	csel	x21, x10, x9, eq
	str	w8, [x19]
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ctrl_info
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	w0, [x19, #20]
	add	x1, x19, #16
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #2
	bl	_queue_delayed_work
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ctrl_warn
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI slot #%s - powering off due to button press\n"

l_.str.1:                               ; @.str.1
	.asciz	"PCI slot #%s - powering on due to button press\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"Button cancel on Slot(%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	"PCI slot #%s - action canceled due to button press\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"Not a valid state\n"

	.no_dead_strip	_handle_button_press_event
.subsections_via_symbols
