	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_plugin_alloc
_snd_pcm_plugin_alloc:                  ## @snd_pcm_plugin_alloc
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movl	44(%rdi,%rbx,8), %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	40(,%rbx,8), %r12
	addq	%r13, %r12
	movl	%r15d, %ebx
	imull	%r14d, %ebx
	imull	(%r12), %ebx
	movl	%ebx, %edi
	andl	$7, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%r15d, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	%ebx, %rbx
	shrq	$3, %rbx
	movq	24(%r13), %rdi
	cmpl	%r14d, 8(%r13)
	jge	LBB0_8
## %bb.7:
	callq	_vfree
	movq	%rbx, %rdi
	callq	_vmalloc
	movq	%rax, %rdi
	movq	%rax, 24(%r13)
	movl	%r14d, 8(%r13)
LBB0_8:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movq	32(%r13), %rbx
	movq	_SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.10:
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	je	LBB0_17
## %bb.11:
	movl	%r8d, %r11d
	imull	%r15d, %r11d
	xorl	%eax, %eax
	cmpl	$1, %r8d
	jne	LBB0_18
## %bb.12:
	xorl	%esi, %esi
	jmp	LBB0_20
LBB0_13:
	movl	$0, 8(%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_14:
	movq	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.15:
	movslq	(%r12), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_22
## %bb.16:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rdi
	jmp	LBB0_23
LBB0_18:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	leal	(%r15,%r15), %r9d
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rbx)
	movl	$1, 4(%rbx)
	movq	$0, 24(%rbx)
	movq	%rdi, 16(%rbx)
	movl	%edx, 8(%rbx)
	movl	%r11d, 12(%rbx)
	movl	%r14d, 32(%rbx)
	movl	$1, 36(%rbx)
	movq	$0, 56(%rbx)
	movq	%rdi, 48(%rbx)
	leal	(%r15,%rdx), %ecx
	movl	%ecx, 40(%rbx)
	movl	%r11d, 44(%rbx)
	addl	$2, %esi
	addq	$64, %rbx
	addl	%r9d, %edx
	cmpl	%esi, %r10d
	jne	LBB0_19
LBB0_20:
	testb	$1, %r8b
	je	LBB0_5
## %bb.21:
	movl	%r14d, (%rbx)
	movl	$1, 4(%rbx)
	movq	$0, 24(%rbx)
	movq	%rdi, 16(%rbx)
	imull	%r15d, %esi
	movl	%esi, 8(%rbx)
	movl	%r11d, 12(%rbx)
	jmp	LBB0_5
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %edi
LBB0_23:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_25
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_25:
	movslq	(%r12), %rdi
	movl	%edi, %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rcx
	orq	%rdi, %rcx
	shrq	$32, %rcx
	je	LBB0_27
## %bb.26:
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rsi
	jmp	LBB0_28
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
LBB0_28:
	testq	%r8, %r8
	je	LBB0_17
## %bb.29:
	movq	24(%r13), %rdx
	xorl	%eax, %eax
	cmpl	$1, %edi
	jne	LBB0_32
## %bb.30:
	xorl	%edi, %edi
	jmp	LBB0_34
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_32:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rbx)
	movq	$1, 4(%rbx)
	movq	$0, 24(%rbx)
	movq	%rsi, %rcx
	imulq	%rdi, %rcx
	addq	%rdx, %rcx
	movq	%rcx, 16(%rbx)
	movl	%r15d, 12(%rbx)
	movq	%rdi, %rcx
	orq	$1, %rcx
	movl	%r14d, 32(%rbx)
	movq	$1, 36(%rbx)
	movq	$0, 56(%rbx)
	imulq	%rsi, %rcx
	addq	%rdx, %rcx
	movq	%rcx, 48(%rbx)
	movl	%r15d, 44(%rbx)
	addq	$2, %rdi
	addq	$64, %rbx
	cmpq	%rdi, %r9
	jne	LBB0_33
LBB0_34:
	testb	$1, %r8b
	je	LBB0_5
