	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_update_pipe_position
_vx_update_pipe_position:               ## @vx_update_pipe_position
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CMD_STREAM_SAMPLE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_vx_init_rmh
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_vx_set_pipe_cmd_params
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_vx_send_msg
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	shll	$24, %edx
	orl	4(%rax), %edx
	movl	%edx, %ecx
	subl	(%rbx), %ecx
	movl	%edx, (%rbx)
	movl	4(%rbx), %eax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %esi
	cmpl	%esi, %eax
	jl	LBB0_3
## %bb.2:
	cltd
	idivl	%esi
	movl	%edx, 4(%rbx)
LBB0_3:
	addl	%ecx, 8(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_STREAM_SAMPLE_COUNT,4,2    ## @CMD_STREAM_SAMPLE_COUNT
	.no_dead_strip	_vx_update_pipe_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_update_pipe_position
_vx_update_pipe_position:               ; @vx_update_pipe_position
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CMD_STREAM_SAMPLE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_STREAM_SAMPLE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vx_init_rmh
	ldp	w2, w1, [x19, #12]
	add	x0, sp, #8
	mov	w3, #0
	bl	_vx_set_pipe_cmd_params
	add	x1, sp, #8
	mov	x0, x21
	bl	_vx_send_msg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	ldp	w9, w8, [x8]
	orr	w10, w8, w9, lsl #24
	ldp	w8, w9, [x19]
	sub	w8, w10, w8
	add	w9, w9, w8
	stp	w10, w9, [x19]
	ldr	w10, [x20]
	cmp	w9, w10
	b.lt	LBB0_3
; %bb.2:
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x19, #4]
LBB0_3:
	mov	w0, #0
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_STREAM_SAMPLE_COUNT,4,2    ; @CMD_STREAM_SAMPLE_COUNT
	.no_dead_strip	_vx_update_pipe_position
.subsections_via_symbols
