	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fe_set_ringparam
_fe_set_ringparam:                      ## @fe_set_ringparam
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.1:
	movl	4(%rbx), %ecx
	cmpl	$2, %ecx
	jl	LBB0_4
## %bb.2:
	movq	_MAX_DMA_DESC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jg	LBB0_4
## %bb.3:
	cmpl	%edx, %eax
	jg	LBB0_4
## %bb.5:
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movl	(%rbx), %edi
	callq	_fls
	leaq	-1(%rax), %rdi
	callq	_BIT
	movq	%rax, 8(%r14)
	movl	4(%rbx), %edi
	callq	_fls
	leaq	-1(%rax), %rdi
	callq	_BIT
	movq	%rax, (%r14)
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DMA_DESC,4,2               ## @MAX_DMA_DESC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fe_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fe_set_ringparam
_fe_set_ringparam:                      ; @fe_set_ringparam
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	w9, [x21, #4]
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x10, _MAX_DMA_DESC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_DMA_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	ccmp	w8, w10, #0, le
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	w0, [x21]
	bl	_fls
	sub	x0, x0, #1
	bl	_BIT
	str	x0, [x20, #8]
	ldr	w0, [x21, #4]
	bl	_fls
	sub	x0, x0, #1
	bl	_BIT
	str	x0, [x20]
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DMA_DESC,4,2               ; @MAX_DMA_DESC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fe_set_ringparam
.subsections_via_symbols
