	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opfn_conn_request
_opfn_conn_request:                     ## @opfn_conn_request
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	callq	_trace_hfi1_opfn_state_conn_request
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%rbx)
	je	LBB0_12
## %bb.1:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$0, 8(%rbx)
	jne	LBB0_12
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
	negl	%edi
	andl	%eax, %edi
	callq	_ilog2
	movl	%eax, %r15d
	incl	%r15d
	movq	_STL_VERBS_EXTD_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_5
## %bb.6:
	movq	_hfi1_opfn_handlers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_trace_hfi1_opfn_data_conn_request
	movl	-44(%rbp), %eax
	andl	$-16, %eax
	orl	%r15d, %eax
	movl	%eax, -44(%rbp)
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_IB_WR_OPFN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-52(%rbp), %r12
	movl	%eax, -52(%rbp)
	movq	_HFI1_VERBS_E_ATOMIC_VADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	%r15d, 8(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ib_post_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_trace_hfi1_msg_opfn_conn_request
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_STL_VERBS_EXTD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, %rdi
	callq	_opfn_schedule_conn_request
	jmp	LBB0_12
LBB0_5:
	movl	%r15d, %edi
	callq	_OPFN_CODE
	orl	%eax, 4(%rbx)
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %rdi
	callq	_trace_hfi1_opfn_state_conn_request
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_STL_VERBS_EXTD_MAX,4,2         ## @STL_VERBS_EXTD_MAX
	.comm	_hfi1_opfn_handlers,8,3         ## @hfi1_opfn_handlers
	.comm	_IB_WR_OPFN,4,2                 ## @IB_WR_OPFN
	.comm	_HFI1_VERBS_E_ATOMIC_VADDR,4,2  ## @HFI1_VERBS_E_ATOMIC_VADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_ost_send failed: ret = "

	.comm	_STL_VERBS_EXTD_NONE,4,2        ## @STL_VERBS_EXTD_NONE
	.no_dead_strip	_opfn_conn_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opfn_conn_request
_opfn_conn_request:                     ; @opfn_conn_request
	.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	x20, x0
	ldr	x23, [x0, #8]
	bl	_trace_hfi1_opfn_state_conn_request
	add	x19, x23, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_11
; %bb.1:
	ldr	w8, [x23]
	cbz	w8, LBB0_11
; %bb.2:
	ldr	w9, [x23, #4]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.3:
	ldr	w10, [x23, #8]
	cbnz	w10, LBB0_11
; %bb.4:
	bic	w8, w8, w9
	neg	w9, w8
	and	w0, w8, w9
	bl	_ilog2
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x21, x8, #1
Lloh0:
	adrp	x8, _STL_VERBS_EXTD_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STL_VERBS_EXTD_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_10
; %bb.5:
Lloh3:
	adrp	x8, _hfi1_opfn_handlers@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hfi1_opfn_handlers@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_10
; %bb.7:
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_trace_hfi1_opfn_data_conn_request
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffff0
	orr	w8, w8, w21
	str	w8, [sp, #12]
	add	x22, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x8, _IB_WR_OPFN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WR_OPFN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	x22, x22, #0x4
Lloh9:
	adrp	x9, _HFI1_VERBS_E_ATOMIC_VADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HFI1_VERBS_E_ATOMIC_VADDR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
	ldr	w9, [sp, #12]
	str	w9, [sp, #16]
	str	w21, [x23, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	bl	_ib_post_send
	cbz	w0, LBB0_13
; %bb.9:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_trace_hfi1_msg_opfn_conn_request
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh14:
	adrp	x8, _STL_VERBS_EXTD_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STL_VERBS_EXTD_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	mov	x0, x20
	bl	_opfn_schedule_conn_request
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_OPFN_CODE
	ldr	w8, [x23, #4]
	orr	w8, w8, w0
	str	w8, [x23, #4]
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_12:
	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
LBB0_13:
	mov	x0, x20
	bl	_trace_hfi1_opfn_state_conn_request
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STL_VERBS_EXTD_MAX,4,2         ; @STL_VERBS_EXTD_MAX
	.comm	_hfi1_opfn_handlers,8,3         ; @hfi1_opfn_handlers
	.comm	_IB_WR_OPFN,4,2                 ; @IB_WR_OPFN
	.comm	_HFI1_VERBS_E_ATOMIC_VADDR,4,2  ; @HFI1_VERBS_E_ATOMIC_VADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_ost_send failed: ret = "

	.comm	_STL_VERBS_EXTD_NONE,4,2        ; @STL_VERBS_EXTD_NONE
	.no_dead_strip	_opfn_conn_request
.subsections_via_symbols
