	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath79_nvram_parse_mac_addr     ## -- Begin function ath79_nvram_parse_mac_addr
	.p2align	4, 0x90
_ath79_nvram_parse_mac_addr:            ## @ath79_nvram_parse_mac_addr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	%esi, %edi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	leal	-1(%rbx), %eax
	movb	$0, (%r12,%rax)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ath79_nvram_find_var
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	cmpl	$19, %eax
	jne	LBB0_7
## %bb.4:
	cmpb	$34, (%r15)
	jne	LBB0_7
## %bb.5:
	cmpb	$34, 18(%r15)
	jne	LBB0_7
## %bb.6:
	movb	$0, 18(%r15)
	incq	%r15
LBB0_7:
	leaq	1(%r14), %rcx
	leaq	2(%r14), %r8
	leaq	3(%r14), %r9
	leaq	4(%r14), %rax
	leaq	5(%r14), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	pushq	%r13
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	pushq	%rax
	callq	_sscanf
	addq	$16, %rsp
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rcx, %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	%r13
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_sscanf
	addq	$16, %rsp
	cmpl	(%r14), %eax
	je	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_vfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"%02hhx-%02hhx-%02hhx-%02hhx-%02hhx-%02hhx"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath79_nvram_parse_mac_addr     ; -- Begin function ath79_nvram_parse_mac_addr
	.p2align	2
_ath79_nvram_parse_mac_addr:            ; @ath79_nvram_parse_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	bl	_vmalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	sub	w8, w21, #1
	strb	wzr, [x19, w8, uxtw]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_ath79_nvram_find_var
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
	bl	_strlen
	cmp	w0, #19
	b.ne	LBB0_6
; %bb.3:
	ldrb	w8, [x21]
	cmp	w8, #34
	b.ne	LBB0_6
; %bb.4:
	ldrb	w8, [x21, #18]
	cmp	w8, #34
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x21, #18]
	add	x21, x21, #1
LBB0_6:
	add	x22, x20, #1
	add	x23, x20, #2
	add	x24, x20, #3
	add	x25, x20, #4
	add	x26, x20, #5
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_sscanf
Lloh2:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_sscanf
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_8:
	mov	w20, #0
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x19
	bl	_vfree
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"%02hhx-%02hhx-%02hhx-%02hhx-%02hhx-%02hhx"

.subsections_via_symbols
