	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5k4ecgx_power_off
___s5k4ecgx_power_off:                  ## @__s5k4ecgx_power_off
	.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, %rbx
	movq	_RST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	16(%rdi), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rsi,4)
	sete	%dl
	callq	_s5k4ecgx_gpio_set_value
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$30, %edi
	movl	$50, %esi
	callq	_usleep_range
LBB0_2:
	movq	_STBY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	16(%rbx), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rsi,4)
	sete	%dl
	movq	%rbx, %rdi
	callq	_s5k4ecgx_gpio_set_value
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$30, %edi
	movl	$50, %esi
	callq	_usleep_range
LBB0_4:
	movq	$0, 8(%rbx)
	movq	_S5K4ECGX_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_regulator_bulk_disable         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RST,8,3                        ## @RST
	.comm	_STBY,8,3                       ## @STBY
	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ## @S5K4ECGX_NUM_SUPPLIES
	.no_dead_strip	___s5k4ecgx_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5k4ecgx_power_off
___s5k4ecgx_power_off:                  ; @__s5k4ecgx_power_off
	.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
Lloh0:
	adrp	x8, _RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RST@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	ldr	x8, [x0, #16]
	ldr	w8, [x8, x1, lsl #2]
	cmp	w8, #0
	cset	w2, eq
	bl	_s5k4ecgx_gpio_set_value
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #30
	mov	w1, #50
	bl	_usleep_range
LBB0_2:
Lloh3:
	adrp	x8, _STBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STBY@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x1, lsl #2]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	bl	_s5k4ecgx_gpio_set_value
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #30
	mov	w1, #50
	bl	_usleep_range
LBB0_4:
	str	xzr, [x19, #8]
Lloh6:
	adrp	x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regulator_bulk_disable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RST,8,3                        ; @RST
	.comm	_STBY,8,3                       ; @STBY
	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ; @S5K4ECGX_NUM_SUPPLIES
	.no_dead_strip	___s5k4ecgx_power_off
.subsections_via_symbols
