	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxsd9_power_up
_kxsd9_power_up:                        ## @kxsd9_power_up
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_ARRAY_SIZE
	movl	12(%r14), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %edi
	movq	_KXSD9_REG_CTRL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KXSD9_CTRL_B_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	4(%r14), %edi
	movq	_KXSD9_REG_CTRL_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KXSD9_CTRL_C_LP_1000HZ@GOTPCREL(%rip), %rax
	movq	_KXSD9_CTRL_C_MOT_LEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_KXSD9_CTRL_C_MOT_LAT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r14), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$20, %edi
	callq	_msleep
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot enable regulators\n"

	.comm	_KXSD9_REG_CTRL_B,4,2           ## @KXSD9_REG_CTRL_B
	.comm	_KXSD9_CTRL_B_ENABLE,4,2        ## @KXSD9_CTRL_B_ENABLE
	.comm	_KXSD9_REG_CTRL_C,4,2           ## @KXSD9_REG_CTRL_C
	.comm	_KXSD9_CTRL_C_LP_1000HZ,4,2     ## @KXSD9_CTRL_C_LP_1000HZ
	.comm	_KXSD9_CTRL_C_MOT_LEV,4,2       ## @KXSD9_CTRL_C_MOT_LEV
	.comm	_KXSD9_CTRL_C_MOT_LAT,4,2       ## @KXSD9_CTRL_C_MOT_LAT
	.no_dead_strip	_kxsd9_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxsd9_power_up
_kxsd9_power_up:                        ; @kxsd9_power_up
	.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
	ldr	w0, [x0, #12]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #12]
	bl	_regulator_bulk_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _KXSD9_REG_CTRL_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KXSD9_REG_CTRL_B@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _KXSD9_CTRL_B_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KXSD9_CTRL_B_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _KXSD9_REG_CTRL_C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KXSD9_REG_CTRL_C@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _KXSD9_CTRL_C_LP_1000HZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KXSD9_CTRL_C_LP_1000HZ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _KXSD9_CTRL_C_MOT_LEV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KXSD9_CTRL_C_MOT_LEV@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _KXSD9_CTRL_C_MOT_LAT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _KXSD9_CTRL_C_MOT_LAT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldp	w9, w0, [x19]
	orr	w2, w8, w9
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w0, #20
	bl	_msleep
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot enable regulators\n"

	.comm	_KXSD9_REG_CTRL_B,4,2           ; @KXSD9_REG_CTRL_B
	.comm	_KXSD9_CTRL_B_ENABLE,4,2        ; @KXSD9_CTRL_B_ENABLE
	.comm	_KXSD9_REG_CTRL_C,4,2           ; @KXSD9_REG_CTRL_C
	.comm	_KXSD9_CTRL_C_LP_1000HZ,4,2     ; @KXSD9_CTRL_C_LP_1000HZ
	.comm	_KXSD9_CTRL_C_MOT_LEV,4,2       ; @KXSD9_CTRL_C_MOT_LEV
	.comm	_KXSD9_CTRL_C_MOT_LAT,4,2       ; @KXSD9_CTRL_C_MOT_LAT
	.no_dead_strip	_kxsd9_power_up
.subsections_via_symbols
