	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_sensor_register
_read_sensor_register:                  ## @read_sensor_register
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	$161, %esi
	movl	$45887, %edx                    ## imm = 0xB33F
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %esi
	testb	$2, %sil
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_2:
	movq	%r13, %rdi
	movl	$160, %esi
	movl	%r14d, %edx
	movl	$45882, %ecx                    ## imm = 0xB33A
	callq	_reg_w
	movq	%r13, %rdi
	movl	$160, %esi
	movl	$2, %edx
	movl	$45881, %ecx                    ## imm = 0xB339
	callq	_reg_w
	movl	$-51, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$161, %esi
	movl	$45883, %edx                    ## imm = 0xB33B
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$40, %edi
	callq	_msleep
	incl	%ebx
	jne	LBB0_3
LBB0_5:
	movq	%r13, %rdi
	movl	$161, %esi
	movl	$45886, %edx                    ## imm = 0xB33E
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %r12d
	movq	%r13, %rdi
	movl	$161, %esi
	movl	$45885, %edx                    ## imm = 0xB33D
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movl	$161, %esi
	movl	$45884, %edx                    ## imm = 0xB33C
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_gspca_dbg
LBB0_9:
	movq	%r13, %rdi
	movl	$161, %esi
	movl	$45876, %edx                    ## imm = 0xB334
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r13), %rax
	cmpl	$2, (%rax)
	jne	LBB0_11
## %bb.10:
	shll	$8, %r15d
	addl	%r14d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2c Bus Busy Wait %02x\n"

	.comm	_D_PROBE,4,2                    ## @D_PROBE
L_.str.1:                               ## @.str.1
	.asciz	"Read Sensor %02x%02x %02x\n"

	.no_dead_strip	_read_sensor_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_sensor_register
_read_sensor_register:                  ; @read_sensor_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	w1, #161
	mov	w2, #45887
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w1, [x8]
	tbnz	w1, #1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w21, #0
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	mov	w1, #160
	mov	x2, x20
	mov	w3, #45882
	bl	_reg_w
	mov	x0, x19
	mov	w1, #160
	mov	w2, #2
	mov	w3, #45881
	bl	_reg_w
	mov	w20, #-51
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45883
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #40
	bl	_msleep
	adds	w20, w20, #1
	b.lo	LBB0_3
LBB0_5:
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45886
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w22, [x8]
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45885
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45884
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w21, [x8]
	cmp	w21, #0
	ccmp	w20, #0, #4, ne
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	mov	x5, x22
	bl	_gspca_dbg
LBB0_7:
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45876
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.8:
	add	w21, w20, w21, lsl #8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2c Bus Busy Wait %02x\n"

	.comm	_D_PROBE,4,2                    ; @D_PROBE
l_.str.1:                               ; @.str.1
	.asciz	"Read Sensor %02x%02x %02x\n"

	.no_dead_strip	_read_sensor_register
.subsections_via_symbols
