	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_fix_features
_stmmac_fix_features:                   ## @stmmac_fix_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	16(%rax), %rdx
	movq	(%rdx), %rcx
	movq	_STMMAC_RX_COE_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	movl	$-1, %ecx
	cmovel	%esi, %ecx
	andl	%r14d, %ecx
	movq	_NETIF_F_CSUM_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	notl	%esi
	andl	%ecx, %esi
	cmpl	$0, 24(%rdx)
	cmovel	%esi, %ecx
	cmpq	$0, 16(%rdx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	cmovgl	%esi, %ecx
LBB0_2:
	cmpq	$0, 8(%rdx)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%ecx, %edx
	setne	%sil
	movl	%esi, (%rax)
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMMAC_RX_COE_NONE,8,3         ## @STMMAC_RX_COE_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_CSUM_MASK,4,2          ## @NETIF_F_CSUM_MASK
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.no_dead_strip	_stmmac_fix_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_fix_features
_stmmac_fix_features:                   ; @stmmac_fix_features
	.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, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x9, [x0, #16]
	ldr	x8, [x9]
Lloh0:
	adrp	x10, _STMMAC_RX_COE_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STMMAC_RX_COE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _NETIF_F_RXCSUM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	x8, x10
	mov	w8, #-1
	csinv	w8, w8, w11, ne
	and	w8, w8, w20
Lloh6:
	adrp	x10, _NETIF_F_CSUM_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NETIF_F_CSUM_MASK@GOTPAGEOFF]
	ldr	w11, [x9, #24]
Lloh8:
	ldr	w10, [x10]
	bic	w10, w8, w10
	cmp	w11, #0
	csel	w8, w10, w8, eq
	ldr	x11, [x9, #16]
	cbz	x11, LBB0_2
; %bb.1:
	ldr	x11, [x19]
Lloh9:
	adrp	x12, _ETH_DATA_LEN@GOTPAGE
Lloh10:
	ldr	x12, [x12, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	csel	w8, w10, w8, gt
LBB0_2:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh12:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	str	w9, [x0]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STMMAC_RX_COE_NONE,8,3         ; @STMMAC_RX_COE_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_CSUM_MASK,4,2          ; @NETIF_F_CSUM_MASK
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.no_dead_strip	_stmmac_fix_features
.subsections_via_symbols
