	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_validate_fw_ver
_wlcore_validate_fw_ver:                ## @wlcore_validate_fw_ver
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_WL12XX_FW_TYPE_MULTI@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	24(%rdi), %rbx
	setne	%dl
	movq	8(%rdi,%rdx,8), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_FW_VER_CHIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%r13,%rdx,4), %eax
	movq	_WLCORE_FW_VER_IGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	cmpl	(%rbx,%rdx,4), %eax
	jne	LBB0_11
LBB0_2:
	movq	_FW_VER_IF_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	cmpl	%ecx, %esi
	je	LBB0_4
## %bb.3:
	cmpl	(%rbx,%rax,4), %esi
	jne	LBB0_11
LBB0_4:
	movq	_FW_VER_SUBTYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	cmpl	%ecx, %esi
	je	LBB0_6
## %bb.5:
	cmpl	(%rbx,%rax,4), %esi
	jne	LBB0_11
LBB0_6:
	movq	_FW_VER_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	cmpl	%ecx, %esi
	je	LBB0_9
## %bb.7:
	movl	(%rbx,%rax,4), %edi
	cmpl	%edi, %esi
	ja	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	cmpl	%edi, %esi
	jne	LBB0_20
LBB0_9:
	movq	_FW_VER_MINOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r13,%rsi,4), %edi
	xorl	%eax, %eax
	cmpl	%ecx, %edi
	je	LBB0_20
## %bb.10:
	cmpl	(%rbx,%rsi,4), %edi
	jbe	LBB0_20
LBB0_11:
	movq	_NUM_FW_VER@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.12:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	leaq	-80(%rbp), %rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r13,%r12,4), %r8d
	movq	%rbx, %rdi
	movl	$32, %esi
	cmpl	%ecx, %r8d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_WLCORE_FW_VER_IGNORE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incq	%r12
	jmp	LBB0_13
LBB0_18:
	movq	_FW_VER_CHIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movl	(%rbx,%rdx,4), %esi
	movq	_FW_VER_IF_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %edx
	movq	_FW_VER_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %ecx
	movq	_FW_VER_SUBTYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %r8d
	movq	_FW_VER_MINOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %r9d
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1271_error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WL12XX_FW_TYPE_MULTI,8,3       ## @WL12XX_FW_TYPE_MULTI
	.comm	_FW_VER_CHIP,8,3                ## @FW_VER_CHIP
	.comm	_WLCORE_FW_VER_IGNORE,4,2       ## @WLCORE_FW_VER_IGNORE
	.comm	_FW_VER_IF_TYPE,8,3             ## @FW_VER_IF_TYPE
	.comm	_FW_VER_SUBTYPE,8,3             ## @FW_VER_SUBTYPE
	.comm	_FW_VER_MAJOR,8,3               ## @FW_VER_MAJOR
	.comm	_FW_VER_MINOR,8,3               ## @FW_VER_MINOR
	.comm	_NUM_FW_VER,4,2                 ## @NUM_FW_VER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s*."

L_.str.1:                               ## @.str.1
	.asciz	"%s%u."

L_.str.2:                               ## @.str.2
	.asciz	"Your WiFi FW version (%u.%u.%u.%u.%u) is invalid.\nPlease use at least FW %s\nYou can get the latest firmwares at:\ngit://git.ti.com/wilink8-wlan/wl18xx_fw.git"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wlcore_validate_fw_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_validate_fw_ver
