	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5695_check_sensor_id
_ov5695_check_sensor_id:                ## @ov5695_check_sensor_id
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	(%rdi), %r14
	movq	$0, -24(%rbp)
	movq	_OV5695_REG_CHIP_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OV5695_REG_VALUE_24BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-24(%rbp), %rcx
	movq	%rax, %rdi
	callq	_ov5695_read_reg
	movl	%eax, %ebx
	movq	-24(%rbp), %rdx
	movq	_CHIP_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV5695_REG_CHIP_ID,4,2         ## @OV5695_REG_CHIP_ID
	.comm	_OV5695_REG_VALUE_24BIT,4,2     ## @OV5695_REG_VALUE_24BIT
	.comm	_CHIP_ID,8,3                    ## @CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected sensor id(%06x), ret(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Detected OV%06x sensor\n"

	.no_dead_strip	_ov5695_check_sensor_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5695_check_sensor_id
_ov5695_check_sensor_id:                ; @ov5695_check_sensor_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	ldr	x19, [x0]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x9, _OV5695_REG_CHIP_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OV5695_REG_CHIP_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _OV5695_REG_VALUE_24BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OV5695_REG_VALUE_24BIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	add	x3, sp, #8
	mov	x0, x8
	bl	_ov5695_read_reg
	ldr	x2, [sp, #8]
Lloh6:
	adrp	x8, _CHIP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHIP_ID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OV5695_REG_CHIP_ID,4,2         ; @OV5695_REG_CHIP_ID
	.comm	_OV5695_REG_VALUE_24BIT,4,2     ; @OV5695_REG_VALUE_24BIT
	.comm	_CHIP_ID,8,3                    ; @CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected sensor id(%06x), ret(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Detected OV%06x sensor\n"

	.no_dead_strip	_ov5695_check_sensor_id
.subsections_via_symbols
