	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_configure_gpios_pdata
_ov965x_configure_gpios_pdata:          ## @ov965x_configure_gpios_pdata
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NUM_GPIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	12(%rbx), %edi
	callq	_regmap_get_device
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	_GPIO_PWDN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movl	4(%r15), %eax
	movq	_GPIO_RST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	leaq	8(%rbx), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,4), %r13d
	movl	%r13d, %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	leaq	L_.str(%rip), %rcx
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%r15, %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%r13d, %r8d
	callq	_v4l2_dbg
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_gpio_set_value_cansleep
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_gpio_export
	movl	%r13d, %edi
	callq	_gpio_to_desc
	movq	(%rbx), %rdi
	movl	%eax, (%rdi,%r14,4)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_GPIOS,4,2                  ## @NUM_GPIOS
	.comm	_GPIO_PWDN,8,3                  ## @GPIO_PWDN
	.comm	_GPIO_RST,8,3                   ## @GPIO_RST
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ## @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OV965X"

	.comm	_debug,4,2                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"set gpio %d to 1\n"

	.no_dead_strip	_ov965x_configure_gpios_pdata
.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_pdata
_ov965x_configure_gpios_pdata:          ; @ov965x_configure_gpios_pdata
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NUM_GPIOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_GPIOS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w0, [x0, #12]
	bl	_regmap_get_device
	mov	x20, x0
Lloh8:
	adrp	x8, _GPIO_PWDN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO_PWDN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	w9, w10, [x21]
	str	w9, [x25, x8, lsl #2]
Lloh11:
	adrp	x8, _GPIO_RST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIO_RST@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w10, [x25, x8, lsl #2]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x26, #0
	add	x21, x19, #8
Lloh14:
	adrp	x27, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh15:
	ldr	x27, [x27, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
Lloh18:
	adrp	x28, _debug@GOTPAGE
Lloh19:
	ldr	x28, [x28, _debug@GOTPAGEOFF]
Lloh20:
	adrp	x23, l_.str.1@PAGE
Lloh21:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x25, x26, lsl #2]
	mov	x0, x24
	bl	_gpio_is_valid
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x24
	mov	x3, x22
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	mov	w0, #1
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_v4l2_dbg
	mov	x0, x24
	mov	w1, #1
	bl	_gpio_set_value_cansleep
	mov	x0, x24
	mov	w1, #0
	bl	_gpio_export
	mov	x0, x24
	bl	_gpio_to_desc
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0, x26, lsl #2]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_GPIOS,4,2                  ; @NUM_GPIOS
	.comm	_GPIO_PWDN,8,3                  ; @GPIO_PWDN
	.comm	_GPIO_RST,8,3                   ; @GPIO_RST
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ; @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OV965X"

	.comm	_debug,4,2                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"set gpio %d to 1\n"

	.no_dead_strip	_ov965x_configure_gpios_pdata
.subsections_via_symbols
