	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5c73m3_power_on
___s5c73m3_power_on:                    ## @__s5c73m3_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_S5C73M3_MAX_SUPPLIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	8(%r14), %edi
	movl	16(%r14), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	_s5c73m3_dbg@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	12(%r14), %r15
	movl	8(%r14), %edi
	callq	_clk_get_rate
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
	movq	_STBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_s5c73m3_gpio_deassert
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movq	_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_s5c73m3_gpio_deassert
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %r15d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.9:
	movl	%ebx, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_regulator_disable
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_10
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5C73M3_MAX_SUPPLIES,4,2       ## @S5C73M3_MAX_SUPPLIES
	.comm	_s5c73m3_dbg,4,2                ## @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock frequency: %ld\n"

	.comm	_STBY,4,2                       ## @STBY
	.comm	_RST,4,2                        ## @RST
	.no_dead_strip	___s5c73m3_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5c73m3_power_on
___s5c73m3_power_on:                    ; @__s5c73m3_power_on
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _S5C73M3_MAX_SUPPLIES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S5C73M3_MAX_SUPPLIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_regulator_enable
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _s5c73m3_dbg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s5c73m3_dbg@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	add	x21, x19, #12
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	mov	x4, x0
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	mov	x2, x21
	bl	_v4l2_dbg
Lloh7:
	adrp	x8, _STBY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STBY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5c73m3_gpio_deassert
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
Lloh10:
	adrp	x8, _RST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RST@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5c73m3_gpio_deassert
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w8, w21
	sub	x21, x8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_regulator_disable
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #1
	b.hi	LBB0_10
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_S5C73M3_MAX_SUPPLIES,4,2       ; @S5C73M3_MAX_SUPPLIES
	.comm	_s5c73m3_dbg,4,2                ; @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock frequency: %ld\n"

	.comm	_STBY,4,2                       ; @STBY
	.comm	_RST,4,2                        ; @RST
	.no_dead_strip	___s5c73m3_power_on
.subsections_via_symbols
