	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_pmic_shutdown
_sec_pmic_shutdown:                     ## @sec_pmic_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_i2c_get_clientdata
	movq	16(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	(%rax), %edx
	cmpl	$128, %edx
	jne	LBB0_2
## %bb.4:
	movq	_S2MPS11_REG_CTRL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_S2MPS11_CTRL1_PWRHOLD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%rax), %edi
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S2MPS11_REG_CTRL1,4,2          ## @S2MPS11_REG_CTRL1
	.comm	_S2MPS11_CTRL1_PWRHOLD_MASK,4,2 ## @S2MPS11_CTRL1_PWRHOLD_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported device %lu for manual power off\n"

	.no_dead_strip	_sec_pmic_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_pmic_shutdown
_sec_pmic_shutdown:                     ; @sec_pmic_shutdown
	.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
	bl	_i2c_get_clientdata
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w2, [x0]
	cmp	w2, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _S2MPS11_REG_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S2MPS11_REG_CTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _S2MPS11_CTRL1_PWRHOLD_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S2MPS11_CTRL1_PWRHOLD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w0, [x0, #4]
	mov	w3, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_regmap_update_bits
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x0, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S2MPS11_REG_CTRL1,4,2          ; @S2MPS11_REG_CTRL1
	.comm	_S2MPS11_CTRL1_PWRHOLD_MASK,4,2 ; @S2MPS11_CTRL1_PWRHOLD_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported device %lu for manual power off\n"

	.no_dead_strip	_sec_pmic_shutdown
.subsections_via_symbols
