	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_set_rx_csum
_dm9000_set_rx_csum:                    ## @dm9000_set_rx_csum
	.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
	movq	%rsi, %r14
	callq	_to_dm9000_board
	cmpq	$0, 16(%rax)
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_DM9000_RCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	movl	$0, %edx
	je	LBB0_3
## %bb.2:
	movq	_RCSR_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	%rbx, %rdi
	callq	_iow
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_5
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_RCSR,4,2                ## @DM9000_RCSR
	.comm	_RCSR_CSUM,4,2                  ## @RCSR_CSUM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_dm9000_set_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_set_rx_csum
_dm9000_set_rx_csum:                    ; @dm9000_set_rx_csum
	.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
	bl	_to_dm9000_board
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _DM9000_RCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM9000_RCSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _RCSR_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCSR_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	bl	_iow
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_RCSR,4,2                ; @DM9000_RCSR
	.comm	_RCSR_CSUM,4,2                  ; @RCSR_CSUM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_dm9000_set_rx_csum
.subsections_via_symbols
