	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv06xx_read_sensor            ## -- Begin function stv06xx_read_sensor
	.p2align	4, 0x90
_stv06xx_read_sensor:                   ## @stv06xx_read_sensor
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	_STV_I2C_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
	callq	_stv06xx_write_bridge
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ebx
	movq	_I2C_BUFFER_LENGTH@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%r12)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r12)
	movl	$0, 132(%r12)
	movq	_I2C_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r12)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	(%r14), %r10d
	movq	_STV06XX_URB_MSG_TIMEOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	movl	$64, %ecx
	movl	$5120, %r8d                     ## imm = 0x1400
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	(%r13), %rcx
	movl	4(%rcx), %r10d
	movl	(%r14), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	movl	$192, %ecx
	movl	$5136, %r8d                     ## imm = 0x1410
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	(%r13), %rax
	cmpl	$2, 4(%rax)
	movl	(%r12), %ecx
	jne	LBB0_7
## %bb.6:
	movl	4(%r12), %eax
	shll	$8, %eax
	orl	%eax, %ecx
LBB0_7:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %r9d
	callq	_gspca_dbg
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r15d, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV_I2C_FLUSH,4,2              ## @STV_I2C_FLUSH
	.comm	_I2C_BUFFER_LENGTH,4,2          ## @I2C_BUFFER_LENGTH
	.comm	_I2C_READ_CMD,4,2               ## @I2C_READ_CMD
	.comm	_STV06XX_URB_MSG_TIMEOUT,4,2    ## @STV06XX_URB_MSG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C: Read error writing address: %d\n"

	.comm	_D_CONF,4,2                     ## @D_CONF
L_.str.1:                               ## @.str.1
	.asciz	"I2C: Read 0x%x from address 0x%x, status: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv06xx_read_sensor            ; -- Begin function stv06xx_read_sensor
	.p2align	2
_stv06xx_read_sensor:                   ; @stv06xx_read_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldp	x22, x23, [x0, #8]
Lloh0:
	adrp	x8, _STV_I2C_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV_I2C_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x0]
	ldr	w2, [x8, #8]
	bl	_stv06xx_write_bridge
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x24, _I2C_BUFFER_LENGTH@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I2C_BUFFER_LENGTH@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	str	w19, [x22]
	ldr	x8, [x20]
	ldr	w8, [x8]
	stp	w8, wzr, [x22, #128]
Lloh5:
	adrp	x8, _I2C_READ_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_READ_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22, #136]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w7, [x24]
Lloh8:
	adrp	x25, _STV06XX_URB_MSG_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _STV06XX_URB_MSG_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x23
	mov	w2, #4
	mov	w3, #64
	mov	w4, #5120
	mov	w5, #0
	mov	x6, x22
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w7, [x8, #4]
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x23
	mov	w2, #4
	mov	w3, #192
	mov	w4, #5136
	mov	w5, #0
	mov	x6, x22
	bl	_usb_control_msg
	mov	x23, x0
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	ldr	w3, [x22]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x22, #4]
	orr	w3, w3, w8, lsl #8
LBB0_4:
	str	w3, [x21]
Lloh10:
	adrp	x8, _D_CONF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	mov	x5, x23
	bl	_gspca_dbg
	cmp	w23, #0
	csel	w0, w23, wzr, lt
	b	LBB0_7
LBB0_5:
	mov	x24, x0
	b	LBB0_7
LBB0_6:
	mov	x24, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_pr_err
	mov	x0, x24
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STV_I2C_FLUSH,4,2              ; @STV_I2C_FLUSH
	.comm	_I2C_BUFFER_LENGTH,4,2          ; @I2C_BUFFER_LENGTH
	.comm	_I2C_READ_CMD,4,2               ; @I2C_READ_CMD
	.comm	_STV06XX_URB_MSG_TIMEOUT,4,2    ; @STV06XX_URB_MSG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C: Read error writing address: %d\n"

	.comm	_D_CONF,4,2                     ; @D_CONF
l_.str.1:                               ; @.str.1
	.asciz	"I2C: Read 0x%x from address 0x%x, status: %d\n"

.subsections_via_symbols
