	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5k4ecgx_power_on
___s5k4ecgx_power_on:                   ## @__s5k4ecgx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_S5K4ECGX_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_regulator_bulk_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	$30, %edi
	movl	$50, %esi
	callq	_usleep_range
	movq	_STBY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_s5k4ecgx_gpio_set_value
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$30, %edi
	movl	$50, %esi
	callq	_usleep_range
LBB0_3:
	movq	_RST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_s5k4ecgx_gpio_set_value
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$30, %edi
	movl	$50, %esi
	callq	_usleep_range
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ## @S5K4ECGX_NUM_SUPPLIES
	.comm	_STBY,8,3                       ## @STBY
	.comm	_RST,8,3                        ## @RST
	.no_dead_strip	___s5k4ecgx_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5k4ecgx_power_on
___s5k4ecgx_power_on:                   ; @__s5k4ecgx_power_on
	.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	x20, x0
Lloh0:
	adrp	x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_regulator_bulk_enable
	mov	x19, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #30
	mov	w1, #50
	bl	_usleep_range
Lloh3:
	adrp	x8, _STBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STBY@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x20
	bl	_s5k4ecgx_gpio_set_value
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #30
	mov	w1, #50
	bl	_usleep_range
LBB0_3:
Lloh6:
	adrp	x8, _RST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RST@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x20
	bl	_s5k4ecgx_gpio_set_value
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #30
	mov	w1, #50
	bl	_usleep_range
LBB0_5:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ; @S5K4ECGX_NUM_SUPPLIES
	.comm	_STBY,8,3                       ; @STBY
	.comm	_RST,8,3                        ; @RST
	.no_dead_strip	___s5k4ecgx_power_on
.subsections_via_symbols
