	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_check_nvs_mac
_wl1251_check_nvs_mac:                  ## @wl1251_check_nvs_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$35, (%rdi)
	jg	LBB0_2
## %bb.1:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	8(%rdi), %rcx
	movq	_NVS_OFF_MAC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rcx,%rax,4)
	jne	LBB0_5
## %bb.3:
	movq	_NVS_OFF_MAC_ADDR_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$109, (%rcx,%rax,4)
	jne	LBB0_5
## %bb.4:
	movq	_NVS_OFF_MAC_ADDR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpl	$84, (%rcx,%rdx,4)
	je	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_NVS_OFF_MAC_LEN,8,3            ## @NVS_OFF_MAC_LEN
	.comm	_NVS_OFF_MAC_ADDR_LO,8,3        ## @NVS_OFF_MAC_ADDR_LO
	.comm	_NVS_OFF_MAC_ADDR_HI,8,3        ## @NVS_OFF_MAC_ADDR_HI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wl1251_check_nvs_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_check_nvs_mac
_wl1251_check_nvs_mac:                  ; @wl1251_check_nvs_mac
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #35
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x0, #8]
Lloh2:
	adrp	x9, _NVS_OFF_MAC_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NVS_OFF_MAC_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #2
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x9, _NVS_OFF_MAC_ADDR_LO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NVS_OFF_MAC_ADDR_LO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #109
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x9, _NVS_OFF_MAC_ADDR_HI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NVS_OFF_MAC_ADDR_HI@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #84
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_NVS_OFF_MAC_LEN,8,3            ; @NVS_OFF_MAC_LEN
	.comm	_NVS_OFF_MAC_ADDR_LO,8,3        ; @NVS_OFF_MAC_ADDR_LO
	.comm	_NVS_OFF_MAC_ADDR_HI,8,3        ; @NVS_OFF_MAC_ADDR_HI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wl1251_check_nvs_mac
.subsections_via_symbols
