	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v011_read
_mt9v011_read:                          ## @mt9v011_read
	.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	%rdi, %r14
	movb	%sil, -17(%rbp)
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	leaq	-17(%rbp), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %r8d
	leaq	L_.str(%rip), %rcx
	xorl	%edi, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
LBB0_2:
	movl	$10, %edi
	callq	_msleep
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_i2c_master_recv
	cmpl	$2, %eax
	je	LBB0_4
## %bb.3:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %r8d
	leaq	L_.str.1(%rip), %rcx
	xorl	%edi, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
LBB0_4:
	movl	-24(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-17(%rbp), %r8d
	leaq	L_.str.2(%rip), %rcx
	movl	$2, %edi
	movq	%r14, %rdx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c i/o error: rc == %d (should be 1)\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c i/o error: rc == %d (should be 2)\n"

L_.str.2:                               ## @.str.2
	.asciz	"mt9v011: read 0x%02x = 0x%04x\n"

	.no_dead_strip	_mt9v011_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v011_read
_mt9v011_read:                          ; @mt9v011_read
	.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
	strb	w1, [sp, #15]
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	add	x1, sp, #15
	mov	w2, #1
	bl	_i2c_master_send
Lloh0:
	adrp	x21, _debug@GOTPAGE
Lloh1:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	and	w4, w0, #0xff
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_2:
	mov	w0, #10
	bl	_msleep
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_master_recv
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21]
	and	w4, w0, #0xff
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_be16_to_cpu
	mov	x20, x0
	ldr	w1, [x21]
	ldrb	w4, [sp, #15]
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
	str	x20, [sp]
	mov	w0, #2
	mov	x2, x19
	bl	_v4l2_dbg
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c i/o error: rc == %d (should be 1)\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c i/o error: rc == %d (should be 2)\n"

l_.str.2:                               ; @.str.2
	.asciz	"mt9v011: read 0x%02x = 0x%04x\n"

	.no_dead_strip	_mt9v011_read
.subsections_via_symbols
