	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_store_max_rss
_qlcnic_store_max_rss:                  ## @qlcnic_store_max_rss
	.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	%rcx, %rbx
	movq	%rdx, %r13
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	24(%rax), %r14
	movq	%rax, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %r12
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strict_strtoul
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_QLCNIC_MSI_ENABLED@GOTPCREL(%rip), %rax
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	je	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rsi
	cmpq	8(%r15), %rsi
	je	LBB0_15
## %bb.10:
	movq	%r15, %rdi
	callq	_qlcnic_validate_max_rss
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	jmp	LBB0_5
LBB0_16:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_qlcnic_set_max_rss
	movl	%eax, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_MSI_ENABLED,4,2         ## @QLCNIC_MSI_ENABLED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no msix or msi support, hence no rss\n"

L_.str.1:                               ## @.str.1
	.asciz	"rss_ring valid range[1 - %d] in powers of 2\n"

L_.str.2:                               ## @.str.2
	.asciz	"allocated 0x%x sds rings\n"

	.no_dead_strip	_qlcnic_store_max_rss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_store_max_rss
_qlcnic_store_max_rss:                  ; @qlcnic_store_max_rss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x23, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x19, [x0, #24]
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x24, ___QLCNIC_RESETTING@GOTPAGE
Lloh3:
	ldr	x24, [x24, ___QLCNIC_RESETTING@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x20, #16
	mov	x1, x22
	bl	_test_and_set_bit
	cbz	x0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_strict_strtoul
	cbnz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _QLCNIC_MSI_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLCNIC_MSI_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	ldr	x1, [sp, #8]
	ldr	x8, [x20, #8]
	cmp	x1, x8
	b.eq	LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_qlcnic_validate_max_rss
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.10:
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_netdev_err
LBB0_13:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_clear_bit
	ldr	x2, [x20, #8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	b	LBB0_5
LBB0_15:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_qlcnic_set_max_rss
	mov	x21, x0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_MSI_ENABLED,4,2         ; @QLCNIC_MSI_ENABLED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no msix or msi support, hence no rss\n"

l_.str.1:                               ; @.str.1
	.asciz	"rss_ring valid range[1 - %d] in powers of 2\n"

l_.str.2:                               ; @.str.2
	.asciz	"allocated 0x%x sds rings\n"

	.no_dead_strip	_qlcnic_store_max_rss
.subsections_via_symbols
