	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_offload_check_rx           ## -- Begin function mtk_offload_check_rx
	.p2align	4, 0x90
_mtk_offload_check_rx:                  ## @mtk_offload_check_rx
	.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	%edx, %ebx
	movq	%rdi, %r14
	movq	_MTK_RXD4_CPU_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %esi
	callq	_FIELD_GET
                                        ## kill: def $eax killed $eax def $rax
	movl	$-1, %r15d
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.4:
	movq	_MTK_RXD4_FOE_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mtk_offload_keepalive
	jmp	LBB0_3
LBB0_1:
	cmpl	$128, %eax
	je	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_RXD4_CPU_REASON,4,2        ## @MTK_RXD4_CPU_REASON
	.comm	_MTK_RXD4_FOE_ENTRY,4,2         ## @MTK_RXD4_FOE_ENTRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_offload_check_rx           ; -- Begin function mtk_offload_check_rx
	.p2align	2
_mtk_offload_check_rx:                  ; @mtk_offload_check_rx
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MTK_RXD4_CPU_REASON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_RXD4_CPU_REASON@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x2
	bl	_FIELD_GET
	sub	w8, w0, #129
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MTK_RXD4_FOE_ENTRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_RXD4_FOE_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x1, x0
	mov	x0, x19
	bl	_mtk_offload_keepalive
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_RXD4_CPU_REASON,4,2        ; @MTK_RXD4_CPU_REASON
	.comm	_MTK_RXD4_FOE_ENTRY,4,2         ; @MTK_RXD4_FOE_ENTRY
.subsections_via_symbols
