	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_max_rss             ## -- Begin function qlcnic_set_max_rss
	.p2align	4, 0x90
_qlcnic_set_max_rss:                    ## @qlcnic_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_netif_device_detach
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___qlcnic_down
LBB0_2:
	movq	%rbx, %rdi
	callq	_qlcnic_detach
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_enable_mbx_poll
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_free_mbx_intr
LBB0_4:
	movq	%rbx, %rdi
	callq	_qlcnic_teardown_intr
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_qlcnic_setup_intr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_kfree
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_15
LBB0_6:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_register_nic_idc_func
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_setup_mbx_intr
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_disable_mbx_poll
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_qlcnic_attach
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___qlcnic_up
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	_NETDEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_restore_indev_addr
LBB0_13:
	movl	%r14d, %r12d
LBB0_14:
	movq	%r15, %rdi
	callq	_netif_device_attach
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_15:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to setup interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to setup mbx interrupt\n"

	.comm	_NETDEV_UP,4,2                  ## @NETDEV_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_max_rss             ; -- Begin function qlcnic_set_max_rss
	.p2align	2
_qlcnic_set_max_rss:                    ; @qlcnic_set_max_rss
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
	bl	_rtnl_lock
	mov	x0, x19
	bl	_netif_device_detach
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	___qlcnic_down
LBB0_2:
	mov	x0, x21
	bl	_qlcnic_detach
	mov	x0, x21
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_qlcnic_83xx_enable_mbx_poll
	mov	x0, x21
	bl	_qlcnic_83xx_free_mbx_intr
LBB0_4:
	mov	x0, x21
	bl	_qlcnic_teardown_intr
	mov	x0, x21
	mov	x1, x22
	bl	_qlcnic_setup_intr
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_kfree
	ldr	x0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_6:
	mov	x0, x21
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	w1, #1
	bl	_qlcnic_83xx_register_nic_idc_func
	mov	x0, x21
	bl	_qlcnic_83xx_setup_mbx_intr
	mov	x22, x0
	mov	x0, x21
	bl	_qlcnic_83xx_disable_mbx_poll
	cbz	w22, LBB0_9
; %bb.8:
	ldr	x0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_qlcnic_attach
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.11:
	mov	x0, x21
	mov	x1, x19
	bl	___qlcnic_up
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.12:
Lloh4:
	adrp	x8, _NETDEV_UP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETDEV_UP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_restore_indev_addr
LBB0_13:
	mov	x22, x20
LBB0_14:
	mov	x0, x19
	bl	_netif_device_attach
	bl	_rtnl_unlock
LBB0_15:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to setup interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to setup mbx interrupt\n"

	.comm	_NETDEV_UP,4,2                  ; @NETDEV_UP
.subsections_via_symbols
