	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp2xx_shutdown
_axp2xx_shutdown:                       ## @axp2xx_shutdown
	.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	_RB_POWEROFF@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_printf
LBB0_3:
	movq	_AXP2XX_SHUTBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP2XX_SHUTBAT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_axp2xx_write                   ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_POWEROFF,4,2                ## @RB_POWEROFF
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shutdown AXP2xx\n"

	.comm	_AXP2XX_SHUTBAT,4,2             ## @AXP2XX_SHUTBAT
	.comm	_AXP2XX_SHUTBAT_SHUTDOWN,4,2    ## @AXP2XX_SHUTBAT_SHUTDOWN
	.no_dead_strip	_axp2xx_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp2xx_shutdown
_axp2xx_shutdown:                       ; @axp2xx_shutdown
	.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, _RB_POWEROFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_POWEROFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _bootverbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_3:
Lloh8:
	adrp	x8, _AXP2XX_SHUTBAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AXP2XX_SHUTBAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AXP2XX_SHUTBAT_SHUTDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXP2XX_SHUTBAT_SHUTDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_axp2xx_write
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_POWEROFF,4,2                ; @RB_POWEROFF
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shutdown AXP2xx\n"

	.comm	_AXP2XX_SHUTBAT,4,2             ; @AXP2XX_SHUTBAT
	.comm	_AXP2XX_SHUTBAT_SHUTDOWN,4,2    ; @AXP2XX_SHUTBAT_SHUTDOWN
	.no_dead_strip	_axp2xx_shutdown
.subsections_via_symbols
