	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_write_nvs_mac
_wl1251_write_nvs_mac:                  ## @wl1251_write_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_wl1251_check_nvs_mac
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movq	(%r14), %r10
	movq	8(%r14), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	movq	_NVS_OFF_MAC_DATA@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	%edi, %ebx
	movslq	%ebx, %rbx
	movl	(%r10,%rbx,4), %ebx
	movslq	(%r9), %rdx
	addq	%rcx, %rdx
	movl	%ebx, (%rsi,%rdx,4)
	movl	(%r8), %ebx
	incq	%rcx
	decl	%edi
	cmpl	%ecx, %ebx
	jg	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NVS_OFF_MAC_DATA,4,2           ## @NVS_OFF_MAC_DATA
	.no_dead_strip	_wl1251_write_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_write_nvs_mac
_wl1251_write_nvs_mac:                  ; @wl1251_write_nvs_mac
	.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
	bl	_wl1251_check_nvs_mac
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldp	x10, x12, [x19]
	mov	w13, #-1
Lloh2:
	adrp	x14, _NVS_OFF_MAC_DATA@GOTPAGE
Lloh3:
	ldr	x14, [x14, _NVS_OFF_MAC_DATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w11, w13
	ldr	w11, [x10, w11, sxtw #2]
	ldrsw	x15, [x14]
	add	x15, x9, x15
	str	w11, [x12, x15, lsl #2]
	ldr	w11, [x8]
	add	x9, x9, #1
	sub	w13, w13, #1
	cmp	w11, w9
	b.gt	LBB0_3
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NVS_OFF_MAC_DATA,4,2           ; @NVS_OFF_MAC_DATA
	.no_dead_strip	_wl1251_write_nvs_mac
.subsections_via_symbols
