	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_query_qp               ## -- Begin function ibv_cmd_query_qp
	.p2align	4, 0x90
_ibv_cmd_query_qp:                      ## @ibv_cmd_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
	subq	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IBV_QP_DEST_QPN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	negl	%eax
	testl	%edx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r9, %r12
	movq	%r8, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_QUERY_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-256(%rbp), %rcx
	movq	%r8, %rdi
	movq	%r9, %rsi
	movl	$196, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	32(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_write
	cmpq	%r12, %rax
	jne	LBB0_4
## %bb.3:
	leaq	-256(%rbp), %rdi
	movl	$196, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	-64(%rbp), %eax
	movl	%eax, 188(%r13)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 172(%r13)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, 156(%r13)
	movaps	-112(%rbp), %xmm0
	movups	%xmm0, 140(%r13)
	movaps	-128(%rbp), %xmm0
	movups	%xmm0, 124(%r13)
	movaps	-144(%rbp), %xmm0
	movups	%xmm0, 108(%r13)
	movl	-236(%rbp), %eax
	movl	%eax, 104(%r13)
	movups	-252(%rbp), %xmm0
	movups	%xmm0, 88(%r13)
	movl	80(%r13), %edi
	movl	-148(%rbp), %esi
	movl	$16, %edx
	callq	_memcpy
	movl	-152(%rbp), %eax
	movl	%eax, 76(%r13)
	movl	-156(%rbp), %eax
	movl	%eax, 84(%r13)
	movups	-172(%rbp), %xmm0
	movups	%xmm0, 60(%r13)
	movups	-188(%rbp), %xmm0
	movups	%xmm0, 44(%r13)
	movl	36(%r13), %edi
	movl	-192(%rbp), %esi
	movl	$16, %edx
	callq	_memcpy
	movl	-196(%rbp), %eax
	movl	%eax, 32(%r13)
	movl	-200(%rbp), %eax
	movl	%eax, 40(%r13)
	movups	-216(%rbp), %xmm0
	movups	%xmm0, 16(%r13)
	movups	-232(%rbp), %xmm0
	movups	%xmm0, (%r13)
	movl	16(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 40(%rcx)
	movl	12(%r15), %eax
	movl	%eax, 36(%rcx)
	movl	8(%r15), %eax
	movl	%eax, 32(%rcx)
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	movsd	-240(%rbp), %xmm1               ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 16(%rcx)
	movaps	-256(%rbp), %xmm0
	movups	%xmm0, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_QP_DEST_QPN,4,2            ## @IBV_QP_DEST_QPN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_QUERY_QP,4,2                   ## @QUERY_QP
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_query_qp               ; -- Begin function ibv_cmd_query_qp
	.p2align	2
_ibv_cmd_query_qp:                      ; @ibv_cmd_query_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
Lloh0:
	adrp	x8, _IBV_QP_DEST_QPN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_QP_DEST_QPN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8, lsl #1
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh5:
	adrp	x8, _QUERY_QP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QUERY_QP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x4
	mov	x1, x5
	mov	w4, #196
	bl	_IBV_INIT_CMD_RESP
	ldr	w8, [x20, #32]
	stp	w24, w8, [x23]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x22
	bl	_write
	cmp	x0, x22
	b.ne	LBB0_4
; %bb.3:
	mov	x0, sp
	mov	w1, #196
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	q0, [sp, #176]
	stur	q0, [x21, #172]
	ldp	q1, q0, [sp, #144]
	stur	q0, [x21, #156]
	stur	q1, [x21, #140]
	ldp	q1, q0, [sp, #112]
	stur	q0, [x21, #124]
	ldr	w8, [sp, #192]
	str	w8, [x21, #188]
	stur	q1, [x21, #108]
	ldr	w8, [sp, #20]
	ldr	w1, [sp, #108]
	str	w8, [x21, #104]
	ldur	q0, [sp, #4]
	stur	q0, [x21, #88]
	ldr	w0, [x21, #80]
	mov	w2, #16
	bl	_memcpy
	ldp	w9, w8, [sp, #100]
	str	w8, [x21, #76]
	str	w9, [x21, #84]
	ldur	q0, [sp, #84]
	stur	q0, [x21, #60]
	ldur	q0, [sp, #68]
	stur	q0, [x21, #44]
	ldr	w0, [x21, #36]
	ldr	w1, [sp, #64]
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	ldp	w9, w8, [sp, #56]
	str	w8, [x21, #32]
	str	w9, [x21, #40]
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #24]
	stp	q1, q0, [x21]
	ldr	w8, [x20, #16]
	str	w8, [x19, #40]
	ldr	d0, [x20, #8]
	str	d0, [x19, #32]
	ldr	d0, [x20]
	ldr	d1, [sp, #16]
	mov.d	v1[1], v0[0]
	ldr	q0, [sp]
	stp	q0, q1, [x19]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_QP_DEST_QPN,4,2            ; @IBV_QP_DEST_QPN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_QUERY_QP,4,2                   ; @QUERY_QP
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
