	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9640_s_power
_ov9640_s_power:                        ## @ov9640_s_power
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_to_ov9640_sensor
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	4(%r15), %edi
	callq	_v4l2_clk_enable
	movl	%eax, %r14d
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	addq	$8, %r15
	jmp	LBB0_3
LBB0_2:
	movl	8(%r15), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	4(%r15), %edi
	callq	_v4l2_clk_disable
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	xorl	%r14d, %r14d
LBB0_3:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ov9640_s_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9640_s_power
_ov9640_s_power:                        ; @ov9640_s_power
	.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, x1
	bl	_to_ov9640_sensor
	mov	x19, x0
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19, #4]
	bl	_v4l2_clk_enable
	mov	x20, x0
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x19, x19, #8
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19, #4]
	bl	_v4l2_clk_disable
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
LBB0_3:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ov9640_s_power
.subsections_via_symbols
