	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_get_mac_addr          ## -- Begin function vnic_dev_get_mac_addr
	.p2align	4, 0x90
_vnic_dev_get_mac_addr:                 ## @vnic_dev_get_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	shlq	$3, %rsi
	movq	%rbx, %rdi
	callq	___bzero
LBB0_2:
	movq	_CMD_GET_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.4:
	movq	-32(%rbp), %rdx
	cmpl	$4, %ecx
	jae	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_6:
	movl	%ecx, %esi
	andl	$-4, %esi
	movq	%rdx, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rsi), %rax
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$7, %r8d
	cmpq	$28, %rax
	jae	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	andq	$-8, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rbx,%rax,8)
	movdqu	%xmm0, 16(%rbx,%rax,8)
	movdqu	%xmm0, 32(%rbx,%rax,8)
	movdqu	%xmm0, 48(%rbx,%rax,8)
	movdqu	%xmm0, 64(%rbx,%rax,8)
	movdqu	%xmm0, 80(%rbx,%rax,8)
	movdqu	%xmm0, 96(%rbx,%rax,8)
	movdqu	%xmm0, 112(%rbx,%rax,8)
	movdqu	%xmm0, 128(%rbx,%rax,8)
	movdqu	%xmm0, 144(%rbx,%rax,8)
	movdqu	%xmm0, 160(%rbx,%rax,8)
	movdqu	%xmm0, 176(%rbx,%rax,8)
	movdqu	%xmm0, 192(%rbx,%rax,8)
	movdqu	%xmm0, 208(%rbx,%rax,8)
	movdqu	%xmm0, 224(%rbx,%rax,8)
	movdqu	%xmm0, 240(%rbx,%rax,8)
	addq	$32, %rax
	addq	$-8, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%rax,8), %rax
	addq	$16, %rax
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rax,%rdi)
	movdqu	%xmm0, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	cmpq	%rcx, %rsi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, (%rbx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_14
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CMD_GET_MAC_ADDR,4,2           ## @CMD_GET_MAC_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_get_mac_addr          ; -- Begin function vnic_dev_get_mac_addr
	.p2align	2
_vnic_dev_get_mac_addr:                 ; @vnic_dev_get_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	lsl	x1, x8, #3
	mov	x0, x19
	bl	_bzero
LBB0_2:
Lloh2:
	adrp	x8, _CMD_GET_MAC_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_GET_MAC_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	w4, #1000
	bl	_vnic_dev_cmd
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.4:
	ldr	x8, [sp, #8]
	cmp	w9, #8
	b.hs	LBB0_6
; %bb.5:
	mov	x10, #0
	b	LBB0_9
LBB0_6:
	and	x10, x9, #0xfffffff8
	dup.2d	v0, x8
	add	x11, x19, #32
	mov	x12, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x9
	b.eq	LBB0_11
LBB0_9:
	add	x11, x19, x10, lsl #3
	sub	x9, x9, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CMD_GET_MAC_ADDR,4,2           ; @CMD_GET_MAC_ADDR
.subsections_via_symbols
