	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_cm_modify_tx_init
_ipoib_cm_modify_tx_init:               ## @ipoib_cm_modify_tx_init
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_ipoib_priv
	movq	%rax, %r15
	movl	8(%rax), %edi
	movl	(%rax), %esi
	movl	4(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_ib_find_pkey
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ipoib_warn
	jmp	LBB0_5
LBB0_2:
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movq	_IB_QP_ACCESS_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IB_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %eax
	movl	%eax, -40(%rbp)
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ipoib_warn
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pkey 0x%x not found: %d\n"

	.comm	_IB_QPS_INIT,4,2                ## @IB_QPS_INIT
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ## @IB_QP_ACCESS_FLAGS
	.comm	_IB_QP_PKEY_INDEX,4,2           ## @IB_QP_PKEY_INDEX
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
L_.str.1:                               ## @.str.1
	.asciz	"failed to modify tx QP to INIT: %d\n"

	.no_dead_strip	_ipoib_cm_modify_tx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_cm_modify_tx_init
_ipoib_cm_modify_tx_init:               ; @ipoib_cm_modify_tx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	bl	_ipoib_priv
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldp	w1, w2, [x19]
	add	x8, sp, #16
	add	x3, x8, #12
	bl	_ib_find_pkey
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x19, #4]
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
	ldr	w8, [x19]
	str	w8, [sp, #16]
Lloh8:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IB_QP_ACCESS_FLAGS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_QP_ACCESS_FLAGS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _IB_QP_PKEY_INDEX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _IB_QP_PORT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_QP_PORT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x1, sp, #16
	mov	x0, x20
	bl	_ib_modify_qp
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
LBB0_4:
	bl	_ipoib_warn
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pkey 0x%x not found: %d\n"

	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_ACCESS_FLAGS,4,2         ; @IB_QP_ACCESS_FLAGS
	.comm	_IB_QP_PKEY_INDEX,4,2           ; @IB_QP_PKEY_INDEX
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
l_.str.1:                               ; @.str.1
	.asciz	"failed to modify tx QP to INIT: %d\n"

	.no_dead_strip	_ipoib_cm_modify_tx_init
.subsections_via_symbols
