	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_channel
_alloc_channel:                         ## @alloc_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movl	$1, %ebx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movl	$2, %ebx
	movl	$2, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	movl	$3, %ebx
	movl	$3, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movl	$4, %ebx
	movl	$4, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movl	$5, %ebx
	movl	$5, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movl	$6, %ebx
	movl	$6, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movl	$7, %ebx
	movl	$7, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movl	$8, %ebx
	movl	$8, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movl	$9, %ebx
	movl	$9, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movl	$10, %ebx
	movl	$10, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	$11, %ebx
	movl	$11, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	$12, %ebx
	movl	$12, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	$13, %ebx
	movl	$13, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	$14, %ebx
	movl	$14, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	$15, %edi
	movq	%r14, %rsi
	callq	___test_and_set_bit
	cmpl	$1, %eax
	movl	$16, %ebx
	sbbl	$0, %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alloc_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_channel
_alloc_channel:                         ; @alloc_channel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w0, #0
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_16
; %bb.1:
	mov	w19, #1
	mov	w0, #1
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.2:
	mov	w19, #2
	mov	w0, #2
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.3:
	mov	w19, #3
	mov	w0, #3
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.4:
	mov	w19, #4
	mov	w0, #4
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.5:
	mov	w19, #5
	mov	w0, #5
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.6:
	mov	w19, #6
	mov	w0, #6
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.7:
	mov	w19, #7
	mov	w0, #7
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.8:
	mov	w19, #8
	mov	w0, #8
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.9:
	mov	w19, #9
	mov	w0, #9
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.10:
	mov	w19, #10
	mov	w0, #10
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.11:
	mov	w19, #11
	mov	w0, #11
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.12:
	mov	w19, #12
	mov	w0, #12
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.13:
	mov	w19, #13
	mov	w0, #13
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.14:
	mov	w19, #14
	mov	w0, #14
	mov	x1, x20
	bl	___test_and_set_bit
	cbz	w0, LBB0_17
; %bb.15:
	mov	w19, #15
	mov	w0, #15
	mov	x1, x20
	bl	___test_and_set_bit
	cmp	w0, #0
	cinc	w19, w19, ne
	b	LBB0_17
LBB0_16:
	mov	w19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alloc_channel
.subsections_via_symbols
