	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_esw_config
_validate_esw_config:                   ## @validate_esw_config
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_qlcnic_82xx_check
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_QLCNIC_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rdi), %rax
	movq	%rax, %rdi
	callq	_readl
	jmp	LBB0_3
LBB0_2:
	movq	_QLC_83XX_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_22
## %bb.4:
	movl	%ebx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r12,%r15), %edi
	callq	_IS_VALID_VLAN
	testl	%eax, %eax
	je	LBB0_6
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 20(%r12,%r15)
	je	LBB0_6
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$40, %r15
	cmpq	%r15, %r13
	je	LBB0_22
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r15), %rbx
	movq	_QLCNIC_MAX_PCI_FUNC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_is_valid_nic_func
	testq	%rax, %rax
	js	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r12,%r15), %eax
	cmpl	$130, %eax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$129, %eax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_QLC_DEV_GET_DRV
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_QLC_83XX_GET_FUNC_PRIVILEGE
	movl	$0, 32(%r12,%r15)
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 28(%r12,%r15)
	jne	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, 12(%r12,%r15)
	jne	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, 16(%r12,%r15)
	je	LBB0_21
LBB0_6:
	movq	_QL_STATUS_INVALID_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DRV_OP_MODE,8,3         ## @QLCNIC_DRV_OP_MODE
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ## @QLC_83XX_DRV_OP_MODE
	.comm	_QLCNIC_MAX_PCI_FUNC,8,3        ## @QLCNIC_MAX_PCI_FUNC
	.comm	_QL_STATUS_INVALID_PARAM,4,2    ## @QL_STATUS_INVALID_PARAM
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_NON_PRIV_FUNC,4,2       ## @QLCNIC_NON_PRIV_FUNC
	.no_dead_strip	_validate_esw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_esw_config
_validate_esw_config:                   ; @validate_esw_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_qlcnic_82xx_check
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _QLCNIC_DRV_OP_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_DRV_OP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _QLC_83XX_DRV_OP_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_DRV_OP_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_QLCRDX
LBB0_3:
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.4:
Lloh6:
	adrp	x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QLCNIC_MAX_PCI_FUNC@GOTPAGEOFF]
	add	x22, x22, #16
Lloh8:
	adrp	x24, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh10:
	adrp	x25, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh11:
	ldr	x25, [x25, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
	mov	w26, w21
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22, #8]
	bl	_IS_VALID_VLAN
	cbz	w0, LBB0_21
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #40
	subs	x26, x26, #1
	b.eq	LBB0_22
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x21, [x22, #-16]
	ldr	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_is_valid_nic_func
	tbnz	x0, #63, LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x22, #-8]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_QLC_DEV_GET_DRV
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_QLC_83XX_GET_FUNC_PRIVILEGE
	str	wzr, [x22, #16]
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22, #12]
	cbnz	w8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x22, #-4]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	cmp	w8, #1
	b.eq	LBB0_7
LBB0_21:
Lloh12:
	adrp	x8, _QL_STATUS_INVALID_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QL_STATUS_INVALID_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DRV_OP_MODE,8,3         ; @QLCNIC_DRV_OP_MODE
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ; @QLC_83XX_DRV_OP_MODE
	.comm	_QLCNIC_MAX_PCI_FUNC,8,3        ; @QLCNIC_MAX_PCI_FUNC
	.comm	_QL_STATUS_INVALID_PARAM,4,2    ; @QL_STATUS_INVALID_PARAM
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_NON_PRIV_FUNC,4,2       ; @QLCNIC_NON_PRIV_FUNC
	.no_dead_strip	_validate_esw_config
.subsections_via_symbols
