	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7740_set_power
_ov7740_set_power:                      ## @ov7740_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_gpiod_direction_output
LBB0_4:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	16(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_usleep_range
	jmp	LBB0_9
LBB0_7:
	callq	_clk_disable_unprepare
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	callq	_gpiod_direction_output
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ov7740_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7740_set_power
_ov7740_set_power:                      ; @ov7740_set_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	x19, x0
	ldr	w0, [x0, #8]
	cbz	w1, LBB0_6
; %bb.1:
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w1, #0
	bl	_gpiod_direction_output
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.5:
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	w0, #3000
	mov	w1, #5000
	bl	_usleep_range
	b	LBB0_8
LBB0_6:
	bl	_clk_disable_unprepare
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.7:
	mov	w1, #0
	bl	_gpiod_direction_output
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	_ov7740_set_power
.subsections_via_symbols
