	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_unbind_qpn        ## -- Begin function rdma_counter_unbind_qpn
	.p2align	4, 0x90
_rdma_counter_unbind_qpn:               ## @rdma_counter_unbind_qpn
	.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
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rdma_is_port_valid
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rdma_counter_get_qp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_rdma_is_port_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	%r14, (%r15)
	jne	LBB0_7
LBB0_8:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	cmpq	%r12, (%rax)
	jne	LBB0_7
## %bb.10:
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	_RDMA_COUNTER_MODE_MANUAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rdma_counter_unbind_qp
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_rdma_restrack_put
	jmp	LBB0_13
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ## @RDMA_COUNTER_MODE_MANUAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_unbind_qpn        ; -- Begin function rdma_counter_unbind_qpn
	.p2align	2
_rdma_counter_unbind_qpn:               ; @rdma_counter_unbind_qpn
	.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, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_rdma_is_port_valid
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_counter_get_qp
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	x1, [x0]
	mov	x0, x21
	bl	_rdma_is_port_valid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ne	LBB0_9
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
Lloh0:
	adrp	x9, _RDMA_COUNTER_MODE_MANUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_COUNTER_MODE_MANUAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_rdma_counter_unbind_qp
	mov	x20, x0
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	add	x0, x19, #8
	bl	_rdma_restrack_put
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ; @RDMA_COUNTER_MODE_MANUAL
.subsections_via_symbols
