	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_free_stid                ## -- Begin function cxgb4_free_stid
	.p2align	4, 0x90
_cxgb4_free_stid:                       ## @cxgb4_free_stid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	cmpl	%r12d, %eax
	jbe	LBB0_2
LBB0_3:
	subl	48(%rbx), %r12d
	jmp	LBB0_4
LBB0_2:
	subl	%eax, %r12d
	addl	4(%rbx), %r12d
LBB0_4:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	40(%rbx), %esi
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	callq	___clear_bit
	jmp	LBB0_7
LBB0_6:
	movl	%esi, %edi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_bitmap_release_region
LBB0_7:
	movq	32(%rbx), %rax
	movl	%r12d, %ecx
	movq	$0, (%rax,%rcx,8)
	cmpl	4(%rbx), %r12d
	jae	LBB0_11
## %bb.8:
	movq	_PF_INET6@GOTPCREL(%rip), %rcx
	movq	24(%rbx), %rax
	cmpl	%r14d, (%rcx)
	jne	LBB0_10
## %bb.9:
	addq	$-2, %rax
	movq	%rax, 24(%rbx)
	addl	$-2, 8(%rbx)
	jmp	LBB0_12
LBB0_11:
	decl	16(%rbx)
	jmp	LBB0_12
LBB0_10:
	decq	%rax
	movq	%rax, 24(%rbx)
LBB0_12:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_free_stid                ; -- Begin function cxgb4_free_stid
	.p2align	2
_cxgb4_free_stid:                       ; @cxgb4_free_stid
	.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	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w1
	b.ls	LBB0_3
LBB0_2:
	ldr	w8, [x19, #48]
	sub	w22, w1, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [x19, #4]
	sub	w8, w1, w8
	add	w22, w8, w9
LBB0_4:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_bh
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [x19, #40]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x22
	bl	___clear_bit
	b	LBB0_7
LBB0_6:
	mov	x0, x1
	mov	x1, x22
	mov	w2, #1
	bl	_bitmap_release_region
LBB0_7:
	ldr	x8, [x19, #32]
	str	xzr, [x8, w22, uxtw #3]
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.hs	LBB0_10
; %bb.8:
Lloh3:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	x8, [x19, #24]
	cmp	w9, w20
	b.ne	LBB0_11
; %bb.9:
	sub	x8, x8, #2
	str	x8, [x19, #24]
	ldr	w8, [x19, #8]
	sub	w8, w8, #2
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_10:
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_12
LBB0_11:
	sub	x8, x8, #1
	str	x8, [x19, #24]
LBB0_12:
	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
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
.subsections_via_symbols
