	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_tx_csum
_emac_tx_csum:                          ## @emac_tx_csum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_EMAC_FTR_HAS_TAH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_emac_has_feature
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	incl	(%rbx)
	movq	_EMAC_TX_CTRL_TAH_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_FTR_HAS_TAH,4,2           ## @EMAC_FTR_HAS_TAH
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_EMAC_TX_CTRL_TAH_CSUM,4,2      ## @EMAC_TX_CTRL_TAH_CSUM
	.no_dead_strip	_emac_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_tx_csum
_emac_tx_csum:                          ; @emac_tx_csum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EMAC_FTR_HAS_TAH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMAC_FTR_HAS_TAH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_emac_has_feature
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _EMAC_TX_CTRL_TAH_CSUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMAC_TX_CTRL_TAH_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_FTR_HAS_TAH,4,2           ; @EMAC_FTR_HAS_TAH
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_EMAC_TX_CTRL_TAH_CSUM,4,2      ; @EMAC_TX_CTRL_TAH_CSUM
	.no_dead_strip	_emac_tx_csum
.subsections_via_symbols
