	.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
	subq	$24, %rsp
	.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, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r15
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_QLCNIC_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	jmp	LBB0_3
LBB0_2:
	movq	_QLC_83XX_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	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), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r13,%r12), %edi
	callq	_IS_VALID_VLAN
	testl	%eax, %eax
	je	LBB0_6
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 20(%r13,%r12)
	je	LBB0_6
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$40, %r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_22
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12), %rbx
	cmpq	(%r15), %rbx
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	8(%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(%r13,%r12), %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(%r13,%r12)
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(%r13,%r12)
	jne	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, 12(%r13,%r12)
	jne	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, 16(%r13,%r12)
	je	LBB0_21
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$24, %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	_EINVAL,4,2                     ## @EINVAL
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0]
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
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]
	mov	x0, x20
	bl	_QLCRDX
LBB0_3:
	mov	x21, x0
	cmp	w22, #1
	b.lt	LBB0_22
; %bb.4:
	add	x23, x23, #16
Lloh6:
	adrp	x24, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh8:
	adrp	x25, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh9:
	ldr	x25, [x25, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
	mov	w26, w22
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, #8]
	bl	_IS_VALID_VLAN
	cbz	w0, LBB0_21
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #40
	subs	x26, x26, #1
	b.eq	LBB0_22
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x22, [x23, #-16]
	ldr	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_qlcnic_is_valid_nic_func
	tbnz	x0, #63, LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x23, #-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, x21
	mov	x1, x22
	bl	_QLC_DEV_GET_DRV
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_QLC_83XX_GET_FUNC_PRIVILEGE
	str	wzr, [x23, #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, [x23, #12]
	cbnz	w8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x23, #-4]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.eq	LBB0_7
LBB0_21:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_EINVAL,4,2                     ; @EINVAL
	.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
