	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_alloc_sftid              ## -- Begin function cxgb4_alloc_sftid
	.p2align	4, 0x90
_cxgb4_alloc_sftid:                     ## @cxgb4_alloc_sftid
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	$-1, %r12d
	cmpl	%r13d, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %edx
	movl	32(%rbx), %edi
	movl	4(%rbx), %esi
	addl	%edx, %esi
	callq	_find_next_zero_bit
	movl	%eax, %r13d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	cmpl	%eax, %r13d
	jge	LBB0_5
## %bb.2:
	movl	32(%rbx), %esi
	movl	%r13d, %edi
	callq	___set_bit
	testl	%r13d, %r13d
	js	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movl	%r13d, %ecx
	movq	%r15, (%rax,%rcx,8)
	movl	(%rbx), %eax
	subl	%eax, %r13d
	addl	16(%rbx), %r13d
	incl	12(%rbx)
LBB0_4:
	movl	%r13d, %r12d
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_alloc_sftid              ; -- Begin function cxgb4_alloc_sftid
	.p2align	2
_cxgb4_alloc_sftid:                     ; @cxgb4_alloc_sftid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_bh
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x20, #32]
	ldp	w2, w8, [x20]
	add	w1, w8, w2
	bl	_find_next_zero_bit
	ldp	w8, w9, [x20]
	add	w8, w9, w8
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w1, [x20, #32]
	bl	___set_bit
	tbnz	w21, #31, LBB0_5
; %bb.3:
	ldr	x8, [x20, #24]
	str	x22, [x8, w21, uxtw #3]
	ldr	w8, [x20]
	ldp	w10, w9, [x20, #12]
	sub	w8, w21, w8
	add	w21, w8, w9
	add	w8, w10, #1
	str	w8, [x20, #12]
	b	LBB0_5
LBB0_4:
	mov	w21, #-1
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
.subsections_via_symbols
