	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_set_ringparam
_netxen_nic_set_ringparam:              ## @netxen_nic_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	%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	_netdev_priv
	movq	%rax, %rbx
	movq	_MAX_RCV_DESCRIPTORS_10G@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movl	32(%rbx), %edi
	callq	_NX_IS_REVISION_P2
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r14)
	je	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	24(%rbx), %rax
	movq	_NETXEN_NIC_GBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_MAX_RCV_DESCRIPTORS_1G@GOTPCREL(%rip), %rax
	movq	(%r13), %r15
	movq	(%rax), %r12
LBB0_5:
	movl	8(%r14), %edi
	movq	_MIN_RCV_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdx
	callq	_netxen_validate_ringparam
	movq	%rax, %r12
	movl	4(%r14), %edi
	movq	_MIN_JUMBO_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdx
	callq	_netxen_validate_ringparam
	movq	%rax, %r15
	movl	(%r14), %edi
	movq	_MIN_CMD_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_CMD_DESCRIPTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rcx
	callq	_netxen_validate_ringparam
	cmpq	(%rbx), %r12
	jne	LBB0_9
## %bb.6:
	cmpq	8(%rbx), %rax
	jne	LBB0_9
## %bb.7:
	xorl	%ecx, %ecx
	cmpq	16(%rbx), %r15
	je	LBB0_8
LBB0_9:
	movq	%r12, (%rbx)
	movq	%r15, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netxen_nic_reset_context       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RCV_DESCRIPTORS_10G,8,3    ## @MAX_RCV_DESCRIPTORS_10G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_10G,8,3 ## @MAX_JUMBO_RCV_DESCRIPTORS_10G
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NETXEN_NIC_GBE,8,3             ## @NETXEN_NIC_GBE
	.comm	_MAX_RCV_DESCRIPTORS_1G,8,3     ## @MAX_RCV_DESCRIPTORS_1G
	.comm	_MIN_RCV_DESCRIPTORS,4,2        ## @MIN_RCV_DESCRIPTORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx"

	.comm	_MIN_JUMBO_DESCRIPTORS,4,2      ## @MIN_JUMBO_DESCRIPTORS
L_.str.1:                               ## @.str.1
	.asciz	"rx jumbo"

	.comm	_MIN_CMD_DESCRIPTORS,4,2        ## @MIN_CMD_DESCRIPTORS
	.comm	_MAX_CMD_DESCRIPTORS,8,3        ## @MAX_CMD_DESCRIPTORS
L_.str.2:                               ## @.str.2
	.asciz	"tx"

	.no_dead_strip	_netxen_nic_set_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_set_ringparam
_netxen_nic_set_ringparam:              ; @netxen_nic_set_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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_RCV_DESCRIPTORS_10G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RCV_DESCRIPTORS_10G@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x23, _MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_JUMBO_RCV_DESCRIPTORS_10G@GOTPAGEOFF]
	ldr	x22, [x23]
	ldr	w0, [x0, #32]
	bl	_NX_IS_REVISION_P2
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _NETXEN_NIC_GBE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETXEN_NIC_GBE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _MAX_RCV_DESCRIPTORS_1G@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MAX_RCV_DESCRIPTORS_1G@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x11, [x23]
	cmp	x8, x9
	csel	x22, x11, x22, eq
	csel	x2, x10, x21, eq
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x8, _MIN_RCV_DESCRIPTORS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MIN_RCV_DESCRIPTORS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netxen_validate_ringparam
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh19:
	adrp	x8, _MIN_JUMBO_DESCRIPTORS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MIN_JUMBO_DESCRIPTORS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_netxen_validate_ringparam
	mov	x22, x0
	ldr	w0, [x20]
Lloh24:
	adrp	x8, _MIN_CMD_DESCRIPTORS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MIN_CMD_DESCRIPTORS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MAX_CMD_DESCRIPTORS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX_CMD_DESCRIPTORS@GOTPAGEOFF]
Lloh29:
	ldr	x2, [x8]
Lloh30:
	adrp	x3, l_.str.2@PAGE
Lloh31:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_netxen_validate_ringparam
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	cmp	x22, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_3
LBB0_8:
	stp	x0, x22, [x19, #8]
	str	x21, [x19]
	mov	x0, x19
	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
	b	_netxen_nic_reset_context
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RCV_DESCRIPTORS_10G,8,3    ; @MAX_RCV_DESCRIPTORS_10G
	.comm	_MAX_JUMBO_RCV_DESCRIPTORS_10G,8,3 ; @MAX_JUMBO_RCV_DESCRIPTORS_10G
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NETXEN_NIC_GBE,8,3             ; @NETXEN_NIC_GBE
	.comm	_MAX_RCV_DESCRIPTORS_1G,8,3     ; @MAX_RCV_DESCRIPTORS_1G
	.comm	_MIN_RCV_DESCRIPTORS,4,2        ; @MIN_RCV_DESCRIPTORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx"

	.comm	_MIN_JUMBO_DESCRIPTORS,4,2      ; @MIN_JUMBO_DESCRIPTORS
l_.str.1:                               ; @.str.1
	.asciz	"rx jumbo"

	.comm	_MIN_CMD_DESCRIPTORS,4,2        ; @MIN_CMD_DESCRIPTORS
	.comm	_MAX_CMD_DESCRIPTORS,8,3        ; @MAX_CMD_DESCRIPTORS
l_.str.2:                               ; @.str.2
	.asciz	"tx"

	.no_dead_strip	_netxen_nic_set_ringparam
.subsections_via_symbols
