	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_cm_upcall
_siw_cm_upcall:                         ## @siw_cm_upcall
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	%r14d, -80(%rbp)
	movl	%r15d, -76(%rbp)
	movq	_IW_CM_EVENT_CONNECT_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, -40(%rbp)
	movq	48(%rbx), %rcx
	movq	(%rcx), %r12
	movq	_IW_CM_EVENT_ESTABLISHED@GOTPCREL(%rip), %rsi
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r15d, %edx
	sete	%cl
	cmpl	%r15d, (%rsi)
	je	LBB0_3
## %bb.2:
	cmpl	%r15d, %edx
	je	LBB0_3
## %bb.17:
	movl	36(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_9
LBB0_4:
	movq	40(%rbx), %r12
	movq	_IW_CM_EVENT_ESTABLISHED@GOTPCREL(%rip), %rsi
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r15d, %edx
	sete	%cl
	cmpl	%r15d, (%rsi)
	je	LBB0_3
## %bb.5:
	cmpl	%r15d, %edx
	je	LBB0_3
## %bb.6:
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movl	32(%rbx), %edx
	movl	%edx, -44(%rbp)
	movl	36(%rbx), %edx
	movl	%edx, -48(%rbp)
	cmpl	%r15d, %eax
	je	LBB0_9
LBB0_8:
	testb	%cl, %cl
	je	LBB0_13
LBB0_9:
	movl	28(%rbx), %edi
	callq	_be16_to_cpu
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, -56(%rbp)
	movl	24(%rbx), %ecx
	movl	%ecx, -72(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:
	addq	$-4, %rax
	movq	%rax, -56(%rbp)
	addl	$4, %ecx
	movl	%ecx, -72(%rbp)
LBB0_12:
	movl	8(%rbx), %edi
	leaq	-64(%rbp), %rsi
	callq	_getname_local
	movl	8(%rbx), %edi
	leaq	-68(%rbp), %rsi
	callq	_getname_peer
LBB0_13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_qp_id
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_15:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_siw_dbg_cep
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%r12)
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_CM_EVENT_CONNECT_REQUEST,4,2 ## @IW_CM_EVENT_CONNECT_REQUEST
	.comm	_IW_CM_EVENT_ESTABLISHED,4,2    ## @IW_CM_EVENT_ESTABLISHED
	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ## @IW_CM_EVENT_CONNECT_REPLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[QP %u]: reason=%d, status=%d\n"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_siw_cm_upcall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_cm_upcall
_siw_cm_upcall:                         ; @siw_cm_upcall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	stp	w19, w20, [sp]
Lloh0:
	adrp	x8, _IW_CM_EVENT_CONNECT_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IW_CM_EVENT_CONNECT_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	str	x21, [sp, #40]
	ldr	x9, [x21, #48]
	ldr	x22, [x9]
Lloh3:
	adrp	x9, _IW_CM_EVENT_ESTABLISHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_CM_EVENT_ESTABLISHED@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x9]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, w20
	cset	w9, eq
	cmp	w11, w20
	ccmp	w10, w20, #4, ne
	b.eq	LBB0_4
; %bb.2:
	ldr	d0, [x21, #32]
	str	d0, [sp, #32]
	b	LBB0_7
LBB0_3:
	ldr	x22, [x21, #40]
Lloh9:
	adrp	x9, _IW_CM_EVENT_ESTABLISHED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_CM_EVENT_ESTABLISHED@GOTPAGEOFF]
Lloh11:
	adrp	x10, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x9]
Lloh14:
	ldr	w10, [x10]
	cmp	w10, w20
	cset	w9, eq
	cmp	w11, w20
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_5
LBB0_4:
	ldr	d0, [x21, #32]
	rev64.2s	v0, v0
	str	d0, [sp, #32]
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
	cmp	w8, w20
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_11
LBB0_7:
	ldr	w0, [x21, #28]
	bl	_be16_to_cpu
	cbz	x0, LBB0_10
; %bb.8:
	str	x0, [sp, #24]
	ldr	w8, [x21, #24]
	str	w8, [sp, #8]
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_10
; %bb.9:
	sub	x9, x0, #4
	str	x9, [sp, #24]
	add	w8, w8, #4
	str	w8, [sp, #8]
LBB0_10:
	ldr	w0, [x21, #8]
	mov	x23, sp
	add	x1, x23, #16
	bl	_getname_local
	ldr	w0, [x21, #8]
	add	x1, x23, #12
	bl	_getname_peer
LBB0_11:
	ldr	x0, [x21]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_qp_id
	mov	x2, x0
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
LBB0_14:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	bl	_siw_dbg_cep
	ldr	x8, [x22]
	mov	x1, sp
	mov	x0, x22
	blr	x8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_CM_EVENT_CONNECT_REQUEST,4,2 ; @IW_CM_EVENT_CONNECT_REQUEST
	.comm	_IW_CM_EVENT_ESTABLISHED,4,2    ; @IW_CM_EVENT_ESTABLISHED
	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ; @IW_CM_EVENT_CONNECT_REPLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[QP %u]: reason=%d, status=%d\n"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_siw_cm_upcall
.subsections_via_symbols
