	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_client_channels_buf ## -- Begin function snd_pcm_plug_client_channels_buf
	.p2align	4, 0x90
_snd_pcm_plug_client_channels_buf:      ## @snd_pcm_plug_client_channels_buf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_pcm_plug_stream
	movl	%eax, %r15d
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	jne	LBB0_4
## %bb.3:
	callq	_snd_pcm_plug_first
	movq	%rax, %r15
	movq	%rax, %rbx
	addq	$24, %rbx
	jmp	LBB0_5
LBB0_4:
	callq	_snd_pcm_plug_last
	movq	%rax, %r15
	movq	%rax, %rbx
	addq	$16, %rbx
LBB0_5:
	movq	8(%r15), %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movl	4(%rbx), %edi
	callq	_snd_pcm_format_physical_width
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	(%r15), %rax
	movq	_SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%al
	cmpl	$2, %ebx
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.9:
	movl	%ebx, %eax
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	imull	%r10d, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %ebx
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %r11d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_11:
	movl	%ebx, %r11d
	movl	%ebx, %edx
	andl	$-2, %edx
	leal	(%r10,%r10), %r8d
	xorl	%edi, %edi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, (%r12)
	movl	$1, 4(%r12)
	xorl	%esi, %esi
	cmpl	(%r9), %ebx
	sete	%sil
	movl	%esi, 8(%r12)
	movq	%r14, 16(%r12)
	movl	%edi, 24(%r12)
	movl	%eax, 28(%r12)
	movl	%r13d, 32(%r12)
	movl	$1, 36(%r12)
	xorl	%esi, %esi
	cmpl	(%r9), %ebx
	sete	%sil
	movl	%esi, 40(%r12)
	movq	%r14, 48(%r12)
	leal	(%r10,%rdi), %esi
	movl	%esi, 56(%r12)
	movl	%eax, 60(%r12)
	addl	$2, %ecx
	addq	$64, %r12
	addl	%r8d, %edi
	cmpl	%ecx, %edx
	jne	LBB0_12
LBB0_13:
	testb	$1, %r11b
	je	LBB0_15
## %bb.14:
	movl	%r13d, (%r12)
	movl	$1, 4(%r12)
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ebx
	sete	%sil
	movl	%esi, 8(%r12)
	movq	%r14, 16(%r12)
	imull	%r10d, %ecx
	movl	%ecx, 24(%r12)
	movl	%eax, 28(%r12)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ## @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_client_channels_buf ; -- Begin function snd_pcm_plug_client_channels_buf
	.p2align	2
_snd_pcm_plug_client_channels_buf:      ; @snd_pcm_plug_client_channels_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_snd_pcm_plug_stream
	mov	x21, x0
	cmp	x20, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x23
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.4:
	bl	_snd_pcm_plug_first
	mov	x23, x0
	add	x25, x0, #24
	b	LBB0_6
LBB0_5:
	bl	_snd_pcm_plug_last
	mov	x23, x0
	add	x25, x0, #16
LBB0_6:
	ldr	x24, [x23, #8]
	str	x24, [x22]
	ldr	w0, [x25, #4]
	bl	_snd_pcm_format_physical_width
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	w25, [x25]
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w25, #1, #4, ne
	cset	w0, gt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
; %bb.8:
	cmp	w25, #1
	b.lt	LBB0_2
; %bb.9:
	mov	w8, #0
	mul	w9, w25, w22
	mov	w10, #1
Lloh9:
	adrp	x11, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	w19, w10, [x24]
	ldr	w12, [x11]
	cmp	w21, w12
	cset	w12, eq
	str	w12, [x24, #8]
	str	x20, [x24, #16]
	stp	w8, w9, [x24, #24]
	add	w8, w8, w22
	add	x24, x24, #32
	subs	w25, w25, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	mov	x19, x22
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ; @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
.subsections_via_symbols
