	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_transport_unrsrv_port    ## -- Begin function usnic_transport_unrsrv_port
	.p2align	4, 0x90
_usnic_transport_unrsrv_port:           ## @usnic_transport_unrsrv_port
	.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, %r14d
	movl	%edi, %ebx
	movq	_USNIC_TRANSPORT_ROCE_CUSTOM@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	_roce_bitmap_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	_roce_bitmap@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_bitmap_clear
	movl	%ebx, %edi
	callq	_usnic_transport_to_str
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_usnic_dbg
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usnic_err                      ## TAILCALL
LBB0_2:
	movl	%ebx, %edi
	callq	_usnic_transport_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_usnic_err
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %edi
	callq	_usnic_transport_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_usnic_err
LBB0_6:
	movq	_roce_bitmap_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USNIC_TRANSPORT_ROCE_CUSTOM,4,2 ## @USNIC_TRANSPORT_ROCE_CUSTOM
	.comm	_roce_bitmap_lock,4,2           ## @roce_bitmap_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unreserved invalid port num 0 for %s\n"

	.comm	_roce_bitmap,4,2                ## @roce_bitmap
L_.str.1:                               ## @.str.1
	.asciz	"Unreserving invalid %hu for %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Freeing port %hu for %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Freeing invalid port %hu for %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_transport_unrsrv_port    ; -- Begin function usnic_transport_unrsrv_port
	.p2align	2
_usnic_transport_unrsrv_port:           ; @usnic_transport_unrsrv_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _USNIC_TRANSPORT_ROCE_CUSTOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USNIC_TRANSPORT_ROCE_CUSTOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x0, _roce_bitmap_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _roce_bitmap_lock@GOTPAGEOFF]
	bl	_spin_lock
	cbz	w19, LBB0_5
; %bb.2:
Lloh5:
	adrp	x21, _roce_bitmap@GOTPAGE
Lloh6:
	ldr	x21, [x21, _roce_bitmap@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #1
	bl	_bitmap_clear
	mov	x0, x20
	bl	_usnic_transport_to_str
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_usnic_dbg
	b	LBB0_8
LBB0_4:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_usnic_err
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x20
	bl	_usnic_transport_to_str
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_usnic_transport_to_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
LBB0_7:
	bl	_usnic_err
LBB0_8:
Lloh15:
	adrp	x0, _roce_bitmap_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _roce_bitmap_lock@GOTPAGEOFF]
	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
	add	sp, sp, #64
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_USNIC_TRANSPORT_ROCE_CUSTOM,4,2 ; @USNIC_TRANSPORT_ROCE_CUSTOM
	.comm	_roce_bitmap_lock,4,2           ; @roce_bitmap_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unreserved invalid port num 0 for %s\n"

	.comm	_roce_bitmap,4,2                ; @roce_bitmap
l_.str.1:                               ; @.str.1
	.asciz	"Unreserving invalid %hu for %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Freeing port %hu for %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Freeing invalid port %hu for %d\n"

.subsections_via_symbols
