	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_set_rx_csum
_gfar_set_rx_csum:                      ## @gfar_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_FSL_GIANFAR_DEV_HAS_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movq	_IFF_UP@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movl	%r12d, %ebx
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_gfar_halt
	movq	%r13, %rdi
	movq	_IFF_UP@GOTPCREL(%rip), %r13
	callq	_spin_unlock
	movq	%r12, %rdi
	movl	%ebx, %r12d
	callq	_spin_unlock_irqrestore
	movl	12(%r14), %esi
	movq	%r15, %rdi
	callq	_gfar_clean_rx_ring
	movq	%r15, %rdi
	callq	_stop_gfar
LBB0_4:
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	%r12d, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_startup_gfar
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_netif_wake_queue
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_CSUM,4,2   ## @FSL_GIANFAR_DEV_HAS_CSUM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.no_dead_strip	_gfar_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 gfar_set_rx_csum
_gfar_set_rx_csum:                      ; @gfar_set_rx_csum
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FSL_GIANFAR_DEV_HAS_CSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSL_GIANFAR_DEV_HAS_CSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19]
Lloh3:
	adrp	x24, _IFF_UP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IFF_UP@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	add	x22, x21, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x23, x21, #20
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x19
	bl	_gfar_halt
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_gfar_clean_rx_ring
	mov	x0, x19
	bl	_stop_gfar
LBB0_3:
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	str	w20, [x21, #8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_startup_gfar
	mov	x20, x0
	mov	x0, x19
	bl	_netif_wake_queue
	mov	x0, x20
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_CSUM,4,2   ; @FSL_GIANFAR_DEV_HAS_CSUM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.no_dead_strip	_gfar_set_rx_csum
.subsections_via_symbols
