	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv06xx_write_sensor_finish
_stv06xx_write_sensor_finish:           ## @stv06xx_write_sensor_finish
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	movq	_BRIDGE_STV610@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	8(%rdi), %r14
	movq	16(%rdi), %rbx
	movq	$0, (%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_STV06XX_URB_MSG_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	movl	$64, %ecx
	movl	$5892, %r8d                     ## imm = 0x1704
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$1
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
LBB0_2:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_STV610,8,3              ## @BRIDGE_STV610
	.comm	_STV06XX_URB_MSG_TIMEOUT,4,2    ## @STV06XX_URB_MSG_TIMEOUT
	.no_dead_strip	_stv06xx_write_sensor_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv06xx_write_sensor_finish
_stv06xx_write_sensor_finish:           ; @stv06xx_write_sensor_finish
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BRIDGE_STV610@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRIDGE_STV610@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x20, x19, [x0, #8]
	str	xzr, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _STV06XX_URB_MSG_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STV06XX_URB_MSG_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #64
	mov	w4, #5892
	mov	w5, #0
	mov	x6, x20
	mov	w7, #1
	bl	_usb_control_msg
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_STV610,8,3              ; @BRIDGE_STV610
	.comm	_STV06XX_URB_MSG_TIMEOUT,4,2    ; @STV06XX_URB_MSG_TIMEOUT
	.no_dead_strip	_stv06xx_write_sensor_finish
.subsections_via_symbols
