	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9640_video_probe
_ov9640_video_probe:                    ## @ov9640_video_probe
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_i2c_get_clientdata
	movq	%rax, %rdi
	callq	_to_ov9640_sensor
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ov9640_s_power
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_OV9640_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ov9640_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_OV9640_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ov9640_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_OV9640_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ov9640_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_OV9640_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ov9640_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	callq	_VERSION
	cmpl	$129, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.9:
	movl	$3, %eax
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_7:
	movl	$2, %eax
LBB0_10:
	movl	%eax, (%r15)
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_dev_info
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_13:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ov9640_s_power
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV9640_PID,4,2                 ## @OV9640_PID
	.comm	_OV9640_VER,4,2                 ## @OV9640_VER
	.comm	_OV9640_MIDH,4,2                ## @OV9640_MIDH
	.comm	_OV9640_MIDL,4,2                ## @OV9640_MIDL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ov9640"

L_.str.1:                               ## @.str.1
	.asciz	"Product ID error %x:%x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.no_dead_strip	_ov9640_video_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9640_video_probe
_ov9640_video_probe:                    ; @ov9640_video_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_i2c_get_clientdata
	bl	_to_ov9640_sensor
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	mov	w1, #1
	bl	_ov9640_s_power
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _OV9640_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV9640_PID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_ov9640_reg_read
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _OV9640_VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV9640_VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ov9640_reg_read
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.3:
Lloh6:
	adrp	x8, _OV9640_MIDH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV9640_MIDH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x20
	bl	_ov9640_reg_read
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
Lloh9:
	adrp	x8, _OV9640_MIDL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OV9640_MIDL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_ov9640_reg_read
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldp	w1, w0, [sp, #8]
	bl	_VERSION
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.7:
	mov	w8, #3
	b	LBB0_10
LBB0_8:
	mov	x22, x0
	b	LBB0_13
LBB0_9:
	mov	w8, #2
LBB0_10:
	str	w8, [x21], #8
	ldp	w4, w3, [sp, #8]
	ldp	w6, w5, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
	mov	x22, x0
	b	LBB0_12
LBB0_11:
	ldp	w3, w2, [sp, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_ov9640_s_power
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OV9640_PID,4,2                 ; @OV9640_PID
	.comm	_OV9640_VER,4,2                 ; @OV9640_VER
	.comm	_OV9640_MIDH,4,2                ; @OV9640_MIDH
	.comm	_OV9640_MIDL,4,2                ; @OV9640_MIDL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ov9640"

l_.str.1:                               ; @.str.1
	.asciz	"Product ID error %x:%x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.no_dead_strip	_ov9640_video_probe
.subsections_via_symbols