## %bb.35:
	movl	%r14d, (%rbx)
	movq	$1, 4(%rbx)
	movq	$0, 24(%rbx)
	imulq	%rdi, %rsi
	addq	%rsi, %rdx
	movq	%rdx, 16(%rbx)
	movl	%r15d, 12(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ## @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED,8,3 ## @SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_pcm_plugin_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_pcm_plugin_alloc
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_pcm_plugin_alloc:                  ; @snd_pcm_plugin_alloc
	.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	x19, x1
	mov	x21, x0
	mov	x8, x0
	ldr	x9, [x8], #40
Lloh0:
	adrp	x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x11, x0, #48
	cmp	x9, x10
	csel	x23, x11, x8, eq
	ldr	w0, [x23, #4]
	bl	_snd_pcm_format_physical_width
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x23]
	mul	w9, w20, w19
	mul	w8, w9, w8
	sxtw	x22, w8
	and	x0, x22, #0x7
	bl	_snd_BUG_ON
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x20
LBB0_5:
	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_6:
	lsr	x22, x22, #3
	ldr	w8, [x21, #8]
	ldr	x0, [x21, #24]
	cmp	w8, w19
	b.ge	LBB0_8
; %bb.7:
	bl	_vfree
	mov	x0, x22
	bl	_vmalloc
	str	x0, [x21, #24]
	str	w19, [x21, #8]
LBB0_8:
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x24, [x21, #32]
	ldr	x8, [x21, #16]
Lloh5:
	adrp	x9, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_PCM_ACCESS_RW_INTERLEAVED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	w10, [x23]
	cbz	w10, LBB0_22
; %bb.11:
	mul	w8, w10, w20
	sub	w9, w10, #1
	cmp	w9, #3
	b.hs	LBB0_17
; %bb.12:
	mov	w11, #0
	mov	x9, x24
	b	LBB0_20
LBB0_13:
	str	wzr, [x21, #8]
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
Lloh10:
	adrp	x9, _SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNDRV_PCM_ACCESS_RW_NONINTERLEAVED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldrsw	x8, [x23]
	udiv	x9, x22, x8
	msub	x0, x9, x8, x22
	bl	_snd_BUG_ON
	cbz	x0, LBB0_23
LBB0_16:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_17:
	mov	w12, #0
	add	x13, x9, #1
	and	x11, x13, #0x1fffffffc
	add	x9, x24, x11, lsl #5
	lsl	w14, w20, #2
	lsl	w15, w20, #1
	add	w16, w15, w20
	add	x17, x24, #64
	mov	w1, #1
	mov	x2, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	stp	w19, w1, [x17, #-64]
	stp	w19, w1, [x17, #-32]
	stp	w19, w1, [x17]
	stp	w19, w1, [x17, #32]
	stp	x0, xzr, [x17, #-48]
	stp	x0, xzr, [x17, #-16]
	stp	x0, xzr, [x17, #16]
	stp	x0, xzr, [x17, #48]
	add	w3, w20, w12
	add	w4, w15, w12
	add	w5, w16, w12
	stp	w12, w8, [x17, #-56]
	stp	w3, w8, [x17, #-24]
	stp	w4, w8, [x17, #8]
	add	w12, w12, w14
	stp	w5, w8, [x17, #40]
	add	x17, x17, #128
	subs	x2, x2, #4
	b.ne	LBB0_18
; %bb.19:
	cmp	x13, x11
	b.eq	LBB0_22
LBB0_20:
	sub	w10, w10, w11
	mul	w11, w20, w11
	mov	w12, #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	stp	w19, w12, [x9]
	stp	w11, w8, [x9, #8]
	add	w11, w11, w20
	stp	x0, xzr, [x9, #16]
	add	x9, x9, #32
	subs	w10, w10, #1
	b.ne	LBB0_21
LBB0_22:
	mov	w0, #0
	b	LBB0_5
LBB0_23:
	ldrsw	x9, [x23]
	cbz	w9, LBB0_22
; %bb.24:
	and	x12, x9, #0xffffffff
	ldr	x8, [x21, #24]
	udiv	x9, x22, x9
	cmp	w12, #4
	b.hs	LBB0_26
; %bb.25:
	mov	x10, #0
	mov	x11, x24
	b	LBB0_29
LBB0_26:
	mov	x13, #0
	and	x10, x12, #0xfffffffc
	add	x11, x24, x10, lsl #5
	add	x14, x24, #64
	mov	w15, #1
	mov	x16, x10
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	orr	x17, x13, #0x1
	stur	w19, [x14, #-64]
	orr	x0, x13, #0x2
	orr	x1, x13, #0x3
	stur	w19, [x14, #-32]
	str	w19, [x14]
	str	w19, [x14, #32]
	stur	x15, [x14, #-60]
	stur	x15, [x14, #-28]
	stur	x15, [x14, #4]
	stur	x15, [x14, #36]
	madd	x2, x9, x13, x8
	madd	x17, x9, x17, x8
	madd	x0, x9, x0, x8
	madd	x1, x9, x1, x8
	stp	x2, xzr, [x14, #-48]
	stp	x17, xzr, [x14, #-16]
	stp	x0, xzr, [x14, #16]
	stp	x1, xzr, [x14, #48]
	stur	w20, [x14, #-52]
	stur	w20, [x14, #-20]
	add	x13, x13, #4
	str	w20, [x14, #12]
	str	w20, [x14, #44]
	add	x14, x14, #128
	subs	x16, x16, #4
	b.ne	LBB0_27
; %bb.28:
	cmp	x10, x12
	b.eq	LBB0_22
LBB0_29:
	sub	x12, x12, x10
Lloh15:
	adrp	x13, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x13, lCPI0_0@PAGEOFF]
	mov	w0, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	str	w19, [x11]
	madd	x13, x9, x10, x8
	stp	x13, xzr, [x11, #16]
	stur	d0, [x11, #4]
	str	w20, [x11, #12]
	add	x10, x10, #1
	add	x11, x11, #32
	subs	x12, x12, #1
	b.ne	LBB0_30
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_PCM_ACCESS_RW_INTERLEAVED,8,3 ; @SNDRV_PCM_ACCESS_RW_INTERLEAVED
	.comm	_SNDRV_PCM_ACCESS_RW_NONINTERLEAVED,8,3 ; @SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_pcm_plugin_alloc
.subsections_via_symbols
