	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v032_power_on
_mt9v032_power_on:                      ## @mt9v032_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, %r15
	movq	8(%rdi), %rdi
	movq	24(%r15), %r14
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	(%r15), %edi
	movl	16(%r15), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	$1, %edi
	callq	_udelay
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$1, %edi
	callq	_udelay
LBB0_5:
	movq	_MT9V032_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	_MT9V032_CHIP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT9V032_CHIP_CONTROL_MASTER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	jns	LBB0_9
LBB0_8:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9V032_RESET,4,2              ## @MT9V032_RESET
	.comm	_MT9V032_CHIP_CONTROL,4,2       ## @MT9V032_CHIP_CONTROL
	.comm	_MT9V032_CHIP_CONTROL_MASTER_MODE,4,2 ## @MT9V032_CHIP_CONTROL_MASTER_MODE
	.no_dead_strip	_mt9v032_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v032_power_on
_mt9v032_power_on:                      ; @mt9v032_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
	ldr	x20, [x0, #24]
	ldr	x0, [x0, #8]
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	ldr	w0, [x19]
	ldr	w1, [x19, #16]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.2:
	mov	w0, #1
	bl	_udelay
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #1
	bl	_udelay
LBB0_4:
Lloh0:
	adrp	x22, _MT9V032_RESET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT9V032_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_regmap_write
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_regmap_write
	tbnz	w0, #31, LBB0_9
; %bb.6:
Lloh2:
	adrp	x8, _MT9V032_CHIP_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT9V032_CHIP_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MT9V032_CHIP_CONTROL_MASTER_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT9V032_CHIP_CONTROL_MASTER_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	w21, #0
	b	LBB0_10
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
LBB0_10:
	mov	x0, x21
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9V032_RESET,4,2              ; @MT9V032_RESET
	.comm	_MT9V032_CHIP_CONTROL,4,2       ; @MT9V032_CHIP_CONTROL
	.comm	_MT9V032_CHIP_CONTROL_MASTER_MODE,4,2 ; @MT9V032_CHIP_CONTROL_MASTER_MODE
	.no_dead_strip	_mt9v032_power_on
.subsections_via_symbols
