	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qlcnic_up                    ## -- Begin function __qlcnic_up
	.p2align	4, 0x90
___qlcnic_up:                           ## @__qlcnic_up
	.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	(%rdi), %rax
	movq	_QLCNIC_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %r12
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	%r13, %rdi
	callq	_qlcnic_set_eswitch_port_config
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	callq	_qlcnic_get_lro_mss_capability
	movq	%r13, %rdi
	callq	_qlcnic_fw_create_ctx
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r13)
	jle	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_qlcnic_post_rx_buffers
	incq	%rbx
	movslq	8(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_qlcnic_set_multi
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_qlcnic_fw_cmd_set_mtu
	movq	16(%r13), %rax
	movq	$0, 8(%rax)
	cmpl	$2, 12(%r13)
	jl	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_qlcnic_config_rss
LBB0_10:
	movq	%r13, %rdi
	callq	_qlcnic_config_def_intr_coalesce
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %r14
	je	LBB0_12
## %bb.11:
	movq	_QLCNIC_LRO_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_qlcnic_config_hw_lro
LBB0_12:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	%r13, %rdi
	callq	_qlcnic_napi_enable
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_qlcnic_linkevent_request
	movq	16(%r13), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_netif_tx_start_all_queues
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ## @QLCNIC_ADAPTER_UP_MAGIC
	.comm	_EIO,4,2                        ## @EIO
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_QLCNIC_LRO_ENABLED,4,2         ## @QLCNIC_LRO_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qlcnic_up                    ; -- Begin function __qlcnic_up
	.p2align	2
___qlcnic_up:                           ; @__qlcnic_up
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x23, ___QLCNIC_DEV_UP@GOTPAGE
Lloh4:
	ldr	x23, [x23, ___QLCNIC_DEV_UP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x20, #24
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_qlcnic_set_eswitch_port_config
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_qlcnic_get_lro_mss_capability
	mov	x0, x20
	bl	_qlcnic_fw_create_ctx
	cbz	x0, LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x24, #0
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x22
	bl	_qlcnic_post_rx_buffers
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	add	x24, x24, #4
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_qlcnic_set_multi
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_qlcnic_fw_cmd_set_mtu
	ldr	x8, [x20, #16]
	str	xzr, [x8, #8]
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.le	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	w1, #1
	bl	_qlcnic_config_rss
LBB0_12:
	mov	x0, x20
	bl	_qlcnic_config_def_intr_coalesce
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _QLCNIC_LRO_ENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_LRO_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qlcnic_config_hw_lro
LBB0_14:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x20
	bl	_qlcnic_napi_enable
	mov	x0, x20
	mov	w1, #1
	bl	_qlcnic_linkevent_request
	ldr	x8, [x20, #16]
	str	xzr, [x8]
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ; @QLCNIC_ADAPTER_UP_MAGIC
	.comm	_EIO,4,2                        ; @EIO
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_QLCNIC_LRO_ENABLED,4,2         ; @QLCNIC_LRO_ENABLED
.subsections_via_symbols
