	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2640_video_probe
_ov2640_video_probe:                    ## @ov2640_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	%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	%rdi, %r14
	callq	_to_ov2640
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_ov2640_s_power
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_BANK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BANK_SEL_SENS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	movq	_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_VERSION
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_dev_info
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ov2640_s_power
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_SEL,4,2                   ## @BANK_SEL
	.comm	_BANK_SEL_SENS,4,2              ## @BANK_SEL_SENS
	.comm	_PID,4,2                        ## @PID
	.comm	_VER,4,2                        ## @VER
	.comm	_MIDH,4,2                       ## @MIDH
	.comm	_MIDL,4,2                       ## @MIDL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ov2640"

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	_ov2640_video_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2640_video_probe
_ov2640_video_probe:                    ; @ov2640_video_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	bl	_to_ov2640
	mov	x19, x0
	mov	w1, #1
	bl	_ov2640_s_power
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _BANK_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BANK_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BANK_SEL_SENS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BANK_SEL_SENS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
Lloh6:
	adrp	x8, _PID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh9:
	adrp	x8, _VER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
Lloh12:
	adrp	x8, _MIDH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIDH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x24, x0
Lloh15:
	adrp	x8, _MIDL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIDL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_VERSION
	cmp	w0, #128
	b.ne	LBB0_3
; %bb.2:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	bl	_dev_info
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_ov2640_s_power
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_SEL,4,2                   ; @BANK_SEL
	.comm	_BANK_SEL_SENS,4,2              ; @BANK_SEL_SENS
	.comm	_PID,4,2                        ; @PID
	.comm	_VER,4,2                        ; @VER
	.comm	_MIDH,4,2                       ; @MIDH
	.comm	_MIDL,4,2                       ; @MIDL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ov2640"

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	_ov2640_video_probe
.subsections_via_symbols
