	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5k6a3_power_on
___s5k6a3_power_on:                     ## @__s5k6a3_power_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_S5K6A3_SUPP_VDDA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	20(%rdi), %edi
	movl	24(%r14), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	(%r14), %edi
	callq	_pm_runtime_get
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movslq	%r12d, %rbx
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movl	20(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	incq	%rbx
	movq	_S5K6A3_NUM_SUPPLIES@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_enable
	incl	%r12d
	incq	%rbx
	testl	%eax, %eax
	jns	LBB0_5
LBB0_7:
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.8:
	movl	%r12d, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	8(%r14), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_regulator_disable
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_9
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r15d
LBB0_13:
	movl	(%r14), %edi
	callq	_pm_runtime_put
	jmp	LBB0_15
LBB0_14:
	movl	16(%r14), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movl	$600, %edi                      ## imm = 0x258
	movl	$800, %esi                      ## imm = 0x320
	callq	_usleep_range
	movl	16(%r14), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_gpio_set_value
	movl	$600, %edi                      ## imm = 0x258
	movl	$800, %esi                      ## imm = 0x320
	callq	_usleep_range
	movl	16(%r14), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movl	$20, %edi
	callq	_msleep
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K6A3_SUPP_VDDA,4,2           ## @S5K6A3_SUPP_VDDA
	.comm	_S5K6A3_NUM_SUPPLIES,4,2        ## @S5K6A3_NUM_SUPPLIES
	.no_dead_strip	___s5k6a3_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5k6a3_power_on
___s5k6a3_power_on:                     ; @__s5k6a3_power_on
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _S5K6A3_SUPP_VDDA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K6A3_SUPP_VDDA@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #24]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w0, [x19]
	bl	_pm_runtime_get
	tbnz	w0, #31, LBB0_10
; %bb.2:
	sxtw	x22, w21
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w0, [x19, #20]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_7
; %bb.4:
	add	x22, x22, #1
Lloh3:
	adrp	x23, _S5K6A3_NUM_SUPPLIES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _S5K6A3_NUM_SUPPLIES@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.ge	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_regulator_enable
	add	w21, w21, #1
	add	x22, x22, #1
	tbz	w0, #31, LBB0_5
LBB0_7:
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.8:
	mov	w8, w21
	add	x21, x8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x19, #8]
	ldr	w0, [x9, w8, uxtw #2]
	bl	_regulator_disable
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_9
	b	LBB0_12
LBB0_10:
	mov	x20, x0
	b	LBB0_14
LBB0_11:
	mov	x20, x0
LBB0_12:
	ldr	w0, [x19]
	bl	_pm_runtime_put
	b	LBB0_14
LBB0_13:
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_gpio_set_value
	mov	w0, #600
	mov	w1, #800
	bl	_usleep_range
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_gpio_set_value
	mov	w0, #600
	mov	w1, #800
	bl	_usleep_range
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_gpio_set_value
	mov	w0, #20
	bl	_msleep
	mov	w20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K6A3_SUPP_VDDA,4,2           ; @S5K6A3_SUPP_VDDA
	.comm	_S5K6A3_NUM_SUPPLIES,4,2        ; @S5K6A3_NUM_SUPPLIES
	.no_dead_strip	___s5k6a3_power_on
.subsections_via_symbols
