	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_get_free_ftid            ## -- Begin function cxgb4_get_free_ftid
	.p2align	4, 0x90
_cxgb4_get_free_ftid:                   ## @cxgb4_get_free_ftid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_netdev2adap
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_PF_INET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_find_first_zero_bit
	cmpl	4(%rbx), %eax
	movl	$-1, %r15d
	cmovll	%eax, %r15d
	jmp	LBB0_8
LBB0_2:
	movl	(%rbx), %edi
	callq	_is_t6
	movl	4(%rbx), %esi
	movl	12(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	$1, %edx
	callq	_bitmap_find_free_region
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	12(%rbx), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	jmp	LBB0_7
LBB0_5:
	movl	$2, %edx
	callq	_bitmap_find_free_region
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	12(%rbx), %edi
	movl	%r15d, %esi
	movl	$2, %edx
LBB0_7:
	callq	_bitmap_release_region
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	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_get_free_ftid            ; -- Begin function cxgb4_get_free_ftid
	.p2align	2
_cxgb4_get_free_ftid:                   ; @cxgb4_get_free_ftid
	.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	x21, x1
	bl	_netdev2adap
	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_2
; %bb.1:
	ldr	w0, [x20, #12]
	ldr	w1, [x20, #4]
	bl	_find_first_zero_bit
	ldr	w8, [x20, #4]
	cmp	w0, w8
	csinv	w21, w0, wzr, lt
	b	LBB0_8
LBB0_2:
	ldr	w0, [x20]
	bl	_is_t6
	mov	x8, x0
	ldr	w0, [x20, #12]
	ldr	w1, [x20, #4]
	cbz	x8, LBB0_5
; %bb.3:
	mov	w2, #1
	bl	_bitmap_find_free_region
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	w2, #1
	b	LBB0_7
LBB0_5:
	mov	w2, #2
	bl	_bitmap_find_free_region
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	w2, #2
LBB0_7:
	bl	_bitmap_release_region
LBB0_8:
	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
