	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_cm_node
_i40iw_create_cm_node:                  ## @i40iw_create_cm_node
	.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, %r15
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	xorl	%ecx, %ecx
	callq	_i40iw_make_cm_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	$1, 40(%rax)
	movq	_I40IW_CM_DEFAULT_RCV_WND_SCALE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 48(%rbx)
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_i40iw_record_ird_ord
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 32(%rbx)
	movl	20(%rbx), %edi
	movl	%edi, 24(%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	_I40IW_CM_STATE_SYN_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_12:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %edi
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movl	16(%r15), %esi
	movl	96(%rbx), %ecx
	movl	100(%rbx), %edx
	movq	_I40IW_CM_LISTENER_ACTIVE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	callq	_i40iw_find_listener
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	16(%r15), %rcx
	movq	%rcx, -64(%rbp)
	movups	(%r15), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	12(%r15), %ecx
	movl	%ecx, -72(%rbp)
	movl	8(%r15), %ecx
	movl	%ecx, -68(%rbp)
	movl	(%rax), %ecx
	movl	%ecx, -76(%rbp)
	movl	(%r15), %ecx
	movl	%ecx, -80(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	_i40iw_make_cm_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	incl	(%r12)
	movq	%rbx, 88(%rax)
	movq	(%r13), %rax
	movq	%rax, 48(%r15)
	movq	%r15, 88(%rbx)
	movl	20(%r15), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r14, 32(%r15)
	movq	8(%rbx), %rax
	cmpq	%rax, (%r15)
	jle	LBB0_10
## %bb.9:
	movq	%rax, (%r15)
LBB0_10:
	movq	_I40IW_CM_STATE_OFFLOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	76(%r15), %eax
	movl	%eax, 80(%rbx)
	movl	76(%rbx), %eax
	movl	%eax, 80(%r15)
	movl	64(%r15), %eax
	movl	%eax, 72(%rbx)
	movl	64(%rbx), %ecx
	movl	%ecx, 72(%r15)
	movl	%eax, 68(%rbx)
	movl	%ecx, 68(%r15)
	movq	48(%r15), %rax
	movq	%rax, 56(%rbx)
	movq	48(%rbx), %rax
	movq	%rax, 56(%r15)
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref_cm_node
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref_cm_node
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40IW_CM_DEFAULT_RCV_WND_SCALE,8,3 ## @I40IW_CM_DEFAULT_RCV_WND_SCALE
	.comm	_I40IW_CM_LISTENER_ACTIVE_STATE,4,2 ## @I40IW_CM_LISTENER_ACTIVE_STATE
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_I40IW_CM_STATE_OFFLOADED,4,2   ## @I40IW_CM_STATE_OFFLOADED
	.comm	_I40IW_CM_STATE_SYN_SENT,4,2    ## @I40IW_CM_STATE_SYN_SENT
	.no_dead_strip	_i40iw_create_cm_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_create_cm_node
_i40iw_create_cm_node:                  ; @i40iw_create_cm_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x25, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x20, [x2, #16]
	ldr	x21, [x2]
	mov	x2, x3
	mov	x3, #0
	bl	_i40iw_make_cm_node
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0, #40]
Lloh0:
	adrp	x26, _I40IW_CM_DEFAULT_RCV_WND_SCALE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _I40IW_CM_DEFAULT_RCV_WND_SCALE@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [x0, #48]
	ldp	w2, w1, [x25, #8]
	bl	_i40iw_record_ird_ord
	ldp	w1, w0, [x24, #16]
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_6
; %bb.2:
	str	x20, [x19, #32]
	ldr	w0, [x19, #20]
	str	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
Lloh2:
	adrp	x8, _I40IW_CM_STATE_SYN_SENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_CM_STATE_SYN_SENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_3:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_6:
	ldr	w1, [x24, #16]
	ldp	w3, w2, [x19, #96]
Lloh7:
	adrp	x8, _I40IW_CM_LISTENER_ACTIVE_STATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40IW_CM_LISTENER_ACTIVE_STATE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x22
	bl	_i40iw_find_listener
	cbz	x0, LBB0_11
; %bb.7:
	mov	x3, x0
	ldr	q0, [x24]
	str	q0, [sp]
	ldr	x8, [x24, #16]
	str	x8, [sp, #16]
	ldr	d0, [x24, #8]
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	ldr	w8, [x0]
	ldr	w9, [x24]
	stp	w9, w8, [sp]
	mov	x2, sp
	mov	x0, x22
	mov	x1, x23
	bl	_i40iw_make_cm_node
	cbz	x0, LBB0_12
; %bb.8:
	mov	x23, x0
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	str	x19, [x0, #88]
	ldr	x8, [x26]
	str	x8, [x0, #48]
	str	x0, [x19, #88]
	ldr	w0, [x0, #20]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x20, [x23, #32]
	ldr	x9, [x23]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.le	LBB0_10
; %bb.9:
	str	x8, [x23]
LBB0_10:
Lloh10:
	adrp	x8, _I40IW_CM_STATE_OFFLOADED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40IW_CM_STATE_OFFLOADED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x23, #76]
	str	w8, [x19, #80]
	ldr	w8, [x19, #76]
	str	w8, [x23, #80]
	ldr	w8, [x23, #64]
	str	w8, [x19, #72]
	ldr	w9, [x19, #64]
	str	w9, [x23, #72]
	str	w8, [x19, #68]
	str	w9, [x23, #68]
	ldr	x8, [x23, #48]
	str	x8, [x19, #56]
	ldr	x8, [x19, #48]
	str	x8, [x23, #56]
	b	LBB0_3
LBB0_11:
	mov	x0, x19
	bl	_i40iw_rem_ref_cm_node
Lloh13:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_i40iw_rem_ref_cm_node
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40IW_CM_DEFAULT_RCV_WND_SCALE,8,3 ; @I40IW_CM_DEFAULT_RCV_WND_SCALE
	.comm	_I40IW_CM_LISTENER_ACTIVE_STATE,4,2 ; @I40IW_CM_LISTENER_ACTIVE_STATE
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_I40IW_CM_STATE_OFFLOADED,4,2   ; @I40IW_CM_STATE_OFFLOADED
	.comm	_I40IW_CM_STATE_SYN_SENT,4,2    ; @I40IW_CM_STATE_SYN_SENT
	.no_dead_strip	_i40iw_create_cm_node
.subsections_via_symbols
