	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_query_qp              ## -- Begin function usnic_ib_query_qp
	.p2align	4, 0x90
_usnic_ib_query_qp:                     ## @usnic_ib_query_qp
	.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	%rcx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_usnic_dbg
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_to_uqp_grp
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	(%r12), %rdi
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdi
	callq	_usnic_dbg
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	movl	%eax, 4(%r15)
	movl	(%rbx), %esi
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.1:
	movl	$0, (%r15)
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_usnic_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movq	(%r12), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected qp_type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_ib_query_qp              ; -- Begin function usnic_ib_query_qp
	.p2align	2
_usnic_ib_query_qp:                     ; @usnic_ib_query_qp
	.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, x3
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_usnic_dbg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x21
	bl	_to_uqp_grp
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x0, [x21]
	bl	_mutex_lock
	mov	x0, x22
	bl	_usnic_dbg
	ldp	w1, w8, [x20]
	stp	w8, w8, [x19, #4]
	cmp	w1, #128
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	str	wzr, [x19]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_usnic_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	ldr	x0, [x21]
	bl	_mutex_unlock
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected qp_type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
