	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function battout_handler
_battout_handler:                       ## @battout_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	%rdi, %rbx
	movq	_cm_suspended@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_batt_present
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_emerg
	movq	_default_event_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CM_EVENT_BATT_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_uevent_notify                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_suspended,8,3               ## @cm_suspended
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Battery Pulled Out!\n"

	.comm	_default_event_names,8,3        ## @default_event_names
	.comm	_CM_EVENT_BATT_OUT,8,3          ## @CM_EVENT_BATT_OUT
L_.str.1:                               ## @.str.1
	.asciz	"Battery Reinserted?"

	.no_dead_strip	_battout_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function battout_handler
_battout_handler:                       ; @battout_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, x0
Lloh0:
	adrp	x8, _cm_suspended@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm_suspended@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_device_set_wakeup_capable
LBB0_2:
	mov	x0, x19
	bl	_is_batt_present
	cbz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_emerg
Lloh7:
	adrp	x8, _default_event_names@GOTPAGE
Lloh8:
	ldr	x8, [x8, _default_event_names@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _CM_EVENT_BATT_OUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CM_EVENT_BATT_OUT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_uevent_notify
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_suspended,8,3               ; @cm_suspended
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Battery Pulled Out!\n"

	.comm	_default_event_names,8,3        ; @default_event_names
	.comm	_CM_EVENT_BATT_OUT,8,3          ; @CM_EVENT_BATT_OUT
l_.str.1:                               ; @.str.1
	.asciz	"Battery Reinserted?"

	.no_dead_strip	_battout_handler
.subsections_via_symbols