_wlcore_validate_fw_ver:                ; @wlcore_validate_fw_ver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x21, [x0, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _WL12XX_FW_TYPE_MULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL12XX_FW_TYPE_MULTI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #16
	mov	w11, #8
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x22, [x0, x8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh6:
	adrp	x25, _FW_VER_CHIP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _FW_VER_CHIP@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w10, [x22, x9, lsl #2]
Lloh8:
	adrp	x28, _WLCORE_FW_VER_IGNORE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WLCORE_FW_VER_IGNORE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _FW_VER_IF_TYPE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FW_VER_IF_TYPE@GOTPAGEOFF]
Lloh12:
	adrp	x23, _FW_VER_SUBTYPE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FW_VER_SUBTYPE@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh14:
	adrp	x13, _FW_VER_MAJOR@GOTPAGE
Lloh15:
	ldr	x13, [x13, _FW_VER_MAJOR@GOTPAGEOFF]
Lloh16:
	adrp	x12, _FW_VER_MINOR@GOTPAGE
Lloh17:
	ldr	x12, [x12, _FW_VER_MINOR@GOTPAGEOFF]
	cmp	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w11, [x21, x9, lsl #2]
	cmp	w10, w11
	b.ne	LBB0_11
LBB0_2:
	ldr	x10, [x26]
	ldr	w11, [x22, x10, lsl #2]
	cmp	w11, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w10, [x21, x10, lsl #2]
	cmp	w11, w10
	b.ne	LBB0_11
LBB0_4:
	ldr	x10, [x23]
	ldr	w11, [x22, x10, lsl #2]
	cmp	w11, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w10, [x21, x10, lsl #2]
	cmp	w11, w10
	b.ne	LBB0_11
LBB0_6:
	ldr	x10, [x13]
	ldr	w11, [x22, x10, lsl #2]
	cmp	w11, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	w10, [x21, x10, lsl #2]
	cmp	w11, w10
	b.hi	LBB0_11
; %bb.8:
	b.ne	LBB0_20
LBB0_9:
	ldr	x10, [x12]
	ldr	w11, [x22, x10, lsl #2]
	cmp	w11, w8
	b.eq	LBB0_20
; %bb.10:
	ldr	w10, [x21, x10, lsl #2]
	cmp	w11, w10
	b.ls	LBB0_20
LBB0_11:
Lloh18:
	adrp	x24, _NUM_FW_VER@GOTPAGE
Lloh19:
	ldr	x24, [x24, _NUM_FW_VER@GOTPAGEOFF]
	ldr	w10, [x24]
	cmp	w10, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x27, #0
Lloh20:
	adrp	x19, l_.str@PAGE
Lloh21:
	add	x19, x19, l_.str@PAGEOFF
Lloh22:
	adrp	x20, l_.str.1@PAGE
Lloh23:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x27, lsl #2]
	cmp	w9, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #16
	add	x3, sp, #16
	mov	w1, #32
	mov	x2, x19
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x9, [sp]
	add	x0, sp, #16
	add	x3, sp, #16
	mov	w1, #32
	mov	x2, x20
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_snprintf
	add	x27, x27, #1
	ldrsw	x8, [x24]
	cmp	x27, x8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x28]
	b	LBB0_13
LBB0_18:
	ldr	x9, [x25]
Lloh24:
	adrp	x12, _FW_VER_MINOR@GOTPAGE
Lloh25:
	ldr	x12, [x12, _FW_VER_MINOR@GOTPAGEOFF]
Lloh26:
	adrp	x13, _FW_VER_MAJOR@GOTPAGE
Lloh27:
	ldr	x13, [x13, _FW_VER_MAJOR@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x21, x9, lsl #2]
	ldr	x8, [x26]
	ldr	w2, [x21, x8, lsl #2]
	ldr	x8, [x13]
	ldr	w3, [x21, x8, lsl #2]
	ldr	x8, [x23]
	ldr	w4, [x21, x8, lsl #2]
	ldr	x8, [x12]
	ldr	w5, [x21, x8, lsl #2]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x6, sp, #16
	bl	_wl1271_error
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_WL12XX_FW_TYPE_MULTI,8,3       ; @WL12XX_FW_TYPE_MULTI
	.comm	_FW_VER_CHIP,8,3                ; @FW_VER_CHIP
	.comm	_WLCORE_FW_VER_IGNORE,4,2       ; @WLCORE_FW_VER_IGNORE
	.comm	_FW_VER_IF_TYPE,8,3             ; @FW_VER_IF_TYPE
	.comm	_FW_VER_SUBTYPE,8,3             ; @FW_VER_SUBTYPE
	.comm	_FW_VER_MAJOR,8,3               ; @FW_VER_MAJOR
	.comm	_FW_VER_MINOR,8,3               ; @FW_VER_MINOR
	.comm	_NUM_FW_VER,4,2                 ; @NUM_FW_VER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s*."

l_.str.1:                               ; @.str.1
	.asciz	"%s%u."

l_.str.2:                               ; @.str.2
	.asciz	"Your WiFi FW version (%u.%u.%u.%u.%u) is invalid.\nPlease use at least FW %s\nYou can get the latest firmwares at:\ngit://git.ti.com/wilink8-wlan/wl18xx_fw.git"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wlcore_validate_fw_ver
.subsections_via_symbols
