	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_rx_checksum
_ax88179_rx_checksum:                   ## @ax88179_rx_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	(%rsi), %eax
	movq	_AX_RXHDR_L3CSUM_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_5:
	popq	%rbp
	retq
LBB0_1:
	movq	_AX_RXHDR_L4CSUM_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.2:
	movq	_AX_RXHDR_L4_TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AX_RXHDR_L4_TYPE_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_AX_RXHDR_L4_TYPE_UDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_4:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_AX_RXHDR_L3CSUM_ERR,4,2        ## @AX_RXHDR_L3CSUM_ERR
	.comm	_AX_RXHDR_L4CSUM_ERR,4,2        ## @AX_RXHDR_L4CSUM_ERR
	.comm	_AX_RXHDR_L4_TYPE_MASK,4,2      ## @AX_RXHDR_L4_TYPE_MASK
	.comm	_AX_RXHDR_L4_TYPE_TCP,4,2       ## @AX_RXHDR_L4_TYPE_TCP
	.comm	_AX_RXHDR_L4_TYPE_UDP,4,2       ## @AX_RXHDR_L4_TYPE_UDP
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ax88179_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_rx_checksum
_ax88179_rx_checksum:                   ; @ax88179_rx_checksum
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _AX_RXHDR_L3CSUM_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AX_RXHDR_L3CSUM_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ret
LBB0_2:
Lloh6:
	adrp	x9, _AX_RXHDR_L4CSUM_ERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AX_RXHDR_L4CSUM_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.3:
Lloh9:
	adrp	x9, _AX_RXHDR_L4_TYPE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AX_RXHDR_L4_TYPE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _AX_RXHDR_L4_TYPE_TCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AX_RXHDR_L4_TYPE_TCP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _AX_RXHDR_L4_TYPE_UDP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AX_RXHDR_L4_TYPE_UDP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_1
; %bb.4:
Lloh18:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_AX_RXHDR_L3CSUM_ERR,4,2        ; @AX_RXHDR_L3CSUM_ERR
	.comm	_AX_RXHDR_L4CSUM_ERR,4,2        ; @AX_RXHDR_L4CSUM_ERR
	.comm	_AX_RXHDR_L4_TYPE_MASK,4,2      ; @AX_RXHDR_L4_TYPE_MASK
	.comm	_AX_RXHDR_L4_TYPE_TCP,4,2       ; @AX_RXHDR_L4_TYPE_TCP
	.comm	_AX_RXHDR_L4_TYPE_UDP,4,2       ; @AX_RXHDR_L4_TYPE_UDP
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ax88179_rx_checksum
.subsections_via_symbols
