	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_lib_ioctl_reset
_snd_pcm_lib_ioctl_reset:               ## @snd_pcm_lib_ioctl_reset
	.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, %rbx
	movq	(%rdi), %r14
	callq	_snd_pcm_stream_lock_irqsave
	movq	%rbx, %rdi
	callq	_snd_pcm_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_snd_pcm_update_hw_ptr
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	cltd
	idivl	8(%r14)
	movl	%edx, (%rcx)
	jmp	LBB0_4
LBB0_3:
	movq	(%r14), %rax
	movl	$0, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	callq	_snd_pcm_stream_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_pcm_lib_ioctl_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_lib_ioctl_reset
_snd_pcm_lib_ioctl_reset:               ; @snd_pcm_lib_ioctl_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	bl	_snd_pcm_stream_lock_irqsave
	mov	x0, x19
	bl	_snd_pcm_running
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_snd_pcm_update_hw_ptr
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	ldr	x9, [x20]
	ldr	w10, [x9]
	sdiv	w11, w10, w8
	msub	w8, w11, w8, w10
	str	w8, [x9]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20]
	str	wzr, [x8]
LBB0_4:
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_pcm_lib_ioctl_reset
.subsections_via_symbols
