	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_stream_read_position
_pcxhr_stream_read_position:            ## @pcxhr_stream_read_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	%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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rax
	movl	$1, %r12d
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movb	(%rax), %cl
	movl	$1, %r12d
	shll	%cl, %r12d
LBB0_2:
	movq	_CMD_STREAM_SAMPLE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_pcxhr_init_rmh
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_pcxhr_set_pipe_cmd_params
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_pcxhr_send_msg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movl	(%rax), %r15d
	shll	$24, %r15d
	addl	8(%rax), %r15d
	movq	24(%rbx), %rax
	movq	(%rbx), %r8
	movq	16(%rbx), %rcx
	addq	8(%rbx), %r8
	addq	(%r14), %r8
	cmpl	$0, (%rax)
	movl	(%rcx), %edx
	movslq	%r15d, %rcx
	movl	$80, %eax
	movl	$67, %esi
	cmovel	%eax, %esi
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_STREAM_SAMPLE_COUNT,4,2    ## @CMD_STREAM_SAMPLE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream %c%d : abs samples real(%ld) timer(%ld)\n"

	.no_dead_strip	_pcxhr_stream_read_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_stream_read_position
_pcxhr_stream_read_position:            ; @pcxhr_stream_read_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	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #24]
	ldr	w8, [x8]
	mov	w21, #1
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	lsl	w21, w21, w8
LBB0_2:
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	_pcxhr_init_rmh
	ldr	x8, [x20, #24]
	ldp	w1, w2, [x8]
	add	x0, sp, #8
	mov	w3, #0
	mov	x4, x21
	bl	_pcxhr_set_pipe_cmd_params
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcxhr_send_msg
	mov	w21, #0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	ldr	w8, [x8, #8]
	add	w21, w8, w9, lsl #24
	ldp	x9, x8, [x20, #16]
	ldr	w8, [x8]
	ldr	w2, [x9]
	sxtw	x3, w21
	ldp	x10, x9, [x20]
	ldr	x11, [x19]
	add	x9, x10, x9
	add	x4, x9, x11
	mov	w9, #67
	mov	w10, #80
	cmp	w8, #0
	csel	w1, w10, w9, eq
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_STREAM_SAMPLE_COUNT,4,2    ; @CMD_STREAM_SAMPLE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream %c%d : abs samples real(%ld) timer(%ld)\n"

	.no_dead_strip	_pcxhr_stream_read_position
.subsections_via_symbols
