	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_set_rx_stash_index
_gfar_set_rx_stash_index:               ## @gfar_set_rx_stash_index
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_to_net_dev
	movl	%eax, %edi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	movq	_FSL_GIANFAR_DEV_HAS_BUF_STASHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpw	4(%rbx), %r12w
	ja	LBB0_4
## %bb.2:
	cmpw	6(%rbx), %r12w
	je	LBB0_4
## %bb.3:
	movw	%r12w, 6(%rbx)
	movq	16(%rbx), %rdi
	callq	_gfar_read
	movzwl	%r12w, %edi
	callq	_ATTRELI_EI
	movq	16(%rbx), %rdi
	callq	_gfar_write
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_BUF_STASHING,4,2 ## @FSL_GIANFAR_DEV_HAS_BUF_STASHING
	.comm	_ATTRELI_EI_MASK,4,2            ## @ATTRELI_EI_MASK
	.no_dead_strip	_gfar_set_rx_stash_index
.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_stash_index
_gfar_set_rx_stash_index:               ; @gfar_set_rx_stash_index
	.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, x3
	mov	x21, x2
	bl	_to_net_dev
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtoul
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FSL_GIANFAR_DEV_HAS_BUF_STASHING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSL_GIANFAR_DEV_HAS_BUF_STASHING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldrh	w8, [x20, #4]
	cmp	w22, w8
	b.hi	LBB0_4
; %bb.2:
	ldrh	w8, [x20, #6]
	cmp	w22, w8
	b.eq	LBB0_4
; %bb.3:
	strh	w22, [x20, #6]
	ldr	x0, [x20, #16]
	bl	_gfar_read
	mov	x0, x22
	bl	_ATTRELI_EI
	ldr	x0, [x20, #16]
	bl	_gfar_write
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_5:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_BUF_STASHING,4,2 ; @FSL_GIANFAR_DEV_HAS_BUF_STASHING
	.comm	_ATTRELI_EI_MASK,4,2            ; @ATTRELI_EI_MASK
	.no_dead_strip	_gfar_set_rx_stash_index
.subsections_via_symbols
