	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_cm_init_tsa_conn
_i40iw_cm_init_tsa_conn:                ## @i40iw_cm_init_tsa_conn
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	112(%rdi), %r12
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, 64(%rbx)
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rbx)
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	(%r14), %eax
	movl	%eax, 72(%rbx)
	movl	36(%r14), %edi
	callq	_i40iw_derive_hw_ird_setting
	movl	%eax, 108(%rbx)
	cmpl	$1, 72(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	$2, 72(%rbx)
LBB0_2:
	leaq	40(%rbx), %r15
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 76(%rbx)
	movl	$1, 84(%rbx)
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 104(%rbx)
	movq	%rax, 40(%rbx)
	movl	$1, 48(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 52(%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_i40iw_init_tcp_ctx
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movl	$1, 88(%rbx)
	movq	_SNDMARKER_SEQNMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	cltq
	addq	16(%r14), %rax
	movq	%rax, 96(%rbx)
LBB0_4:
	movq	_I40IW_CM_STATE_OFFLOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_I40IW_TCP_STATE_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	8(%r12), %rax
	leaq	8(%rbx), %rdi
	movq	(%rbx), %rsi
	movq	%r15, %rdx
	callq	*(%rax)
	movq	$0, 40(%rbx)
	movl	$0, 48(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDMARKER_SEQNMASK,4,2         ## @SNDMARKER_SEQNMASK
	.comm	_I40IW_CM_STATE_OFFLOADED,4,2   ## @I40IW_CM_STATE_OFFLOADED
	.comm	_I40IW_TCP_STATE_ESTABLISHED,4,2 ## @I40IW_TCP_STATE_ESTABLISHED
	.no_dead_strip	_i40iw_cm_init_tsa_conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_cm_init_tsa_conn
_i40iw_cm_init_tsa_conn:                ; @i40iw_cm_init_tsa_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #112]
	mov	x23, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x21, x19, #40
	str	x23, [x19, #64]
	ldp	x9, x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x19, #60]
	ldr	w8, [x9]
	str	w8, [x19, #56]
	ldr	w8, [x20]
	str	w8, [x19, #72]
	ldr	w0, [x20, #36]
	bl	_i40iw_derive_hw_ird_setting
	str	w0, [x19, #108]
	ldr	w8, [x19, #72]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #2
	str	w8, [x19, #72]
LBB0_2:
	movi.2s	v0, #1
	stur	d0, [x19, #76]
	mov	w23, #1
	str	w23, [x19, #84]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #104]
	str	d0, [x19, #40]
	str	w23, [x19, #48]
	ldr	w8, [x20, #32]
	str	w8, [x19, #52]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_i40iw_init_tcp_ctx
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	str	w23, [x19, #88]
Lloh0:
	adrp	x8, _SNDMARKER_SEQNMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDMARKER_SEQNMASK@GOTPAGEOFF]
	ldr	w9, [sp]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	x9, [x20, #16]
	add	x8, x9, w8, sxtw
	str	x8, [x19, #96]
LBB0_4:
Lloh3:
	adrp	x8, _I40IW_CM_STATE_OFFLOADED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_CM_STATE_OFFLOADED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh6:
	adrp	x8, _I40IW_TCP_STATE_ESTABLISHED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_TCP_STATE_ESTABLISHED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w8, [x22]
	ldr	w9, [x20, #4]
	stp	w9, w8, [sp, #4]
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	add	x0, x19, #8
	ldr	x1, [x19]
	mov	x2, x21
	blr	x8
	str	xzr, [x19, #40]
	str	wzr, [x19, #48]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDMARKER_SEQNMASK,4,2         ; @SNDMARKER_SEQNMASK
	.comm	_I40IW_CM_STATE_OFFLOADED,4,2   ; @I40IW_CM_STATE_OFFLOADED
	.comm	_I40IW_TCP_STATE_ESTABLISHED,4,2 ; @I40IW_TCP_STATE_ESTABLISHED
	.no_dead_strip	_i40iw_cm_init_tsa_conn
.subsections_via_symbols
