	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_modify_qp                  ## -- Begin function efa_modify_qp
	.p2align	4, 0x90
_efa_modify_qp:                         ## @efa_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_edev
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	%rbx, %rdi
	callq	_to_eqp
	movq	%rax, %rcx
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%rcx, %r13
	xorl	%esi, %esi
	callq	_ib_is_udata_cleared
	movq	%r13, %rcx
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_IB_QP_CUR_STATE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movq	%rcx, %rax
	cmovneq	%r12, %rax
	movl	(%rax), %r8d
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rdx
	movl	%r8d, %eax
	testl	%r14d, (%rdx)
	je	LBB0_5
## %bb.4:
	movl	4(%r12), %eax
LBB0_5:
	movq	%r15, %rdi
	movq	%rcx, %r13
	movq	%rcx, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r9d
	callq	_efa_modify_qp_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movl	4(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	_EFA_ADMIN_QP_STATE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_EFA_ADMIN_CUR_QP_STATE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movl	%r13d, -80(%rbp)
	movl	(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -72(%rbp)
	jmp	LBB0_9
LBB0_2:
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ibdev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_7:
	xorl	%r13d, %r13d
LBB0_9:
	movq	_IB_QP_EN_SQD_ASYNC_NOTIFY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r13d
	movl	%r13d, -80(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -60(%rbp)
LBB0_11:
	movq	_IB_QP_QKEY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_EFA_ADMIN_QKEY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r13d
	movl	%r13d, -80(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -64(%rbp)
LBB0_13:
	movq	_IB_QP_SQ_PSN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_EFA_ADMIN_SQ_PSN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r13d
	movl	%r13d, -80(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -68(%rbp)
LBB0_15:
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_efa_com_modify_qp
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_17
## %bb.16:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %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	"Incompatible ABI params, udata not cleared\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_QP_CUR_STATE,4,2            ## @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_EFA_ADMIN_QP_STATE_BIT,4,2     ## @EFA_ADMIN_QP_STATE_BIT
	.comm	_EFA_ADMIN_CUR_QP_STATE_BIT,4,2 ## @EFA_ADMIN_CUR_QP_STATE_BIT
	.comm	_IB_QP_EN_SQD_ASYNC_NOTIFY,4,2  ## @IB_QP_EN_SQD_ASYNC_NOTIFY
	.comm	_EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT,4,2 ## @EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT
	.comm	_IB_QP_QKEY,4,2                 ## @IB_QP_QKEY
	.comm	_EFA_ADMIN_QKEY_BIT,4,2         ## @EFA_ADMIN_QKEY_BIT
	.comm	_IB_QP_SQ_PSN,4,2               ## @IB_QP_SQ_PSN
	.comm	_EFA_ADMIN_SQ_PSN_BIT,4,2       ## @EFA_ADMIN_SQ_PSN_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_modify_qp                  ; -- Begin function efa_modify_qp
	.p2align	2
_efa_modify_qp:                         ; @efa_modify_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_edev
	mov	x19, x0
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x0, x21
	bl	_to_eqp
	mov	x21, x0
	ldr	x2, [x23]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	w1, #0
	bl	_ib_is_udata_cleared
	cbz	w0, LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, _IB_QP_CUR_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_CUR_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	csel	x8, x21, x20, eq
	ldr	w4, [x8]
Lloh3:
	adrp	x24, _IB_QP_STATE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x23, x4
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	w23, [x20, #4]
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x5, x23
	bl	_efa_modify_qp_validate
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	w8, [x21, #4]
	str	w8, [sp, #24]
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _EFA_ADMIN_QP_STATE_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFA_ADMIN_QP_STATE_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	mov	x24, x0
Lloh8:
	adrp	x8, _EFA_ADMIN_CUR_QP_STATE_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFA_ADMIN_CUR_QP_STATE_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	orr	w24, w0, w24
	str	w24, [sp]
	ldr	d0, [x20]
	stur	d0, [sp, #4]
	b	LBB0_9
LBB0_7:
	add	x0, x19, #4
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ibdev_dbg
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_8:
	mov	w24, #0
LBB0_9:
Lloh16:
	adrp	x8, _IB_QP_EN_SQD_ASYNC_NOTIFY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_QP_EN_SQD_ASYNC_NOTIFY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20, #16]
	orr	w24, w24, w0
	str	w24, [sp]
	str	w8, [sp, #20]
LBB0_11:
Lloh22:
	adrp	x8, _IB_QP_QKEY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IB_QP_QKEY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _EFA_ADMIN_QKEY_BIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFA_ADMIN_QKEY_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20, #12]
	orr	w24, w24, w0
	str	w24, [sp]
	str	w8, [sp, #16]
LBB0_13:
Lloh28:
	adrp	x8, _IB_QP_SQ_PSN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IB_QP_SQ_PSN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _EFA_ADMIN_SQ_PSN_BIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EFA_ADMIN_SQ_PSN_BIT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20, #8]
	orr	w9, w24, w0
	str	w9, [sp]
	str	w8, [sp, #12]
LBB0_15:
	mov	x1, sp
	mov	x0, x19
	bl	_efa_com_modify_qp
	cbnz	w0, LBB0_17
; %bb.16:
	str	w23, [x21]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incompatible ABI params, udata not cleared\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_QP_CUR_STATE,4,2            ; @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_EFA_ADMIN_QP_STATE_BIT,4,2     ; @EFA_ADMIN_QP_STATE_BIT
	.comm	_EFA_ADMIN_CUR_QP_STATE_BIT,4,2 ; @EFA_ADMIN_CUR_QP_STATE_BIT
	.comm	_IB_QP_EN_SQD_ASYNC_NOTIFY,4,2  ; @IB_QP_EN_SQD_ASYNC_NOTIFY
	.comm	_EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT,4,2 ; @EFA_ADMIN_SQ_DRAINED_ASYNC_NOTIFY_BIT
	.comm	_IB_QP_QKEY,4,2                 ; @IB_QP_QKEY
	.comm	_EFA_ADMIN_QKEY_BIT,4,2         ; @EFA_ADMIN_QKEY_BIT
	.comm	_IB_QP_SQ_PSN,4,2               ; @IB_QP_SQ_PSN
	.comm	_EFA_ADMIN_SQ_PSN_BIT,4,2       ; @EFA_ADMIN_SQ_PSN_BIT
.subsections_via_symbols
