	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_enaddr_parse
_ng_enaddr_parse:                       ## @ng_enaddr_parse
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, (%r9)
	jge	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.3:
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	(%rdx), %eax
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movl	$16, %edx
	callq	_strtoul
	cmpl	$255, %eax
	jg	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx
	movslq	(%r12), %rcx
	addq	%rbx, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cltq
	movq	%rax, (%r15,%r14,8)
	movl	%edx, %eax
	subl	%ebx, %eax
	movl	%eax, (%r12)
	movslq	(%r13), %rcx
	movq	%rcx, %rsi
	decq	%rsi
	cmpq	%rsi, %r14
	jge	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$58, (%rdx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
	movl	%eax, (%r12)
	movl	(%r13), %ecx
	jmp	LBB0_4
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ng_enaddr_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_enaddr_parse
_ng_enaddr_parse:                       ; @ng_enaddr_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x5]
Lloh0:
	adrp	x23, _ETHER_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETHER_ADDR_LEN@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	mov	x19, x5
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x24, #0
	ldr	w8, [x2]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, w9, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, w8, sxtw
	add	x1, sp, #8
	mov	w2, #16
	bl	_strtoul
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #255
	b.gt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [sp, #8]
	ldrsw	x8, [x21]
	add	x8, x22, x8
	cmp	x10, x8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w0
	str	x8, [x20, x24, lsl #3]
	sub	w8, w10, w22
	str	w8, [x21]
	ldrsw	x9, [x23]
	sub	x11, x9, #1
	cmp	x24, x11
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x10]
	cmp	w9, #58
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w9, [x23]
	b	LBB0_4
LBB0_10:
	mov	w0, #0
	str	w9, [x19]
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ng_enaddr_parse
.subsections_via_symbols
