	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_sw_params
_snd_pcm_sw_params:                     ## @snd_pcm_sw_params
	.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, %r15
	movq	%rdi, %r12
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	8(%r12), %r14
	movq	%r12, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	64(%r14), %rax
	movq	(%rax), %r13
	movq	_SNDRV_PCM_STATE_OPEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_snd_pcm_stream_unlock_irq
	cmpq	%rbx, %r13
	jne	LBB0_5
## %bb.4:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	(%r15), %rax
	movq	_SNDRV_PCM_TSTAMP_LAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.7:
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.8:
	movq	16(%r15), %rcx
	movq	24(%r15), %rax
	cmpq	(%r14), %rcx
	jge	LBB0_9
## %bb.10:
	cmpq	%rax, %rcx
	jg	LBB0_6
## %bb.11:
	cmpq	8(%r14), %rax
	jg	LBB0_6
LBB0_12:
	movq	%r12, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	(%r15), %rax
	movq	%rax, 16(%r14)
	movl	48(%r15), %eax
	movl	%eax, 56(%r14)
	movq	8(%r15), %rax
	movq	48(%r14), %rcx
	movq	%rax, (%rcx)
	movl	44(%r15), %eax
	movl	%eax, 44(%r14)
	movl	40(%r15), %eax
	movl	%eax, 40(%r14)
	movdqu	16(%r15), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 24(%r14)
	movq	(%r14), %rax
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	callq	_snd_pcm_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	cmpq	$0, 32(%r14)
	jle	LBB0_17
## %bb.16:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pcm_playback_silence
LBB0_17:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_snd_pcm_update_state
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r12, %rdi
	callq	_snd_pcm_stream_unlock_irq
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ## @SNDRV_PCM_STATE_OPEN
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_SNDRV_PCM_TSTAMP_LAST,8,3      ## @SNDRV_PCM_TSTAMP_LAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ULONG_MAX,4,2                  ## @ULONG_MAX
	.no_dead_strip	_snd_pcm_sw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_sw_params
_snd_pcm_sw_params:                     ; @snd_pcm_sw_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_PCM_RUNTIME_CHECK
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x20, #64]
	ldr	x22, [x8]
Lloh2:
	adrp	x8, _SNDRV_PCM_STATE_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_PCM_STATE_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
	cmp	x22, x23
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EBADFD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _SNDRV_PCM_TSTAMP_LAST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SNDRV_PCM_TSTAMP_LAST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.6:
	ldr	x10, [x20]
	ldp	x9, x8, [x21, #16]
	cmp	x9, x10
	b.ge	LBB0_14
; %bb.7:
	cmp	x9, x8
	b.gt	LBB0_15
; %bb.8:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_snd_pcm_stream_lock_irq
	ldp	x8, x9, [x21]
	str	x8, [x20, #16]
	ldr	w8, [x21, #48]
	str	w8, [x20, #56]
	ldr	x8, [x20, #48]
	str	x9, [x8]
	ldr	d0, [x21, #40]
	str	d0, [x20, #40]
	ldr	q0, [x21, #16]
	ext.16b	v0, v0, v0, #8
	stur	q0, [x20, #24]
	ldr	x8, [x20]
	str	x8, [x21, #32]
	mov	x0, x19
	bl	_snd_pcm_running
	cbz	x0, LBB0_18
; %bb.10:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x20, #32]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pcm_playback_silence
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_pcm_update_state
	mov	x20, x0
	b	LBB0_19
LBB0_14:
	cbz	x8, LBB0_9
LBB0_15:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ; @SNDRV_PCM_STATE_OPEN
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_SNDRV_PCM_TSTAMP_LAST,8,3      ; @SNDRV_PCM_TSTAMP_LAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ULONG_MAX,4,2                  ; @ULONG_MAX
	.no_dead_strip	_snd_pcm_sw_params
.subsections_via_symbols
