	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_prep_tx_csum
_ftgmac100_prep_tx_csum:                ## @ftgmac100_prep_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_ip_hdr
	movq	_FTGMAC100_TXDES1_IP_CHKSUM@GOTPCREL(%rip), %rdx
	movl	(%r14), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movl	%ecx, (%r14)
	movl	$1, %eax
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.4:
	movq	_FTGMAC100_TXDES1_TCP_CHKSUM@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	callq	_skb_checksum_help
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_8
LBB0_6:
	movq	_FTGMAC100_TXDES1_UDP_CHKSUM@GOTPCREL(%rip), %rdx
LBB0_5:
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_FTGMAC100_TXDES1_IP_CHKSUM,4,2 ## @FTGMAC100_TXDES1_IP_CHKSUM
	.comm	_FTGMAC100_TXDES1_TCP_CHKSUM,4,2 ## @FTGMAC100_TXDES1_TCP_CHKSUM
	.comm	_FTGMAC100_TXDES1_UDP_CHKSUM,4,2 ## @FTGMAC100_TXDES1_UDP_CHKSUM
	.no_dead_strip	_ftgmac100_prep_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_prep_tx_csum
_ftgmac100_prep_tx_csum:                ; @ftgmac100_prep_tx_csum
	.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
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_ip_hdr
Lloh3:
	adrp	x8, _FTGMAC100_TXDES1_IP_CHKSUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FTGMAC100_TXDES1_IP_CHKSUM@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh5:
	ldr	w8, [x8]
	ldr	w10, [x19]
	orr	w8, w10, w8
	str	w8, [x19]
	cmp	w9, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, _FTGMAC100_TXDES1_TCP_CHKSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FTGMAC100_TXDES1_TCP_CHKSUM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_skb_checksum_help
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x9, _FTGMAC100_TXDES1_UDP_CHKSUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FTGMAC100_TXDES1_UDP_CHKSUM@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_FTGMAC100_TXDES1_IP_CHKSUM,4,2 ; @FTGMAC100_TXDES1_IP_CHKSUM
	.comm	_FTGMAC100_TXDES1_TCP_CHKSUM,4,2 ; @FTGMAC100_TXDES1_TCP_CHKSUM
	.comm	_FTGMAC100_TXDES1_UDP_CHKSUM,4,2 ; @FTGMAC100_TXDES1_UDP_CHKSUM
	.no_dead_strip	_ftgmac100_prep_tx_csum
.subsections_via_symbols
