	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_check_modify_qp           ## -- Begin function hfi1_check_modify_qp
	.p2align	4, 0x90
_hfi1_check_modify_qp:                  ## @hfi1_check_modify_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
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_idev
	movq	%rax, %rdi
	callq	_dd_from_dev
	movq	%rax, %r15
	movq	_IB_QP_AV@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	leaq	4(%r12), %rsi
	callq	_ah_to_sc
	cmpl	$15, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_qp_to_sdma_engine
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qp_to_send_context
	testl	%eax, %eax
	je	LBB0_10
LBB0_5:
	movq	_IB_QP_ALT_PATH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.6:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_ah_to_sc
	cmpl	$15, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_qp_to_sdma_engine
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_HFI1_HAS_SEND_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qp_to_send_context
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_3:
	movq	_HFI1_HAS_SEND_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_AV,4,2                   ## @IB_QP_AV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HFI1_HAS_SEND_DMA,4,2          ## @HFI1_HAS_SEND_DMA
	.comm	_IB_QP_ALT_PATH,4,2             ## @IB_QP_ALT_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_check_modify_qp           ; -- Begin function hfi1_check_modify_qp
	.p2align	2
_hfi1_check_modify_qp:                  ; @hfi1_check_modify_qp
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_idev
	bl	_dd_from_dev
	mov	x20, x0
Lloh0:
	adrp	x8, _IB_QP_AV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_AV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x19]
	add	x1, x21, #4
	bl	_ah_to_sc
	cmp	w0, #15
	b.eq	LBB0_11
; %bb.2:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_qp_to_sdma_engine
	cbz	w0, LBB0_10
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	bl	_qp_to_send_context
	cbz	w0, LBB0_11
LBB0_4:
Lloh3:
	adrp	x8, _IB_QP_ALT_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_ALT_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.5:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ah_to_sc
	cmp	w0, #15
	b.eq	LBB0_11
; %bb.6:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_qp_to_sdma_engine
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _HFI1_HAS_SEND_DMA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HFI1_HAS_SEND_DMA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_qp_to_send_context
	cbz	w0, LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _HFI1_HAS_SEND_DMA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HFI1_HAS_SEND_DMA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_11:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_AV,4,2                   ; @IB_QP_AV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HFI1_HAS_SEND_DMA,4,2          ; @HFI1_HAS_SEND_DMA
	.comm	_IB_QP_ALT_PATH,4,2             ; @IB_QP_ALT_PATH
.subsections_via_symbols
