	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_ethtool_get_ringparam
_lio_ethtool_get_ringparam:             ## @lio_ethtool_get_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	%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	%rsi, %r14
	callq	_GET_LIO
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	_LIO_IFSTATE_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ifstate_check
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	_OCTEON_CN6XXX
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_cn6xxx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CHIP_CONF
	movq	%rax, %r12
	movq	_CN6XXX_MAX_IQ_DESCRIPTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CN6XXX_MAX_OQ_DESCRIPTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_CFG_GET_NUM_RX_DESCS_NIC_IF
	movq	%rax, %r15
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_CFG_GET_NUM_TX_DESCS_NIC_IF
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_OCTEON_CN23XX_VF
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_CN23XX_MAX_IQ_DESCRIPTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_CN23XX_MAX_OQ_DESCRIPTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r15
	movq	(%rax), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	%rax, 56(%r14)
	movq	%rsi, 48(%r14)
	movq	%r15, 40(%r14)
	movq	%r13, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movups	%xmm0, 16(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_IFSTATE_RESETTING,4,2      ## @LIO_IFSTATE_RESETTING
	.comm	_cn6xxx,4,2                     ## @cn6xxx
	.comm	_CN6XXX_MAX_IQ_DESCRIPTORS,8,3  ## @CN6XXX_MAX_IQ_DESCRIPTORS
	.comm	_CN6XXX_MAX_OQ_DESCRIPTORS,8,3  ## @CN6XXX_MAX_OQ_DESCRIPTORS
	.comm	_CN23XX_MAX_IQ_DESCRIPTORS,8,3  ## @CN23XX_MAX_IQ_DESCRIPTORS
	.comm	_CN23XX_MAX_OQ_DESCRIPTORS,8,3  ## @CN23XX_MAX_OQ_DESCRIPTORS
	.no_dead_strip	_lio_ethtool_get_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_ethtool_get_ringparam
_lio_ethtool_get_ringparam:             ; @lio_ethtool_get_ringparam
	.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, x1
	bl	_GET_LIO
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _LIO_IFSTATE_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIO_IFSTATE_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ifstate_check
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_OCTEON_CN6XXX
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _cn6xxx@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cn6xxx@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_CHIP_CONF
	mov	x22, x0
Lloh6:
	adrp	x8, _CN6XXX_MAX_IQ_DESCRIPTORS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CN6XXX_MAX_IQ_DESCRIPTORS@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
Lloh9:
	adrp	x8, _CN6XXX_MAX_OQ_DESCRIPTORS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CN6XXX_MAX_OQ_DESCRIPTORS@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	ldr	w1, [x21]
	bl	_CFG_GET_NUM_RX_DESCS_NIC_IF
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x22
	bl	_CFG_GET_NUM_TX_DESCS_NIC_IF
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_OCTEON_CN23XX_PF
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_OCTEON_CN23XX_VF
	cbz	x0, LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _CN23XX_MAX_IQ_DESCRIPTORS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CN23XX_MAX_IQ_DESCRIPTORS@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
Lloh15:
	adrp	x8, _CN23XX_MAX_OQ_DESCRIPTORS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CN23XX_MAX_OQ_DESCRIPTORS@GOTPAGEOFF]
Lloh17:
	ldr	x24, [x8]
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x9]
	ldr	x0, [x8]
LBB0_6:
	stp	x23, x0, [x19, #48]
	stp	x24, x20, [x19, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
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
LBB0_8:
	mov	x24, #0
	mov	x20, #0
	mov	x23, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_IFSTATE_RESETTING,4,2      ; @LIO_IFSTATE_RESETTING
	.comm	_cn6xxx,4,2                     ; @cn6xxx
	.comm	_CN6XXX_MAX_IQ_DESCRIPTORS,8,3  ; @CN6XXX_MAX_IQ_DESCRIPTORS
	.comm	_CN6XXX_MAX_OQ_DESCRIPTORS,8,3  ; @CN6XXX_MAX_OQ_DESCRIPTORS
	.comm	_CN23XX_MAX_IQ_DESCRIPTORS,8,3  ; @CN23XX_MAX_IQ_DESCRIPTORS
	.comm	_CN23XX_MAX_OQ_DESCRIPTORS,8,3  ; @CN23XX_MAX_OQ_DESCRIPTORS
	.no_dead_strip	_lio_ethtool_get_ringparam
.subsections_via_symbols
