	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lro_update_tcp_ip_header
_lro_update_tcp_ip_header:              ## @lro_update_tcp_ip_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	48(%rdi), %r14
	movl	44(%rdi), %eax
	movl	%eax, 12(%r14)
	movl	40(%rdi), %eax
	movl	%eax, 8(%r14)
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %eax
	movl	%eax, 24(%r14)
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_htons
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	movq	16(%rbx), %rdi
	movl	8(%r15), %esi
	callq	_ip_fast_csum
	movq	%rax, 16(%r15)
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_TCP_HDR_LEN
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_csum_partial
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_csum_add
	movl	%eax, (%rbx)
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %r13d
	movq	8(%rbx), %r12
	movq	%r15, %rdi
	callq	_IP_HDR_LEN
	subq	%rax, %r12
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_csum_tcpudp_magic
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.no_dead_strip	_lro_update_tcp_ip_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lro_update_tcp_ip_header
_lro_update_tcp_ip_header:              ; @lro_update_tcp_ip_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, [x0, #16]
	ldr	x19, [x0, #48]
	ldr	d0, [x0, #40]
	str	d0, [x19, #8]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #24]
	str	w8, [x19, #24]
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_htons
	str	w0, [x21, #24]
	str	xzr, [x21, #16]
	ldr	x0, [x20, #16]
	ldr	w1, [x21, #8]
	bl	_ip_fast_csum
	str	x0, [x21, #16]
	str	xzr, [x19]
	mov	x0, x19
	bl	_TCP_HDR_LEN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_csum_partial
	mov	x1, x0
	ldr	w0, [x20]
	bl	_csum_add
	str	w0, [x20]
	ldp	w23, w22, [x21]
	ldr	x24, [x20, #8]
	mov	x0, x21
	bl	_IP_HDR_LEN
	sub	x2, x24, x0
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	x0, x22
	mov	x1, x23
	bl	_csum_tcpudp_magic
	str	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.no_dead_strip	_lro_update_tcp_ip_header
.subsections_via_symbols
