	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5c73m3_power_off
___s5c73m3_power_off:                   ## @__s5c73m3_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	%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	_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_s5c73m3_gpio_assert
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$10, %edi
	movl	$50, %esi
	callq	_usleep_range
LBB0_2:
	movq	_STBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_s5c73m3_gpio_assert
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
LBB0_4:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	_S5C73M3_MAX_SUPPLIES@GOTPCREL(%rip), %rax
	movq	%rax, %r15
	movslq	(%rax), %r12
	movl	%r12d, %ebx
	incq	%r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	-4(%rax,%rbx,8), %edi
	decq	%rbx
	callq	_regulator_disable
	decq	%r12
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	%eax, %r13d
	incl	%ebx
	cmpl	%ebx, (%r15)
	jle	LBB0_13
## %bb.9:
	movq	%r15, %rbx
	leaq	16(%r14), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	4(%rax,%r12,8), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r14), %rcx
	movl	(%rcx,%r12,8), %edx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_v4l2_err
	jmp	LBB0_12
LBB0_6:
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_13:
	movl	(%r14), %edi
	callq	_clk_prepare_enable
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RST,4,2                        ## @RST
	.comm	_STBY,4,2                       ## @STBY
	.comm	_S5C73M3_MAX_SUPPLIES,4,2       ## @S5C73M3_MAX_SUPPLIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to re-enable %s: %d\n"

	.no_dead_strip	___s5c73m3_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5c73m3_power_off
___s5c73m3_power_off:                   ; @__s5c73m3_power_off
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_s5c73m3_gpio_assert
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #10
	mov	w1, #50
	bl	_usleep_range
LBB0_2:
Lloh3:
	adrp	x8, _STBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STBY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5c73m3_gpio_assert
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
LBB0_4:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	stp	xzr, xzr, [x19, #24]
Lloh6:
	adrp	x23, _S5C73M3_MAX_SUPPLIES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _S5C73M3_MAX_SUPPLIES@GOTPAGEOFF]
	ldrsw	x21, [x23]
	and	x8, x21, #0xffffffff
	lsl	x24, x21, #3
	add	x25, x21, #1
	lsl	x8, x8, #3
	sub	x22, x8, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.lt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22]
	bl	_regulator_disable
	sub	x24, x24, #8
	sub	x25, x25, #1
	sub	x22, x22, #8
	cbz	w0, LBB0_5
; %bb.7:
	mov	x20, x0
	add	w8, w21, #1
	ldr	w9, [x23]
	cmp	w9, w8
	b.le	LBB0_13
; %bb.8:
	add	x21, x19, #16
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	w0, [x8, #12]
	bl	_regulator_enable
	tbz	w0, #31, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x3, x0
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	w2, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_v4l2_err
	b	LBB0_9
LBB0_12:
	mov	w20, #0
	b	LBB0_14
LBB0_13:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RST,4,2                        ; @RST
	.comm	_STBY,4,2                       ; @STBY
	.comm	_S5C73M3_MAX_SUPPLIES,4,2       ; @S5C73M3_MAX_SUPPLIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to re-enable %s: %d\n"

	.no_dead_strip	___s5c73m3_power_off
.subsections_via_symbols
