	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EtEnumAllDevice                ## -- Begin function EtEnumAllDevice
	.p2align	4, 0x90
_EtEnumAllDevice:                       ## @EtEnumAllDevice
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_IsEthSupported
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_FreeRpcEnumDevice
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_Zero
	xorl	%eax, %eax
	callq	_GetEthList
	movq	%rax, %r15
	movq	(%rax), %rdi
	movq	%rdi, (%r14)
	shll	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ZeroMalloc
	movq	%rax, 8(%r14)
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %rcx
	movq	(%rcx), %rdx
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_StrCpy
	cmpq	$2, (%r15)
	jb	LBB0_6
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rax,%rbx,4), %edi
	movl	$4, %esi
	callq	_StrCpy
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_FreeToken
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NOT_SUPPORTED,8,3          ## @ERR_NOT_SUPPORTED
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EtEnumAllDevice                ; -- Begin function EtEnumAllDevice
	.p2align	2
_EtEnumAllDevice:                       ; @EtEnumAllDevice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_IsEthSupported
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_FreeRpcEnumDevice
	mov	x0, x19
	mov	w1, #16
	bl	_Zero
	bl	_GetEthList
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [x19]
	lsl	w0, w8, #2
	bl	_ZeroMalloc
	str	x0, [x19, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x2, [x8]
	ldr	w0, [x0]
	mov	w1, #4
	bl	_StrCpy
	ldr	x8, [x20]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	ldr	x2, [x9, x21, lsl #3]
	ldr	w0, [x8, x21, lsl #2]
	mov	w1, #4
	bl	_StrCpy
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_FreeToken
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NOT_SUPPORTED,8,3          ; @ERR_NOT_SUPPORTED
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
.subsections_via_symbols
