	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_bind_qp_auto      ## -- Begin function rdma_counter_bind_qp_auto
	.p2align	4, 0x90
_rdma_counter_bind_qp_auto:             ## @rdma_counter_bind_qp_auto
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r12), %rcx
	movq	%rbx, %r13
	shlq	$4, %r13
	movq	(%rcx,%r13), %rax
	movq	_RDMA_COUNTER_MODE_AUTO@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	cmpq	(%rdx), %rax
	jne	LBB0_12
## %bb.4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rdma_get_counter_auto_mode
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	___rdma_counter_bind_qp
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %ebx
	movq	_counter_release@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kref_put
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_RDMA_COUNTER_MODE_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rdma_counter_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_auto_mode_init_counter
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___rdma_counter_bind_qp
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_rdma_counter_free
	movl	%r12d, %r14d
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rdma_counter_res_add
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_COUNTER_MODE_AUTO,8,3     ## @RDMA_COUNTER_MODE_AUTO
	.comm	_counter_release,4,2            ## @counter_release
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_counter_bind_qp_auto      ; -- Begin function rdma_counter_bind_qp_auto
	.p2align	2
_rdma_counter_bind_qp_auto:             ; @rdma_counter_bind_qp_auto
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x23, [x21]
	lsl	x8, x20, #4
	ldr	x8, [x23, x8]
Lloh0:
	adrp	x24, _RDMA_COUNTER_MODE_AUTO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RDMA_COUNTER_MODE_AUTO@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_rdma_get_counter_auto_mode
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	mov	x1, x19
	bl	___rdma_counter_bind_qp
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _counter_release@GOTPAGE
Lloh3:
	ldr	x8, [x8, _counter_release@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kref_put
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x2, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_rdma_counter_alloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x21, x0
	add	x8, x23, x20, lsl #4
	ldr	w2, [x8, #8]
	mov	x1, x19
	bl	_auto_mode_init_counter
	mov	x0, x21
	mov	x1, x19
	bl	___rdma_counter_bind_qp
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x21
	bl	_rdma_counter_free
	b	LBB0_8
LBB0_12:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_counter_res_add
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_COUNTER_MODE_AUTO,8,3     ; @RDMA_COUNTER_MODE_AUTO
	.comm	_counter_release,4,2            ; @counter_release
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
