	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hwlro_add_ipaddr
_mtk_hwlro_add_ipaddr:                  ## @mtk_hwlro_add_ipaddr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_TCP_V4_FLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movslq	8(%rbx), %r12
	cmpq	$2, %r12
	jl	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	24(%r14), %r15
	callq	_htonl
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	_MTK_MAX_LRO_IP_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	(%r14), %r12d
	addl	8(%rbx), %r12d
	movq	%r14, %rdi
	callq	_mtk_hwlro_get_ip_cnt
	movl	%eax, 16(%r14)
	movq	8(%r14), %rax
	movslq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mtk_hwlro_val_ipaddr
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_V4_FLOW,8,3                ## @TCP_V4_FLOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTK_MAX_LRO_IP_CNT,4,2         ## @MTK_MAX_LRO_IP_CNT
	.no_dead_strip	_mtk_hwlro_add_ipaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hwlro_add_ipaddr
_mtk_hwlro_add_ipaddr:                  ; @mtk_hwlro_add_ipaddr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TCP_V4_FLOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_V4_FLOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
	cbz	w0, LBB0_3
; %bb.2:
	ldrsw	x22, [x19, #8]
	cmp	w22, #2
	b.lt	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x21, [x20, #24]
	bl	_htonl
	ldr	x8, [x20, #8]
	str	w0, [x8, x22, lsl #2]
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _MTK_MAX_LRO_IP_CNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTK_MAX_LRO_IP_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	madd	w22, w9, w8, w10
	mov	x0, x20
	bl	_mtk_hwlro_get_ip_cnt
	str	w0, [x20, #16]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19, #8]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hwlro_val_ipaddr
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_V4_FLOW,8,3                ; @TCP_V4_FLOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTK_MAX_LRO_IP_CNT,4,2         ; @MTK_MAX_LRO_IP_CNT
	.no_dead_strip	_mtk_hwlro_add_ipaddr
.subsections_via_symbols
