	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_configure_gpios
_ov965x_configure_gpios:                ## @ov965x_configure_gpios
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_devm_gpiod_get_optional
	movq	(%rbx), %rcx
	movq	_GPIO_PWDN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_gpiod_get_optional
	movq	(%rbx), %rcx
	movq	_GPIO_RST@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_info
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_GPIO_PWDN,8,3                  ## @GPIO_PWDN
L_.str.1:                               ## @.str.1
	.asciz	"can't get %s GPIO\n"

L_.str.2:                               ## @.str.2
	.asciz	"reset"

	.comm	_GPIO_RST,8,3                   ## @GPIO_RST
	.no_dead_strip	_ov965x_configure_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov965x_configure_gpios
_ov965x_configure_gpios:                ; @ov965x_configure_gpios
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_regmap_get_device
	mov	x20, x0
Lloh0:
	adrp	x23, _GPIOD_OUT_HIGH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GPIOD_OUT_HIGH@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x1, x21
	bl	_devm_gpiod_get_optional
	ldr	x8, [x19]
Lloh4:
	adrp	x22, _GPIO_PWDN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GPIO_PWDN@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x23]
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_devm_gpiod_get_optional
	ldr	x8, [x19]
Lloh8:
	adrp	x22, _GPIO_RST@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GPIO_RST@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_3
LBB0_2:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_info
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_GPIO_PWDN,8,3                  ; @GPIO_PWDN
l_.str.1:                               ; @.str.1
	.asciz	"can't get %s GPIO\n"

l_.str.2:                               ; @.str.2
	.asciz	"reset"

	.comm	_GPIO_RST,8,3                   ; @GPIO_RST
	.no_dead_strip	_ov965x_configure_gpios
.subsections_via_symbols
