	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_qp_attr
_query_qp_attr:                         ## @query_qp_attr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_query_qp_out@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	12(%r13), %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	movq	%rax, %r13
	callq	_mlx5_core_qp_query
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movq	_qpc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r15
	movl	52(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	sarl	$28, %ebx
	movl	%ebx, %edi
	callq	_to_ib_qp_state
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 8(%r14)
	movl	(%r15), %eax
	sarl	$5, %eax
	movl	%eax, (%r12)
	movl	52(%r15), %edi
	callq	_be32_to_cpu
	shrl	$11, %eax
	andl	$3, %eax
	movl	%eax, %edi
	callq	_to_ib_mig_state
	movl	%eax, 88(%r12)
	movl	48(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, 4(%r12)
	movl	32(%r15), %edi
	callq	_be32_to_cpu
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 8(%r12)
	movl	44(%r15), %edi
	callq	_be32_to_cpu
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 12(%r12)
	movl	40(%r15), %edi
	callq	_be32_to_cpu
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 16(%r12)
	movl	36(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_to_ib_qp_access_flags
	movl	%eax, 84(%r12)
	movq	(%r14), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	leaq	80(%r12), %rsi
	leaq	20(%r15), %rdx
	movl	%ebx, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_to_rdma_ah_attr
	leaq	64(%r12), %r13
	movq	%r15, %rdx
	addq	$4, %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ebx
	movq	%r13, %rsi
	callq	_to_rdma_ah_attr
	movl	12(%r15), %edi
	callq	_be16_to_cpu
	movq	%rax, 72(%r12)
	movq	%r13, %rdi
	callq	_rdma_ah_get_port_num
	movl	%eax, 68(%r12)
LBB0_6:
	movl	28(%r15), %edi
	callq	_be16_to_cpu
	movq	%rax, 56(%r12)
	movl	24(%r15), %eax
	movl	%eax, 52(%r12)
	movq	_MLX5_QP_STATE_SQ_DRAINING@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %ebx
	sete	%cl
	movl	%ecx, 20(%r12)
	movl	16(%r15), %edi
	callq	_be32_to_cpu
	shrl	$21, %eax
	andb	$7, %al
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$1, %ebx
	movl	%edx, 24(%r12)
	movl	36(%r15), %edi
	callq	_be32_to_cpu
	shrl	$21, %eax
	andb	$7, %al
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, 28(%r12)
	movl	32(%r15), %edi
	callq	_be32_to_cpu
	shrl	$24, %eax
	andl	$31, %eax
	movl	%eax, 32(%r12)
	movl	20(%r15), %eax
	sarl	$3, %eax
	movl	%eax, 36(%r12)
	movl	16(%r15), %edi
	callq	_be32_to_cpu
	shrl	$16, %eax
	andl	$7, %eax
	movl	%eax, 40(%r12)
	movl	16(%r15), %edi
	callq	_be32_to_cpu
	shrl	$13, %eax
	andl	$7, %eax
	movl	%eax, 44(%r12)
	movl	4(%r15), %eax
	sarl	$3, %eax
	movl	%eax, 48(%r12)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_query_qp_out,4,2               ## @query_qp_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qpc,4,2                        ## @qpc
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ## @IB_QPT_UC
	.comm	_MLX5_QP_STATE_SQ_DRAINING,4,2  ## @MLX5_QP_STATE_SQ_DRAINING
	.no_dead_strip	_query_qp_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_qp_attr
_query_qp_attr:                         ; @query_qp_attr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x25, x1
	mov	x23, x0
Lloh0:
	adrp	x22, _query_qp_out@GOTPAGE
Lloh1:
	ldr	x22, [x22, _query_qp_out@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MLX5_ST_SZ_BYTES
	mov	x21, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w0, [x23]
	add	x1, x25, #12
	mov	x2, x20
	mov	x3, x21
	bl	_mlx5_core_qp_query
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _qpc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qpc@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	w0, [x0, #52]
	bl	_be32_to_cpu
	asr	w24, w0, #28
	mov	x0, x24
	bl	_to_ib_qp_state
	str	w0, [x25, #8]
	ldr	w8, [x22]
	asr	w8, w8, #5
	str	w8, [x19]
	ldr	w0, [x22, #52]
	bl	_be32_to_cpu
	ubfx	w0, w0, #11, #2
	bl	_to_ib_mig_state
	str	w0, [x19, #88]
	ldr	w0, [x22, #48]
	bl	_be32_to_cpu
	str	w0, [x19, #4]
	ldr	w0, [x22, #32]
	bl	_be32_to_cpu
	and	w8, w0, #0xffffff
	str	w8, [x19, #8]
	ldr	w0, [x22, #44]
	bl	_be32_to_cpu
	and	w8, w0, #0xffffff
	str	w8, [x19, #12]
	ldr	w0, [x22, #40]
	bl	_be32_to_cpu
	and	w8, w0, #0xffffff
	str	w8, [x19, #16]
	ldr	w0, [x22, #36]
	bl	_be32_to_cpu
	bl	_to_ib_qp_access_flags
	str	w0, [x19, #84]
	ldr	x8, [x25]
Lloh8:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x9, _IB_QPT_UC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_QPT_UC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	add	x1, x19, #80
	add	x2, x22, #20
	mov	x0, x23
	bl	_to_rdma_ah_attr
	add	x25, x19, #64
	add	x2, x22, #4
	mov	x0, x23
	mov	x1, x25
	bl	_to_rdma_ah_attr
	ldr	w0, [x22, #12]
	bl	_be16_to_cpu
	str	x0, [x19, #72]
	mov	x0, x25
	bl	_rdma_ah_get_port_num
	str	w0, [x19, #68]
LBB0_5:
	ldr	w0, [x22, #28]
	bl	_be16_to_cpu
	str	x0, [x19, #56]
	ldr	w8, [x22, #24]
Lloh14:
	adrp	x9, _MLX5_QP_STATE_SQ_DRAINING@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MLX5_QP_STATE_SQ_DRAINING@GOTPAGEOFF]
	str	w8, [x19, #52]
Lloh16:
	ldr	w8, [x9]
	cmp	w24, w8
	cset	w8, eq
	str	w8, [x19, #20]
	ldr	w0, [x22, #16]
	bl	_be32_to_cpu
	ubfx	w8, w0, #21, #3
	mov	w23, #1
	lsl	w8, w23, w8
	str	w8, [x19, #24]
	ldr	w0, [x22, #36]
	bl	_be32_to_cpu
	ubfx	w8, w0, #21, #3
	lsl	w8, w23, w8
	str	w8, [x19, #28]
	ldr	w0, [x22, #32]
	bl	_be32_to_cpu
	ubfx	w8, w0, #24, #5
	ldp	w0, w9, [x22, #16]
	asr	w9, w9, #3
	stp	w8, w9, [x19, #32]
	bl	_be32_to_cpu
	ubfx	w8, w0, #16, #3
	str	w8, [x19, #40]
	ldr	w0, [x22, #16]
	bl	_be32_to_cpu
	ubfx	w8, w0, #13, #3
	ldr	w9, [x22, #4]
	asr	w9, w9, #3
	stp	w8, w9, [x19, #44]
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_query_qp_out,4,2               ; @query_qp_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qpc,4,2                        ; @qpc
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ; @IB_QPT_UC
	.comm	_MLX5_QP_STATE_SQ_DRAINING,4,2  ; @MLX5_QP_STATE_SQ_DRAINING
	.no_dead_strip	_query_qp_attr
.subsections_via_symbols
