	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_ethtool_gringparam
_s2io_ethtool_gringparam:               ## @s2io_ethtool_gringparam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	_RXD_MODE_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_MAX_RX_DESC_1@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MAX_RX_DESC_2@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r14)
	movq	%rcx, 16(%r14)
	movq	_MAX_TX_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	movl	8(%rax), %r9d
	xorl	%ecx, %ecx
	movl	$0, %edx
	testl	%r9d, %r9d
	jle	LBB0_14
## %bb.4:
	movq	32(%rax), %rsi
	cmpl	$4, %r9d
	jae	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_6:
	movl	%r9d, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movq	%r8, %rdx
	andq	$-2, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	movdqu	32(%rsi,%rbx,8), %xmm4
	movdqu	48(%rsi,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rdx
	jne	LBB0_9
## %bb.10:
	testb	$1, %r8b
	je	LBB0_12
LBB0_11:
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_12:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpq	%r9, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rdi,8), %edx
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_13
LBB0_14:
	movl	%edx, (%r14)
	movl	%edx, 4(%r14)
	movl	12(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_25
## %bb.15:
	movq	24(%rax), %rsi
	cmpl	$4, %edx
	jae	LBB0_17
## %bb.16:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_17:
	movl	%edx, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rcx
	movq	%rcx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.19:
	movq	%r8, %rcx
	andq	$-2, %rcx
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	movdqu	32(%rsi,%rbx,8), %xmm4
	movdqu	48(%rsi,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rcx
	jne	LBB0_20
## %bb.21:
	testb	$1, %r8b
	je	LBB0_23
LBB0_22:
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_23:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ecx
	cmpq	%rdx, %rdi
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rdi,8), %ecx
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_24
LBB0_25:
	movl	%ecx, 8(%r14)
	movq	_INFO_DBG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	16(%rax), %edx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DBG_PRINT                      ## TAILCALL
LBB0_7:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_18:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_RXD_MODE_1,8,3                 ## @RXD_MODE_1
	.comm	_MAX_RX_DESC_1,8,3              ## @MAX_RX_DESC_1
	.comm	_MAX_RX_DESC_2,8,3              ## @MAX_RX_DESC_2
	.comm	_MAX_TX_DESC,4,2                ## @MAX_TX_DESC
	.comm	_INFO_DBG,4,2                   ## @INFO_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max txds: %d\n"

	.no_dead_strip	_s2io_ethtool_gringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_ethtool_gringparam
_s2io_ethtool_gringparam:               ; @s2io_ethtool_gringparam
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RXD_MODE_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXD_MODE_1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MAX_RX_DESC_1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_RX_DESC_1@GOTPAGEOFF]
Lloh4:
	adrp	x11, _MAX_RX_DESC_2@GOTPAGE
Lloh5:
	ldr	x11, [x11, _MAX_RX_DESC_2@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	stp	x8, x8, [x19, #16]
Lloh7:
	adrp	x8, _MAX_TX_DESC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_TX_DESC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x0, #32]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_7
LBB0_3:
	mov	w11, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	stp	w11, w11, [x19]
	ldr	w8, [x0, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	ldr	x9, [x0, #24]
	cmp	w8, #8
	b.hs	LBB0_13
; %bb.11:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_16
LBB0_12:
	mov	w11, #0
	b	LBB0_18
LBB0_13:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_18
LBB0_16:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	str	w11, [x19, #8]
Lloh10:
	adrp	x8, _INFO_DBG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO_DBG@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w2, [x0, #16]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DBG_PRINT
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RXD_MODE_1,8,3                 ; @RXD_MODE_1
	.comm	_MAX_RX_DESC_1,8,3              ; @MAX_RX_DESC_1
	.comm	_MAX_RX_DESC_2,8,3              ; @MAX_RX_DESC_2
	.comm	_MAX_TX_DESC,4,2                ; @MAX_TX_DESC
	.comm	_INFO_DBG,4,2                   ; @INFO_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max txds: %d\n"

	.no_dead_strip	_s2io_ethtool_gringparam
.subsections_via_symbols
