	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7x20_init
_ov7x20_init:                           ## @ov7x20_init
	.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, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	movl	$4, %edi
	movq	%rbx, %rsi
	callq	_DDEBUG
	cmpq	$0, 8(%r14)
	jne	LBB0_1
## %bb.2:
	movq	_regvals_init_7620@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_regvals_init_7120@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ov_write_regvals
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$1, (%rax)
	movq	_DFL_AUTO_EXP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_DFL_AUTO_GAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entered"

	.comm	_regvals_init_7120,4,2          ## @regvals_init_7120
	.comm	_regvals_init_7620,4,2          ## @regvals_init_7620
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DFL_AUTO_EXP,4,2               ## @DFL_AUTO_EXP
	.comm	_DFL_AUTO_GAIN,4,2              ## @DFL_AUTO_GAIN
	.no_dead_strip	_ov7x20_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7x20_init
_ov7x20_init:                           ; @ov7x20_init
	.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, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #4
	mov	x1, x20
	bl	_DDEBUG
Lloh2:
	adrp	x8, _regvals_init_7620@GOTPAGE
Lloh3:
	ldr	x8, [x8, _regvals_init_7620@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh4:
	adrp	x10, _regvals_init_7120@GOTPAGE
Lloh5:
	ldr	x10, [x10, _regvals_init_7120@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ov_write_regvals
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #1
	str	w9, [x8]
Lloh9:
	adrp	x9, _DFL_AUTO_EXP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DFL_AUTO_EXP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DFL_AUTO_GAIN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DFL_AUTO_GAIN@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #4]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entered"

	.comm	_regvals_init_7120,4,2          ; @regvals_init_7120
	.comm	_regvals_init_7620,4,2          ; @regvals_init_7620
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DFL_AUTO_EXP,4,2               ; @DFL_AUTO_EXP
	.comm	_DFL_AUTO_GAIN,4,2              ; @DFL_AUTO_GAIN
	.no_dead_strip	_ov7x20_init
.subsections_via_symbols
