	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_ringparam
_qlcnic_set_ringparam:                  ## @qlcnic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %r15
	movl	8(%rbx), %edi
	movq	_MIN_RCV_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r15), %edx
	leaq	L_.str(%rip), %rcx
	callq	_qlcnic_validate_ringparam
	movq	%rax, %r14
	movl	4(%rbx), %edi
	movq	_MIN_JUMBO_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_qlcnic_validate_ringparam
	movq	%rax, %r12
	movl	(%rbx), %edi
	movq	_MIN_CMD_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_CMD_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	callq	_qlcnic_validate_ringparam
	cmpq	(%r15), %r14
	jne	LBB0_6
## %bb.3:
	cmpq	8(%r15), %rax
	jne	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	cmpq	16(%r15), %r12
	je	LBB0_5
LBB0_6:
	movq	%r14, (%r15)
	movq	%r12, 16(%r15)
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qlcnic_reset_context           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.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,4,2        ## @MAX_CMD_DESCRIPTORS
L_.str.2:                               ## @.str.2
	.asciz	"tx"

	.no_dead_strip	_qlcnic_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_ringparam
_qlcnic_set_ringparam:                  ; @qlcnic_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	x21, x1
	bl	_netdev_priv
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	mov	x19, x0
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _MIN_RCV_DESCRIPTORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_RCV_DESCRIPTORS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_qlcnic_validate_ringparam
	mov	x20, x0
	ldr	w0, [x21, #4]
Lloh8:
	adrp	x8, _MIN_JUMBO_DESCRIPTORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIN_JUMBO_DESCRIPTORS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_qlcnic_validate_ringparam
	mov	x22, x0
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _MIN_CMD_DESCRIPTORS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIN_CMD_DESCRIPTORS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MAX_CMD_DESCRIPTORS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_CMD_DESCRIPTORS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_qlcnic_validate_ringparam
	ldr	x8, [x19]
	cmp	x20, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_2
LBB0_7:
	stp	x0, x22, [x19, #8]
	str	x20, [x19]
	mov	x0, x19
	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	_qlcnic_reset_context
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.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,4,2        ; @MAX_CMD_DESCRIPTORS
l_.str.2:                               ; @.str.2
	.asciz	"tx"

	.no_dead_strip	_qlcnic_set_ringparam
.subsections_via_symbols
