	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_unused_channel
_acquire_unused_channel:                ## @acquire_unused_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
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movl	24(%rdi), %edi
	movl	%ebx, %esi
	callq	_find_first_zero_bit
	cmpl	%ebx, %eax
	jae	LBB0_1
## %bb.2:
	movq	16(%r14), %rcx
	movl	%eax, %ebx
	movl	%eax, (%rcx,%rbx,4)
	shlq	$2, %rbx
	movl	24(%r14), %esi
	movl	%eax, %edi
	callq	_set_bit
	addq	16(%r14), %rbx
	jmp	LBB0_3
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find free channel\n"

	.no_dead_strip	_acquire_unused_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_unused_channel
_acquire_unused_channel:                ; @acquire_unused_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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	ldr	w0, [x0, #24]
	mov	x1, x20
	bl	_find_first_zero_bit
	cmp	w0, w20
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	mov	w9, w0
	lsl	x20, x9, #2
	str	w0, [x8, x20]
	ldr	w1, [x19, #24]
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find free channel\n"

	.no_dead_strip	_acquire_unused_channel
.subsections_via_symbols
