	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_status                 ## -- Begin function snd_pcm_status
	.p2align	4, 0x90
_snd_pcm_status:                        ## @snd_pcm_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_snd_pcm_stream_lock_irq
	movq	32(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movl	16(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_SNDRV_PCM_STATE_OPEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_13
## %bb.1:
	movl	56(%rbx), %eax
	movl	%eax, 52(%r15)
	movq	%r14, %rdi
	callq	_snd_pcm_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_snd_pcm_update_hw_ptr
	movq	(%rbx), %rax
	movq	_SNDRV_PCM_TSTAMP_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	32(%rbx), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 48(%r15)
	jmp	LBB0_5
LBB0_4:
	leaq	48(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_pcm_gettime
	movq	32(%rbx), %rax
LBB0_5:
	movq	48(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%r15)
	movl	8(%rax), %eax
	movl	%eax, 40(%r15)
	movq	(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_snd_pcm_playback_avail
	movq	%rax, 32(%r15)
	movq	32(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_SNDRV_PCM_STATE_RUNNING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movq	_SNDRV_PCM_STATE_DRAINING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
LBB0_8:
	movq	40(%rbx), %rcx
	subq	%rax, %rcx
	addq	24(%rbx), %rcx
	movq	%rcx, 24(%r15)
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_snd_pcm_capture_avail
	movq	%rax, 32(%r15)
	movq	32(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_SNDRV_PCM_STATE_RUNNING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	addq	24(%rbx), %rax
	movq	%rax, 24(%r15)
	jmp	LBB0_12
LBB0_11:
	movq	$0, 24(%r15)
LBB0_12:
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_13:
	movq	%r14, %rdi
	callq	_snd_pcm_stream_unlock_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ## @SNDRV_PCM_STATE_OPEN
	.comm	_SNDRV_PCM_TSTAMP_ENABLE,8,3    ## @SNDRV_PCM_TSTAMP_ENABLE
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STATE_RUNNING,8,3    ## @SNDRV_PCM_STATE_RUNNING
	.comm	_SNDRV_PCM_STATE_DRAINING,8,3   ## @SNDRV_PCM_STATE_DRAINING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_status                 ; -- Begin function snd_pcm_status
	.p2align	2
_snd_pcm_status:                        ; @snd_pcm_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x20, #32]
	ldr	x9, [x8]
	str	x9, [x21]
	ldr	w8, [x8, #16]
	str	w8, [x21, #56]
Lloh0:
	adrp	x8, _SNDRV_PCM_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.1:
	ldr	w8, [x20, #56]
	str	w8, [x21, #52]
	mov	x0, x19
	bl	_snd_pcm_running
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_snd_pcm_update_hw_ptr
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SNDRV_PCM_TSTAMP_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_TSTAMP_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #32]
	ldr	w9, [x8, #12]
	str	w9, [x21, #48]
	b	LBB0_5
LBB0_4:
	add	x1, x21, #48
	mov	x0, x20
	bl	_snd_pcm_gettime
	ldr	x8, [x20, #32]
LBB0_5:
	ldr	x9, [x20, #48]
	ldr	w9, [x9]
	ldr	w8, [x8, #8]
	stp	w8, w9, [x21, #40]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	bl	_snd_pcm_playback_avail
	str	x0, [x21, #32]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _SNDRV_PCM_STATE_DRAINING@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SNDRV_PCM_STATE_DRAINING@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x20, #40]
	ldr	x9, [x20, #24]
	sub	x8, x8, x0
	add	x8, x9, x8
	str	x8, [x21, #24]
	b	LBB0_11
LBB0_8:
	bl	_snd_pcm_capture_avail
	str	x0, [x21, #32]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #24]
	add	x8, x8, x0
	str	x8, [x21, #24]
	b	LBB0_11
LBB0_10:
	str	xzr, [x21, #24]
LBB0_11:
	ldur	q0, [x20, #8]
	stur	q0, [x21, #8]
	stp	xzr, xzr, [x20, #8]
LBB0_12:
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ; @SNDRV_PCM_STATE_OPEN
	.comm	_SNDRV_PCM_TSTAMP_ENABLE,8,3    ; @SNDRV_PCM_TSTAMP_ENABLE
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STATE_RUNNING,8,3    ; @SNDRV_PCM_STATE_RUNNING
	.comm	_SNDRV_PCM_STATE_DRAINING,8,3   ; @SNDRV_PCM_STATE_DRAINING
.subsections_via_symbols
