	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_allocate_pcm_channel
_snd_trident_allocate_pcm_channel:      ## @snd_trident_allocate_pcm_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r10
	movl	$-1, %eax
	cmpq	8(%rdi), %r10
	jge	LBB0_10
## %bb.1:
	movq	16(%rdi), %r8
	movq	_T4D_BANK_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movl	(%r8,%r9,4), %r11d
	movl	$28, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%rdx), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %r11d
	jae	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%rdx), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %r11d
	jae	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rdx), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %r11d
	jae	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
	btl	%edx, %r11d
	jae	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-4, %edx
	cmpl	$-4, %edx
	jne	LBB0_2
LBB0_10:
	popq	%rbp
	retq
LBB0_3:
	addl	$3, %edx
	jmp	LBB0_5
LBB0_11:
	addl	$2, %edx
	jmp	LBB0_5
LBB0_4:
	incl	%edx
LBB0_5:
	orl	%esi, %r11d
	movl	%r11d, (%r8,%r9,4)
	incq	%r10
	movq	%r10, (%rdi)
	addl	$32, %edx
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_BANK_B,8,3                 ## @T4D_BANK_B
	.no_dead_strip	_snd_trident_allocate_pcm_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_trident_allocate_pcm_channel
_snd_trident_allocate_pcm_channel:      ; @snd_trident_allocate_pcm_channel
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
Lloh0:
	adrp	x10, _T4D_BANK_B@GOTPAGE
Lloh1:
	ldr	x10, [x10, _T4D_BANK_B@GOTPAGEOFF]
	ldr	x9, [x0, #16]
Lloh2:
	ldr	x10, [x10]
	ldr	w12, [x9, x10, lsl #2]
	mov	w11, #31
	mov	w13, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w14, w13, w11
	tst	w12, w14
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w11, #1
	cmn	w11, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #-1
	ret
LBB0_5:
	orr	w12, w12, w14
	str	w12, [x9, x10, lsl #2]
	add	x8, x8, #1
	str	x8, [x0]
	add	w0, w11, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_BANK_B,8,3                 ; @T4D_BANK_B
	.no_dead_strip	_snd_trident_allocate_pcm_channel
.subsections_via_symbols
