	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_features_check
_rtl8152_features_check:                ## @rtl8152_features_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	callq	_skb_shinfo
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_TCPHO_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GTTCPHO_MAX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_skb_transport_offset
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
LBB0_5:
	cmpl	%r12d, %eax
	jle	LBB0_7
## %bb.6:
	movq	_NETIF_F_CSUM_MASK@GOTPCREL(%rip), %rax
	movq	_NETIF_F_GSO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	8(%r15), %rax
	addq	$4, %rax
	movq	_agg_buf_sz@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_9
## %bb.8:
	movq	_NETIF_F_GSO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GTTCPHO_MAX,4,2                ## @GTTCPHO_MAX
	.comm	_TCPHO_MAX,4,2                  ## @TCPHO_MAX
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ## @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_GSO_MASK,4,2           ## @NETIF_F_GSO_MASK
	.comm	_agg_buf_sz,8,3                 ## @agg_buf_sz
	.no_dead_strip	_rtl8152_features_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_features_check
_rtl8152_features_check:                ; @rtl8152_features_check
	.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, x2
	mov	x20, x0
	bl	_skb_shinfo
Lloh0:
	adrp	x8, _GTTCPHO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTTCPHO_MAX@GOTPAGEOFF]
	ldr	x22, [x0]
Lloh2:
	adrp	x9, _TCPHO_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCPHO_MAX@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	mov	x0, x20
	bl	_skb_transport_offset
	cbz	x22, LBB0_3
; %bb.1:
	cmp	w0, w21
	b.le	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _NETIF_F_CSUM_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETIF_F_CSUM_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _NETIF_F_GSO_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETIF_F_GSO_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, w21, #4, eq
	b.gt	LBB0_2
LBB0_4:
	ldr	x8, [x20, #8]
	add	x8, x8, #4
Lloh13:
	adrp	x9, _agg_buf_sz@GOTPAGE
Lloh14:
	ldr	x9, [x9, _agg_buf_sz@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_7
; %bb.5:
Lloh16:
	adrp	x8, _NETIF_F_GSO_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETIF_F_GSO_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
LBB0_6:
	bic	w19, w19, w8
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GTTCPHO_MAX,4,2                ; @GTTCPHO_MAX
	.comm	_TCPHO_MAX,4,2                  ; @TCPHO_MAX
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ; @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_GSO_MASK,4,2           ; @NETIF_F_GSO_MASK
	.comm	_agg_buf_sz,8,3                 ; @agg_buf_sz
	.no_dead_strip	_rtl8152_features_check
.subsections_via_symbols
