	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_allocate_synth_channel
_snd_trident_allocate_synth_channel:    ## @snd_trident_allocate_synth_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), %r8
	movq	_T4D_BANK_A@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r8,%r9,4), %edx
	movl	$28, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%rax), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jae	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	2(%rax), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jae	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rax), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jae	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	btl	%eax, %edx
	jae	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$-4, %eax
	cmpl	$-4, %eax
	jne	LBB0_1
## %bb.6:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	addl	$3, %eax
	jmp	LBB0_11
LBB0_9:
	addl	$2, %eax
	jmp	LBB0_11
LBB0_10:
	incl	%eax
LBB0_11:
	orl	%esi, %edx
	movl	%edx, (%r8,%r9,4)
	incl	8(%rdi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_BANK_A,8,3                 ## @T4D_BANK_A
	.no_dead_strip	_snd_trident_allocate_synth_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_synth_channel
_snd_trident_allocate_synth_channel:    ; @snd_trident_allocate_synth_channel
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x10, _T4D_BANK_A@GOTPAGE
Lloh1:
	ldr	x10, [x10, _T4D_BANK_A@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x10, [x10]
	ldr	w11, [x9, x10, lsl #2]
	mov	w0, #31
	mov	w12, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w0
	tst	w11, w13
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w0, w0, #1
	cmn	w0, #1
	b.ne	LBB0_1
; %bb.3:
	ret
LBB0_4:
	orr	w11, w11, w13
	str	w11, [x9, x10, lsl #2]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_BANK_A,8,3                 ; @T4D_BANK_A
	.no_dead_strip	_snd_trident_allocate_synth_channel
.subsections_via_symbols
