	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_boot_parse_fw_ver
_wlcore_boot_parse_fw_ver:              ## @wlcore_boot_parse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	(%rsi), %esi
	movl	$8, %edx
	callq	_strncpy
	movq	(%rbx), %rax
	movb	$0, 7(%rax)
	movq	(%rbx), %rdi
	movq	8(%rbx), %rdx
	addq	$4, %rdi
	leaq	4(%rdx), %rcx
	leaq	8(%rdx), %r8
	leaq	12(%rdx), %r9
	leaq	16(%rdx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_sscanf
	cmpl	$5, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wlcore_identify_fw             ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_warning
	movq	8(%rbx), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u.%u.%u.%u.%u"

L_.str.1:                               ## @.str.1
	.asciz	"fw version incorrect value"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wlcore_boot_parse_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_boot_parse_fw_ver
_wlcore_boot_parse_fw_ver:              ; @wlcore_boot_parse_fw_ver
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w1, [x1]
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x19]
	strb	wzr, [x8, #7]
	ldp	x8, x2, [x19]
	add	x0, x8, #4
	add	x3, x2, #4
	add	x4, x2, #8
	add	x5, x2, #12
	add	x6, x2, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sscanf
	cmp	w0, #5
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlcore_identify_fw
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_warning
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u.%u.%u.%u.%u"

l_.str.1:                               ; @.str.1
	.asciz	"fw version incorrect value"

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