	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c2_rnic_query
_c2_rnic_query:                         ## @c2_rnic_query
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_vq_req_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_CCWR_RNIC_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_c2_wr_set_id
	movq	%r14, -48(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_vq_req_get
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_vq_send_wr
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_vq_req_put
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_vq_wait_for_reply
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_c2_errno
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_10
LBB0_9:
	movl	60(%rbx), %edi
	callq	_be32_to_cpu
	movl	56(%rbx), %edi
	callq	_be32_to_cpu
	movl	52(%rbx), %edi
	callq	_be32_to_cpu
	leaq	220(%r15), %rdi
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	movl	$-1, 4(%r15)
	movq	_C2_MIN_PAGESIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	48(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 12(%r15)
	movl	44(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 16(%r15)
	movl	40(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 20(%r15)
	movl	36(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 24(%r15)
	movl	32(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 28(%r15)
	movl	(%r13), %eax
	movl	%eax, 216(%r15)
	movq	_C2_MAX_SGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 212(%r15)
	movq	_C2_MAX_SGE_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 208(%r15)
	movl	28(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 32(%r15)
	movl	24(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 36(%r15)
	movl	20(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 40(%r15)
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 44(%r15)
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 48(%r15)
	movq	$0, 200(%r15)
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 52(%r15)
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 56(%r15)
	movq	$0, 192(%r15)
	movq	_IB_ATOMIC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 184(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 168(%r15)
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 60(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r15)
	movups	%xmm0, 80(%r15)
	movups	%xmm0, 96(%r15)
	movups	%xmm0, 112(%r15)
	movups	%xmm0, 128(%r15)
	movups	%xmm0, 144(%r15)
	movq	$0, 160(%r15)
LBB0_10:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_vq_repbuf_free
LBB0_11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_vq_req_free
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CCWR_RNIC_QUERY,4,2            ## @CCWR_RNIC_QUERY
	.comm	_C2_MIN_PAGESIZE,4,2            ## @C2_MIN_PAGESIZE
	.comm	_C2_MAX_SGES,4,2                ## @C2_MAX_SGES
	.comm	_C2_MAX_SGE_RD,4,2              ## @C2_MAX_SGE_RD
	.comm	_IB_ATOMIC_NONE,4,2             ## @IB_ATOMIC_NONE
	.no_dead_strip	_c2_rnic_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c2_rnic_query
_c2_rnic_query:                         ; @c2_rnic_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	bl	_vq_req_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _CCWR_RNIC_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCWR_RNIC_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_c2_wr_set_id
	str	x20, [sp, #8]
	ldr	w8, [x19, #16]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_get
	mov	x1, sp
	mov	x0, x19
	bl	_vq_send_wr
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_put
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_vq_wait_for_reply
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x23, [x20]
	cbz	x23, LBB0_11
; %bb.6:
	mov	x0, x23
	bl	_c2_errno
	mov	x22, x0
	cbnz	w22, LBB0_8
LBB0_7:
	ldr	w0, [x23, #60]
	bl	_be32_to_cpu
	ldr	w0, [x23, #56]
	bl	_be32_to_cpu
	ldr	w0, [x23, #52]
	bl	_be32_to_cpu
	add	x0, x21, #220
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	w2, #6
	bl	_memcpy
Lloh6:
	adrp	x8, _C2_MIN_PAGESIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C2_MIN_PAGESIZE@GOTPAGEOFF]
	mov	w9, #-1
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	stp	w9, w8, [x21, #4]
	ldr	w0, [x23, #48]
	bl	_be32_to_cpu
	str	w0, [x21, #12]
	ldr	w0, [x23, #44]
	bl	_be32_to_cpu
	str	w0, [x21, #16]
	ldr	w0, [x23, #40]
	bl	_be32_to_cpu
	str	w0, [x21, #20]
	ldr	w0, [x23, #36]
	bl	_be32_to_cpu
	str	w0, [x21, #24]
	ldr	w0, [x23, #32]
	bl	_be32_to_cpu
	str	w0, [x21, #28]
	ldr	w8, [x19]
	str	w8, [x21, #216]
Lloh9:
	adrp	x8, _C2_MAX_SGES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C2_MAX_SGES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _C2_MAX_SGE_RD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _C2_MAX_SGE_RD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #208]
	ldr	w0, [x23, #28]
	bl	_be32_to_cpu
	str	w0, [x21, #32]
	ldr	w0, [x23, #24]
	bl	_be32_to_cpu
	str	w0, [x21, #36]
	ldr	w0, [x23, #20]
	bl	_be32_to_cpu
	str	w0, [x21, #40]
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
	str	w0, [x21, #44]
	ldr	w0, [x23, #12]
	bl	_be32_to_cpu
	str	w0, [x21, #48]
	str	xzr, [x21, #200]
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	str	w0, [x21, #52]
	ldr	w0, [x23, #4]
	bl	_be32_to_cpu
	str	w0, [x21, #56]
Lloh15:
	adrp	x8, _IB_ATOMIC_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_ATOMIC_NONE@GOTPAGEOFF]
	str	xzr, [x21, #192]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #184]
	stp	xzr, xzr, [x21, #168]
	ldr	w0, [x23]
	bl	_be32_to_cpu
	str	w0, [x21, #60]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21, #64]
	stp	q0, q0, [x21, #96]
	stp	q0, q0, [x21, #128]
	str	xzr, [x21, #160]
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	bl	_vq_repbuf_free
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_vq_req_free
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CCWR_RNIC_QUERY,4,2            ; @CCWR_RNIC_QUERY
	.comm	_C2_MIN_PAGESIZE,4,2            ; @C2_MIN_PAGESIZE
	.comm	_C2_MAX_SGES,4,2                ; @C2_MAX_SGES
	.comm	_C2_MAX_SGE_RD,4,2              ; @C2_MAX_SGE_RD
	.comm	_IB_ATOMIC_NONE,4,2             ; @IB_ATOMIC_NONE
	.no_dead_strip	_c2_rnic_query
.subsections_via_symbols
