	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_set_features
_dm9000_set_features:                   ## @dm9000_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, %r15d
	movq	%rdi, %rbx
	callq	_to_dm9000_board
	movq	%rax, %r14
	movl	(%rbx), %eax
	xorl	%r15d, %eax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DM9000_RCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %r15d
	je	LBB0_3
## %bb.2:
	movq	_RCSR_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_iow
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_4:
	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	_DM9000_RCSR,4,2                ## @DM9000_RCSR
	.comm	_RCSR_CSUM,4,2                  ## @RCSR_CSUM
	.no_dead_strip	_dm9000_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_set_features
_dm9000_set_features:                   ; @dm9000_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	x20, x1
	mov	x21, x0
	bl	_to_dm9000_board
	ldr	w8, [x21]
	eor	w8, w8, w20
Lloh0:
	adrp	x21, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _DM9000_RCSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM9000_RCSR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _RCSR_CSUM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RCSR_CSUM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w2, wzr, w9, eq
	mov	x0, x19
	bl	_iow
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_2:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_DM9000_RCSR,4,2                ; @DM9000_RCSR
	.comm	_RCSR_CSUM,4,2                  ; @RCSR_CSUM
	.no_dead_strip	_dm9000_set_features
.subsections_via_symbols
