	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_power_off
_axp20x_power_off:                      ## @axp20x_power_off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_axp20x_pm_power_off@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_AXP288_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rax), %edi
	movq	_AXP20X_OFF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP20X_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	$500, %edi                      ## imm = 0x1F4
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_axp20x_pm_power_off,8,3        ## @axp20x_pm_power_off
	.comm	_AXP288_ID,8,3                  ## @AXP288_ID
	.comm	_AXP20X_OFF_CTRL,4,2            ## @AXP20X_OFF_CTRL
	.comm	_AXP20X_OFF,4,2                 ## @AXP20X_OFF
	.no_dead_strip	_axp20x_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_power_off
_axp20x_power_off:                      ; @axp20x_power_off
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _axp20x_pm_power_off@GOTPAGE
Lloh1:
	ldr	x8, [x8, _axp20x_pm_power_off@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _AXP288_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AXP288_ID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x8, #8]
Lloh6:
	adrp	x8, _AXP20X_OFF_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXP20X_OFF_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AXP20X_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AXP20X_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	w0, #500
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_axp20x_pm_power_off,8,3        ; @axp20x_pm_power_off
	.comm	_AXP288_ID,8,3                  ; @AXP288_ID
	.comm	_AXP20X_OFF_CTRL,4,2            ; @AXP20X_OFF_CTRL
	.comm	_AXP20X_OFF,4,2                 ; @AXP20X_OFF
	.no_dead_strip	_axp20x_power_off
.subsections_via_symbols
