	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_pmic_configure
_sec_pmic_configure:                    ## @sec_pmic_configure
	.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), %rax
	movq	_S2MPS13X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	movq	_S2MPS13_REG_WRSTBI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S2MPS13_REG_WRSTBI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S2MPS13X,8,3                   ## @S2MPS13X
	.comm	_S2MPS13_REG_WRSTBI,4,2         ## @S2MPS13_REG_WRSTBI
	.comm	_S2MPS13_REG_WRSTBI_MASK,4,2    ## @S2MPS13_REG_WRSTBI_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot initialize WRSTBI config: %d\n"

	.no_dead_strip	_sec_pmic_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_pmic_configure
_sec_pmic_configure:                    ; @sec_pmic_configure
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S2MPS13X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S2MPS13X@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _S2MPS13_REG_WRSTBI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S2MPS13_REG_WRSTBI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _S2MPS13_REG_WRSTBI_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S2MPS13_REG_WRSTBI_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_S2MPS13X,8,3                   ; @S2MPS13X
	.comm	_S2MPS13_REG_WRSTBI,4,2         ; @S2MPS13_REG_WRSTBI
	.comm	_S2MPS13_REG_WRSTBI_MASK,4,2    ; @S2MPS13_REG_WRSTBI_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot initialize WRSTBI config: %d\n"

	.no_dead_strip	_sec_pmic_configure
.subsections_via_symbols
