	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sensor_init
___sensor_init:                         ## @__sensor_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_OV5647_SW_STANDBY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ov5647_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_ov5647_640x480@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ov5647_write_array
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ov5647_set_virtual_channel
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ov5647_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	testb	$1, -36(%rbp)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_ov5647_write
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_ov5647_stream_off
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV5647_SW_STANDBY,4,2          ## @OV5647_SW_STANDBY
	.comm	_ov5647_640x480,4,2             ## @ov5647_640x480
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write sensor default regs error\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device was in SW standby"

	.no_dead_strip	___sensor_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sensor_init
___sensor_init:                         ; @__sensor_init
	.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	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh0:
	adrp	x22, _OV5647_SW_STANDBY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OV5647_SW_STANDBY@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ov5647_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _ov5647_640x480@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ov5647_640x480@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ov5647_write_array
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_ov5647_set_virtual_channel
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ov5647_read
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_ov5647_write
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_ov5647_stream_off
LBB0_7:
	mov	x21, x0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OV5647_SW_STANDBY,4,2          ; @OV5647_SW_STANDBY
	.comm	_ov5647_640x480,4,2             ; @ov5647_640x480
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write sensor default regs error\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device was in SW standby"

	.no_dead_strip	___sensor_init
.subsections_via_symbols
