	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_load
_qede_load:                             ## @qede_load
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP_INFO
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	___qede_lock
LBB0_2:
	movq	%r15, %rdi
	callq	_qede_set_num_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	%r15, %rdi
	callq	_qede_alloc_fp_array
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	movq	%r15, %rdi
	callq	_qede_init_fp
	movq	%r15, %rdi
	callq	_qede_alloc_mem_load
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	%r15, %rdi
	callq	_QEDE_RSS_COUNT
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_QEDE_TSS_COUNT
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DP_INFO
	movq	%r15, %rdi
	callq	_qede_set_real_num_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r15, %rdi
	callq	_IS_VF
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	cmpl	$1, 64(%r15)
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_qede_alloc_arfs
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
LBB0_10:
	movq	%r15, %rdi
	callq	_qede_napi_add_enable
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_INFO
	movq	%r15, %rdi
	callq	_qede_setup_irqs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_INFO
	movq	_QEDE_LOAD_RELOAD@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%r12d, (%rax)
	setne	%sil
	movq	%r15, %rdi
	callq	_qede_start_queues
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_qede_sync_free_irqs
	leaq	40(%r15), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_16:
	movq	%r15, %rdi
	callq	_qede_napi_disable_remove
LBB0_17:
	movq	%r15, %rdi
	callq	_qede_free_mem_load
LBB0_18:
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movl	24(%r15), %edi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%r15, %rdi
	callq	_qede_free_fp_array
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
LBB0_19:
	testl	%r14d, %r14d
	jne	LBB0_21
LBB0_20:
	movq	%r15, %rdi
	callq	___qede_unlock
LBB0_21:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_INFO
	movl	52(%r15), %edi
	callq	_netdev_get_num_tc
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	56(%r15), %rax
LBB0_14:
	movl	52(%r15), %edi
	movq	%rax, %rsi
	callq	_qede_setup_tc
	movq	%r15, %rdi
	callq	_qede_configure_vlan_filters
	movq	_QEDE_FLAGS_LINK_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r15), %rsi
	callq	_set_bit
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, -40(%rbp)
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movl	24(%r15), %edi
	movq	%r12, %rsi
	callq	*8(%rax)
	movq	_QEDE_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_INFO
	testl	%r14d, %r14d
	jne	LBB0_21
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting qede load\n"

L_.str.1:                               ## @.str.1
	.asciz	"Allocated %d Rx, %d Tx queues\n"

L_.str.2:                               ## @.str.2
	.asciz	"aRFS memory allocation failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"Napi added and enabled\n"

L_.str.4:                               ## @.str.4
	.asciz	"Setup IRQs succeeded\n"

	.comm	_QEDE_LOAD_RELOAD,4,2           ## @QEDE_LOAD_RELOAD
L_.str.5:                               ## @.str.5
	.asciz	"Start VPORT, RXQ and TXQ succeeded\n"

	.comm	_QEDE_FLAGS_LINK_REQUESTED,4,2  ## @QEDE_FLAGS_LINK_REQUESTED
	.comm	_QEDE_STATE_OPEN,4,2            ## @QEDE_STATE_OPEN
L_.str.6:                               ## @.str.6
	.asciz	"Ending successfully qede load\n"

	.no_dead_strip	_qede_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_load
_qede_load:                             ; @qede_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP_INFO
	cbnz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	___qede_lock
LBB0_2:
	mov	x0, x19
	bl	_qede_set_num_queues
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.3:
	mov	x0, x19
	bl	_qede_alloc_fp_array
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_qede_init_fp
	mov	x0, x19
	bl	_qede_alloc_mem_load
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.5:
	mov	x0, x19
	bl	_QEDE_RSS_COUNT
	mov	x22, x0
	mov	x0, x19
	bl	_QEDE_TSS_COUNT
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	x0, x19
	bl	_qede_set_real_num_queues
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_IS_VF
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w8, [x19, #64]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_qede_alloc_arfs
	cbz	w0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_10:
	mov	x0, x19
	bl	_qede_napi_add_enable
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	x0, x19
	bl	_qede_setup_irqs
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.11:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
Lloh10:
	adrp	x8, _QEDE_LOAD_RELOAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QEDE_LOAD_RELOAD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w1, ne
	mov	x0, x19
	bl	_qede_start_queues
	cbz	w0, LBB0_19
; %bb.12:
	mov	x22, x0
	mov	x0, x19
	bl	_qede_sync_free_irqs
	add	x0, x19, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_13:
	mov	x0, x19
	bl	_qede_napi_disable_remove
LBB0_14:
	mov	x0, x19
	bl	_qede_free_mem_load
LBB0_15:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #24]
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_qede_free_fp_array
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
LBB0_16:
	cbnz	w20, LBB0_18
LBB0_17:
	mov	x0, x19
	bl	___qede_unlock
LBB0_18:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_19:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	ldr	w0, [x19, #52]
	bl	_netdev_get_num_tc
	mov	x1, x0
	cbnz	x0, LBB0_21
; %bb.20:
	ldr	x1, [x19, #56]
LBB0_21:
	ldr	w0, [x19, #52]
	bl	_qede_setup_tc
	mov	x0, x19
	bl	_qede_configure_vlan_filters
Lloh15:
	adrp	x8, _QEDE_FLAGS_LINK_REQUESTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QEDE_FLAGS_LINK_REQUESTED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_set_bit
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #24]
	add	x1, sp, #24
	blr	x8
Lloh18:
	adrp	x8, _QEDE_STATE_OPEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QEDE_STATE_OPEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	w22, #0
	cbnz	w20, LBB0_18
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting qede load\n"

l_.str.1:                               ; @.str.1
	.asciz	"Allocated %d Rx, %d Tx queues\n"

l_.str.2:                               ; @.str.2
	.asciz	"aRFS memory allocation failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"Napi added and enabled\n"

l_.str.4:                               ; @.str.4
	.asciz	"Setup IRQs succeeded\n"

	.comm	_QEDE_LOAD_RELOAD,4,2           ; @QEDE_LOAD_RELOAD
l_.str.5:                               ; @.str.5
	.asciz	"Start VPORT, RXQ and TXQ succeeded\n"

	.comm	_QEDE_FLAGS_LINK_REQUESTED,4,2  ; @QEDE_FLAGS_LINK_REQUESTED
	.comm	_QEDE_STATE_OPEN,4,2            ; @QEDE_STATE_OPEN
l_.str.6:                               ; @.str.6
	.asciz	"Ending successfully qede load\n"

	.no_dead_strip	_qede_load
.subsections_via_symbols
