	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc75xx_rx_csum_offload
_smsc75xx_rx_csum_offload:              ## @smsc75xx_rx_csum_offload
	.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
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rbx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_RX_CMD_A_LCSM@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_RX_CMD_B_CSUM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%r14d, %edi
	callq	_ntohs
	movl	%eax, 4(%r15)
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RX_CMD_A_LCSM,4,2              ## @RX_CMD_A_LCSM
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_RX_CMD_B_CSUM_SHIFT,4,2        ## @RX_CMD_B_CSUM_SHIFT
	.comm	_CHECKSUM_COMPLETE,4,2          ## @CHECKSUM_COMPLETE
	.no_dead_strip	_smsc75xx_rx_csum_offload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc75xx_rx_csum_offload
_smsc75xx_rx_csum_offload:              ; @smsc75xx_rx_csum_offload
	.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	x19, x1
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x3
Lloh3:
	adrp	x8, _RX_CMD_A_LCSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_CMD_A_LCSM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w2
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _RX_CMD_B_CSUM_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_CMD_B_CSUM_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w0, w20, w8
	bl	_ntohs
	str	w0, [x19, #4]
Lloh11:
	adrp	x8, _CHECKSUM_COMPLETE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHECKSUM_COMPLETE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RX_CMD_A_LCSM,4,2              ; @RX_CMD_A_LCSM
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_RX_CMD_B_CSUM_SHIFT,4,2        ; @RX_CMD_B_CSUM_SHIFT
	.comm	_CHECKSUM_COMPLETE,4,2          ; @CHECKSUM_COMPLETE
	.no_dead_strip	_smsc75xx_rx_csum_offload
.subsections_via_symbols
