	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152_csum_workaround
_r8152_csum_workaround:                 ## @r8152_csum_workaround
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	(%r15), %rax
	notl	%esi
	andl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_gso_segment
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	___skb_queue_head_init
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r13
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	___skb_queue_tail
	movq	%r13, %rbx
	testq	%r13, %r13
	jne	LBB0_4
## %bb.5:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_skb_queue_splice
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_skb_checksum_help
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___skb_queue_head               ## TAILCALL
LBB0_9:
	movq	(%r15), %rax
	incl	4(%rax)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.no_dead_strip	_r8152_csum_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152_csum_workaround
_r8152_csum_workaround:                 ; @r8152_csum_workaround
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_skb_shinfo
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w1, w8, w9
	mov	x0, x19
	bl	_skb_gso_segment
	mov	x22, x0
	bl	_IS_ERR
	cmp	x22, #0
	ccmp	x0, #0, #0, ne
	b.ne	LBB0_8
; %bb.2:
	add	x0, sp, #8
	bl	___skb_queue_head_init
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x22, #8]
	str	xzr, [x22, #8]
	add	x0, sp, #8
	mov	x1, x22
	bl	___skb_queue_tail
	mov	x22, x21
	cbnz	x21, LBB0_3
; %bb.4:
	add	x0, sp, #8
	mov	x1, x20
	bl	_skb_queue_splice
	mov	x0, x19
	bl	_dev_kfree_skb
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_skb_checksum_help
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, 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
	add	sp, sp, #64
	b	___skb_queue_head
LBB0_8:
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	mov	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
	add	sp, sp, #64
	b	_dev_kfree_skb
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.no_dead_strip	_r8152_csum_workaround
.subsections_via_symbols
