	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_set_features
_gmac_set_features:                     ## @gmac_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_GMAC_CONFIG0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_CONFIG0_RX_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ecx
	orl	%eax, %ecx
	notl	%edi
	andl	%eax, %edi
	testl	%r14d, %r14d
	cmovnel	%ecx, %edi
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	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	_GMAC_CONFIG0,8,3               ## @GMAC_CONFIG0
	.comm	_CONFIG0_RX_CHKSUM,4,2          ## @CONFIG0_RX_CHKSUM
	.no_dead_strip	_gmac_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_set_features
_gmac_set_features:                     ; @gmac_set_features
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x22, _GMAC_CONFIG0@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GMAC_CONFIG0@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _CONFIG0_RX_CHKSUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG0_RX_CHKSUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	tst	w21, w19
	csel	w0, w8, w9, eq
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_GMAC_CONFIG0,8,3               ; @GMAC_CONFIG0
	.comm	_CONFIG0_RX_CHKSUM,4,2          ; @CONFIG0_RX_CHKSUM
	.no_dead_strip	_gmac_set_features
.subsections_via_symbols
