	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_modify_qp                 ## -- Begin function hfi1_modify_qp
	.p2align	4, 0x90
_hfi1_modify_qp:                        ## @hfi1_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	_IB_QP_AV@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_ah_to_sc
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_qp_to_sdma_engine
	movq	%rax, 16(%r12)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_qp_to_send_context
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	callq	_qp_set_16b
LBB0_2:
	movq	_IB_QP_PATH_MIG_STATE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	movq	_IB_MIG_MIGRATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	_IB_MIG_ARMED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_HFI1_S_AHG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	24(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_ah_to_sc
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_qp_to_sdma_engine
	movq	%rax, 16(%r12)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_qp_to_send_context
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	callq	_qp_set_16b
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_opfn_qp_init                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_AV,4,2                   ## @IB_QP_AV
	.comm	_IB_QP_PATH_MIG_STATE,4,2       ## @IB_QP_PATH_MIG_STATE
	.comm	_IB_MIG_MIGRATED,8,3            ## @IB_MIG_MIGRATED
	.comm	_IB_MIG_ARMED,8,3               ## @IB_MIG_ARMED
	.comm	_HFI1_S_AHG_CLEAR,4,2           ## @HFI1_S_AHG_CLEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_modify_qp                 ; -- Begin function hfi1_modify_qp
	.p2align	2
_hfi1_modify_qp:                        ; @hfi1_modify_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, _IB_QP_AV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_AV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21, #24]
	add	x1, x21, #8
	bl	_ah_to_sc
	mov	x1, x0
	str	x0, [x22]
	mov	x0, x21
	bl	_qp_to_sdma_engine
	str	x0, [x22, #16]
	ldr	x1, [x22]
	mov	x0, x21
	bl	_qp_to_send_context
	str	x0, [x22, #8]
	mov	x0, x21
	bl	_qp_set_16b
LBB0_2:
Lloh3:
	adrp	x8, _IB_QP_PATH_MIG_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_PATH_MIG_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _IB_MIG_MIGRATED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_MIG_MIGRATED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _IB_MIG_ARMED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_MIG_ARMED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _HFI1_S_AHG_CLEAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HFI1_S_AHG_CLEAR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	str	w8, [x21, #12]
	ldr	w0, [x21, #24]
	add	x1, x21, #8
	bl	_ah_to_sc
	mov	x1, x0
	str	x0, [x22]
	mov	x0, x21
	bl	_qp_to_sdma_engine
	str	x0, [x22, #16]
	ldr	x1, [x22]
	mov	x0, x21
	bl	_qp_to_send_context
	str	x0, [x22, #8]
	mov	x0, x21
	bl	_qp_set_16b
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_opfn_qp_init
	.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	_IB_QP_PATH_MIG_STATE,4,2       ; @IB_QP_PATH_MIG_STATE
	.comm	_IB_MIG_MIGRATED,8,3            ; @IB_MIG_MIGRATED
	.comm	_IB_MIG_ARMED,8,3               ; @IB_MIG_ARMED
	.comm	_HFI1_S_AHG_CLEAR,4,2           ; @HFI1_S_AHG_CLEAR
.subsections_via_symbols
