	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_get_ringparam
_netxen_nic_get_ringparam:              ## @netxen_nic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movl	28(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	24(%rax), %ecx
	addl	16(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movq	(%rax), %rax
	movq	_NETXEN_NIC_GBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPCREL(%rip), %rax
	cmoveq	_MAX_JUMBO_RCV_DESCRIPTORS_1G@GOTPCREL(%rip), %rax
	movq	_MAX_RCV_DESCRIPTORS_10G@GOTPCREL(%rip), %rcx
	cmoveq	_MAX_RCV_DESCRIPTORS_1G@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 4(%rbx)
	movq	_MAX_CMD_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_NIC_GBE,8,3             ## @NETXEN_NIC_GBE
	.comm	_MAX_RCV_DESCRIPTORS_1G,4,2     ## @MAX_RCV_DESCRIPTORS_1G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_1G,4,2 ## @MAX_JUMBO_RCV_DESCRIPTORS_1G
	.comm	_MAX_RCV_DESCRIPTORS_10G,4,2    ## @MAX_RCV_DESCRIPTORS_10G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_10G,4,2 ## @MAX_JUMBO_RCV_DESCRIPTORS_10G
	.comm	_MAX_CMD_DESCRIPTORS,4,2        ## @MAX_CMD_DESCRIPTORS
	.no_dead_strip	_netxen_nic_get_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_get_ringparam
_netxen_nic_get_ringparam:              ; @netxen_nic_get_ringparam
	.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
	ldp	w9, w8, [x0, #24]
	str	w8, [x19, #20]
	ldr	w8, [x0, #16]
	add	w8, w9, w8
	ldr	w9, [x0, #8]
	stp	w9, w8, [x19, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NETXEN_NIC_GBE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETXEN_NIC_GBE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MAX_JUMBO_RCV_DESCRIPTORS_1G@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_JUMBO_RCV_DESCRIPTORS_1G@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MAX_RCV_DESCRIPTORS_1G@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAX_RCV_DESCRIPTORS_1G@GOTPAGEOFF]
Lloh9:
	adrp	x10, _MAX_RCV_DESCRIPTORS_10G@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_RCV_DESCRIPTORS_10G@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x19, #8]
Lloh11:
	adrp	x9, _MAX_CMD_DESCRIPTORS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_CMD_DESCRIPTORS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_NIC_GBE,8,3             ; @NETXEN_NIC_GBE
	.comm	_MAX_RCV_DESCRIPTORS_1G,4,2     ; @MAX_RCV_DESCRIPTORS_1G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_1G,4,2 ; @MAX_JUMBO_RCV_DESCRIPTORS_1G
	.comm	_MAX_RCV_DESCRIPTORS_10G,4,2    ; @MAX_RCV_DESCRIPTORS_10G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_10G,4,2 ; @MAX_JUMBO_RCV_DESCRIPTORS_10G
	.comm	_MAX_CMD_DESCRIPTORS,4,2        ; @MAX_CMD_DESCRIPTORS
	.no_dead_strip	_netxen_nic_get_ringparam
.subsections_via_symbols
