	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseUnixEthDeviceName         ## -- Begin function ParseUnixEthDeviceName
	.p2align	4, 0x90
_ParseUnixEthDeviceName:                ## @ParseUnixEthDeviceName
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%r15, %rdi
	callq	_IsEmptyStr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %r13
LBB0_7:
	movq	%r13, %rdi
	callq	_StrLen
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%eax, %r12d
	callq	_StrCpy
	movslq	%r12d, %rax
	addq	%rax, %rbx
	subq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_StrCpy
	movb	$0, (%rax)
	movl	$1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/net"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/net/"

L_.str.2:                               ## @.str.2
	.asciz	"/dev/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseUnixEthDeviceName         ; -- Begin function ParseUnixEthDeviceName
	.p2align	2
_ParseUnixEthDeviceName:                ; @ParseUnixEthDeviceName
	.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
	mov	x21, x0
	mov	w0, #0
	cbz	x21, LBB0_10
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_10
; %bb.2:
	mov	x20, x1
	mov	x0, x19
	bl	_IsEmptyStr
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x22
	bl	_StrLen
	ldrb	w8, [x8]
	cbz	w8, LBB0_3
; %bb.9:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_StrCpy
	sxtw	x8, w23
	add	x0, x21, x8
	sub	x1, x20, x8
	mov	x2, x19
	bl	_StrCpy
	strb	wzr, [x8]
	mov	w0, #1
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/net"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/net/"

l_.str.2:                               ; @.str.2
	.asciz	"/dev/"

.subsections_via_symbols
