	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_set_rx_stash_size
_gfar_set_rx_stash_size:                ## @gfar_set_rx_stash_size
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_net_dev
	movl	%eax, %edi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, %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, (%r13)
	je	LBB0_5
## %bb.1:
	movq	%r13, %r15
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	4(%r13), %r12d
	ja	LBB0_4
## %bb.2:
	cmpl	8(%r13), %r12d
	je	LBB0_4
## %bb.3:
	movl	%r12d, 8(%r13)
	movq	16(%r13), %rdi
	addq	$4, %rdi
	callq	_gfar_read
	movq	_ATTRELI_EL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ATTRELI_EL
	orl	%eax, %ebx
	movq	16(%r13), %rdi
	addq	$4, %rdi
	movl	%ebx, %esi
	callq	_gfar_write
	movq	16(%r13), %rdi
	callq	_gfar_read
	movq	_ATTR_BUFSTASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%eax, %ecx
	notl	%esi
	andl	%eax, %esi
	testl	%r12d, %r12d
	cmovnel	%ecx, %esi
	movq	16(%r13), %rdi
	callq	_gfar_write
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_5:
	movq	%r14, %rax
	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_BUF_STASHING,4,2 ## @FSL_GIANFAR_DEV_HAS_BUF_STASHING
	.comm	_ATTRELI_EL_MASK,4,2            ## @ATTRELI_EL_MASK
	.comm	_ATTR_BUFSTASH,4,2              ## @ATTR_BUFSTASH
	.no_dead_strip	_gfar_set_rx_stash_size
.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_size
_gfar_set_rx_stash_size:                ; @gfar_set_rx_stash_size
	.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	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, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.hi	LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w22, w8
	b.eq	LBB0_4
; %bb.3:
	str	w22, [x20, #8]
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_gfar_read
Lloh3:
	adrp	x8, _ATTRELI_EL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATTRELI_EL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w23, w0, w8
	mov	x0, x22
	bl	_ATTRELI_EL
	orr	w1, w23, w0
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_gfar_write
	ldr	x0, [x20, #16]
	bl	_gfar_read
Lloh6:
	adrp	x8, _ATTR_BUFSTASH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATTR_BUFSTASH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w22, #0
	csel	w1, w8, w9, eq
	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, #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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_BUF_STASHING,4,2 ; @FSL_GIANFAR_DEV_HAS_BUF_STASHING
	.comm	_ATTRELI_EL_MASK,4,2            ; @ATTRELI_EL_MASK
	.comm	_ATTR_BUFSTASH,4,2              ; @ATTR_BUFSTASH
	.no_dead_strip	_gfar_set_rx_stash_size
.subsections_via_symbols
