	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_free_slot
_find_free_slot:                        ## @find_free_slot
	.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
	movq	%rdx, %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %rbx
	movq	(%rdi), %r13
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r13,%rbx), %edi
	movq	_DLN2_MAX_RX_SLOTS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_find_first_zero_bit
	movl	%eax, (%r15)
	cmpl	(%r12), %eax
	jge	LBB0_4
## %bb.3:
	leaq	(%rbx,%r13), %rcx
	addq	$4, %rcx
	movq	8(%r13,%rbx), %r13
	movslq	%eax, %rbx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_set_bit
	movl	$1, (%r13,%rbx,4)
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %ecx
	xorl	%eax, %eax
	cmpl	(%r12), %ecx
	setl	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DLN2_MAX_RX_SLOTS,4,2          ## @DLN2_MAX_RX_SLOTS
	.no_dead_strip	_find_free_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_free_slot
_find_free_slot:                        ; @find_free_slot
	.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, x2
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x0]
	add	x20, x8, x1, lsl #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x23, x20
	ldr	w0, [x23, #4]!
Lloh3:
	adrp	x22, _DLN2_MAX_RX_SLOTS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DLN2_MAX_RX_SLOTS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_find_first_zero_bit
	str	w0, [x19]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x24, [x20, #8]
	ldr	w1, [x23]
	bl	_set_bit
	mov	w8, #1
	str	w8, [x24, w21, sxtw #2]
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, lt
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DLN2_MAX_RX_SLOTS,4,2          ; @DLN2_MAX_RX_SLOTS
	.no_dead_strip	_find_free_slot
.subsections_via_symbols
