	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_button_handler
_power_button_handler:                  ## @power_button_handler
	.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	%rdx, %rbx
	movq	_pm_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_pm1_status@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PM1_PWRBTN_STS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	jne	LBB0_2
## %bb.1:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	%rbx, %rdi
	callq	_sci_update
LBB0_2:
	movq	_pm_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pm_lock,4,2                    ## @pm_lock
	.comm	_pm1_status,4,2                 ## @pm1_status
	.comm	_PM1_PWRBTN_STS,4,2             ## @PM1_PWRBTN_STS
	.no_dead_strip	_power_button_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_button_handler
_power_button_handler:                  ; @power_button_handler
	.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, x2
Lloh0:
	adrp	x0, _pm_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pm_lock@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x8, _pm1_status@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pm1_status@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh4:
	adrp	x10, _PM1_PWRBTN_STS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PM1_PWRBTN_STS@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
	orr	w9, w10, w9
	str	w9, [x8]
	mov	x0, x19
	bl	_sci_update
LBB0_2:
Lloh7:
	adrp	x0, _pm_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _pm_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pm_lock,4,2                    ; @pm_lock
	.comm	_pm1_status,4,2                 ; @pm1_status
	.comm	_PM1_PWRBTN_STS,4,2             ; @PM1_PWRBTN_STS
	.no_dead_strip	_power_button_handler
.subsections_via_symbols
