	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_ethtool_set_ringparam
_ef4_ethtool_set_ringparam:             ## @ef4_ethtool_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
	callq	_netdev_priv
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_EF4_MAX_DMAQ_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_6
## %bb.3:
	movq	8(%rbx), %r15
	cmpq	%rcx, %r15
	jg	LBB0_6
## %bb.4:
	movq	_EF4_RXQ_MIN_ENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	cmpq	%r8, %rax
	jge	LBB0_7
## %bb.5:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_EF4_TXQ_MIN_ENT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_max
	movq	%rax, %r15
	cmpq	8(%rbx), %rax
	je	LBB0_9
## %bb.8:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_netif_warn
LBB0_9:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ef4_realloc_channels           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EF4_MAX_DMAQ_SIZE,8,3          ## @EF4_MAX_DMAQ_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EF4_RXQ_MIN_ENT,8,3            ## @EF4_RXQ_MIN_ENT
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX queues cannot be smaller than %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"increasing TX queue size to minimum of %u\n"

	.no_dead_strip	_ef4_ethtool_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_ethtool_set_ringparam
_ef4_ethtool_set_ringparam:             ; @ef4_ethtool_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	x20, x1
	bl	_netdev_priv
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _EF4_MAX_DMAQ_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EF4_MAX_DMAQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.3:
	ldr	x21, [x20, #8]
	cmp	x21, x9
	b.gt	LBB0_6
; %bb.4:
	mov	x19, x0
Lloh3:
	adrp	x9, _EF4_RXQ_MIN_ENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EF4_RXQ_MIN_ENT@GOTPAGEOFF]
Lloh5:
	ldr	x4, [x9]
	cmp	x8, x4
	b.ge	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _drv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	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_7:
	mov	x0, x19
	bl	_EF4_TXQ_MIN_ENT
	mov	x1, x0
	mov	x0, x21
	bl	_max
	mov	x21, x0
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _drv@GOTPAGE
Lloh15:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_netif_warn
LBB0_9:
	ldr	x1, [x20]
	mov	x0, x19
	mov	x2, x21
	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
	b	_ef4_realloc_channels
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EF4_MAX_DMAQ_SIZE,8,3          ; @EF4_MAX_DMAQ_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EF4_RXQ_MIN_ENT,8,3            ; @EF4_RXQ_MIN_ENT
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX queues cannot be smaller than %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"increasing TX queue size to minimum of %u\n"

	.no_dead_strip	_ef4_ethtool_set_ringparam
.subsections_via_symbols
