	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ov965x_set_power
___ov965x_set_power:                    ## @__ov965x_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
	movq	_GPIO_PWDN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	16(%rbx), %rax
	movq	_GPIO_RST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$25, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_3:
	movq	16(%rbx), %rax
	movq	_GPIO_RST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movq	16(%rbx), %rax
	movq	_GPIO_PWDN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_4:
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_PWDN,8,3                  ## @GPIO_PWDN
	.comm	_GPIO_RST,8,3                   ## @GPIO_RST
	.no_dead_strip	___ov965x_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ov965x_set_power
___ov965x_set_power:                    ; @__ov965x_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
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _GPIO_PWDN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPIO_PWDN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _GPIO_RST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO_RST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #25
	bl	_msleep
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _GPIO_RST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GPIO_RST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _GPIO_PWDN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GPIO_PWDN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_4:
	mov	w0, #0
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_PWDN,8,3                  ; @GPIO_PWDN
	.comm	_GPIO_RST,8,3                   ; @GPIO_RST
	.no_dead_strip	___ov965x_set_power
.subsections_via_symbols
