	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _set
__set:                                  ## @_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_read_block
	xorl	%eax, %eax
	callq	_print_eaddr
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	_KENV_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-160(%rbp), %rdx
	movl	$128, %ecx
	callq	_kenv
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_MD5Init
	leaq	-152(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_MD5Update
	leaq	-160(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_MD5Final
	movl	-108(%rbp), %edx
	movl	-104(%rbp), %eax
	shll	$4, %eax
	sarl	$4, %edx
	orl	%eax, %edx
	movq	_block@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ALTERA_ETHERNET_OPTION_BITS_OFF@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	movl	%edx, 28(%rax,%rsi,4)
	movl	-112(%rbp), %edx
	movl	-108(%rbp), %esi
	shll	$4, %esi
	sarl	$4, %edx
	orl	%esi, %edx
	movslq	(%rcx), %rsi
	movl	%edx, 32(%rax,%rsi,4)
	movl	-112(%rbp), %edx
	shll	$4, %edx
	movslq	(%rcx), %rsi
	movl	%edx, 36(%rax,%rsi,4)
	movslq	(%rcx), %rdx
	andl	$-16, 36(%rax,%rdx,4)
	movq	_gflag@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	$0, (%rdx)
	sete	%sil
	movslq	(%rcx), %rdx
	movl	16(%rax,%rdx,4), %edi
	andl	$-3, %edi
	leal	(%rdi,%rsi,2), %esi
	movl	%esi, 16(%rax,%rdx,4)
	movslq	(%rcx), %rcx
	andl	$-2, 16(%rax,%rcx,4)
	jmp	LBB0_13
LBB0_4:
	movl	(%rbx), %eax
	movq	_block@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ALTERA_ETHERNET_OPTION_BITS_OFF@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	movl	%eax, 16(%rcx,%rsi,4)
	movl	4(%rbx), %eax
	movslq	(%rdx), %rsi
	movl	%eax, 20(%rcx,%rsi,4)
	movl	8(%rbx), %eax
	movslq	(%rdx), %rsi
	movl	%eax, 24(%rcx,%rsi,4)
	movl	12(%rbx), %eax
	movslq	(%rdx), %rsi
	movl	%eax, 28(%rcx,%rsi,4)
	movl	16(%rbx), %eax
	movslq	(%rdx), %rsi
	movl	%eax, 32(%rcx,%rsi,4)
	movl	20(%rbx), %eax
	movslq	(%rdx), %rdx
	movl	%eax, 36(%rcx,%rdx,4)
	movl	20(%rbx), %r14d
	testb	$15, %r14b
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_6:
	movq	_gflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	testb	$2, (%rbx)
	jne	LBB0_8
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	(%rbx), %esi
	testb	$1, %sil
	jne	LBB0_11
	jmp	LBB0_12
LBB0_8:
	movl	(%rbx), %esi
	testb	$1, %sil
	jne	LBB0_11
## %bb.9:
	testb	$15, %r14b
	jne	LBB0_12
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	(%rbx), %esi
LBB0_12:
	andl	$252, %esi
	orl	$2, %esi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movl	$240, %eax
	andl	20(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_13:
	movq	_block@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ALTERA_ETHERNET_OPTION_BITS_OFF@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	movl	$254, (%rax,%rdx,4)
	movslq	(%rcx), %rdx
	movl	$90, 4(%rax,%rdx,4)
	movslq	(%rcx), %rdx
	movl	$0, 8(%rax,%rdx,4)
	movslq	(%rcx), %rcx
	movl	$0, 12(%rax,%rcx,4)
	xorl	%eax, %eax
	callq	_write_block
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_read_block
	xorl	%eax, %eax
	callq	_print_eaddr
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_KENV_GET,4,2                   ## @KENV_GET
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"cfi0.factory_ppr"

L_.str.2:                               ## @.str.2
	.asciz	"Could not find Intel flash PPR serial\n"

	.comm	_block,8,3                      ## @block
	.comm	_ALTERA_ETHERNET_OPTION_BITS_OFF,4,2 ## @ALTERA_ETHERNET_OPTION_BITS_OFF
	.comm	_gflag,8,3                      ## @gflag
L_.str.3:                               ## @.str.3
	.asciz	"WARN: Selected Ethernet Address is not multi-MAC compatible.\n"

L_.str.4:                               ## @.str.4
	.asciz	"WARN: Locally administered bit not set.\n"

L_.str.5:                               ## @.str.5
	.asciz	"WARN: You are setting a Multicast address.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Suggesting to re-run with: %02x:%02x:%02x:%02x:%02x:%02x"

L_str:                                  ## @str
	.asciz	"Original:"

L_str.8:                                ## @str.8
	.asciz	"Updated to:"

	.no_dead_strip	__set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _set
__set:                                  ; @_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_read_block
	bl	_print_eaddr
Lloh2:
	adrp	x21, _block@GOTPAGE
Lloh3:
	ldr	x21, [x21, _block@GOTPAGEOFF]
Lloh4:
	adrp	x20, _ALTERA_ETHERNET_OPTION_BITS_OFF@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ALTERA_ETHERNET_OPTION_BITS_OFF@GOTPAGEOFF]
	cbnz	x19, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _KENV_GET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KENV_GET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x19, sp, #64
	add	x2, sp, #64
	mov	w3, #128
	bl	_kenv
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	add	x0, sp, #60
	bl	_MD5Init
	add	x1, x19, #8
	add	x0, sp, #60
	mov	w2, #16
	bl	_MD5Update
	add	x0, sp, #64
	add	x1, sp, #60
	bl	_MD5Final
	ldp	w9, w8, [sp, #116]
	asr	w9, w9, #4
	orr	w8, w9, w8, lsl #4
	ldr	x9, [x21]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #28]
	ldp	w10, w8, [sp, #112]
	asr	w10, w10, #4
	orr	w8, w10, w8, lsl #4
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #32]
	ldr	w8, [sp, #112]
	lsl	w8, w8, #4
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #36]
	ldrsw	x8, [x20]
	add	x8, x9, x8, lsl #2
	ldr	w10, [x8, #36]
	and	w10, w10, #0xfffffff0
	str	w10, [x8, #36]
Lloh13:
	adrp	x8, _gflag@GOTPAGE
Lloh14:
	ldr	x8, [x8, _gflag@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, eq
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	ldr	w11, [x10, #16]
	bfi	w11, w8, #1, #1
	str	w11, [x10, #16]
	ldrsw	x8, [x20]
	add	x8, x9, x8, lsl #2
	ldr	w9, [x8, #16]
	and	w9, w9, #0xfffffffe
	str	w9, [x8, #16]
	b	LBB0_13
LBB0_4:
	ldr	w8, [x19]
	ldr	x9, [x21]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #16]
	ldr	w8, [x19, #4]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #20]
	ldr	w8, [x19, #8]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #24]
	ldr	w8, [x19, #12]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #28]
	ldr	w8, [x19, #16]
	ldrsw	x10, [x20]
	add	x10, x9, x10, lsl #2
	str	w8, [x10, #32]
	ldr	w8, [x19, #20]
	ldrsw	x10, [x20]
	add	x9, x9, x10, lsl #2
	str	w8, [x9, #36]
	ldr	w8, [x19, #20]
	ands	w22, w8, #0xf
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_6:
Lloh18:
	adrp	x8, _gflag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _gflag@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
; %bb.7:
	ldrb	w8, [x19]
	tbnz	w8, #1, LBB0_9
; %bb.8:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_11
	b	LBB0_12
LBB0_9:
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_11
; %bb.10:
	cbnz	w22, LBB0_12
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
	ldr	w8, [x19]
LBB0_12:
	and	w8, w8, #0xfc
	orr	w8, w8, #0x2
	ldp	w13, w9, [x19, #16]
	and	w9, w9, #0xf0
	ldp	w10, w11, [x19, #4]
	ldr	w12, [x19, #12]
	stp	x13, x9, [sp, #32]
	stp	x11, x12, [sp, #16]
	stp	x8, x10, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
LBB0_13:
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	mov	w10, #254
	str	w10, [x8, x9, lsl #2]
	ldrsw	x9, [x20]
	add	x9, x8, x9, lsl #2
	mov	w10, #90
	str	w10, [x9, #4]
	ldrsw	x9, [x20]
	add	x9, x8, x9, lsl #2
	str	wzr, [x9, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	str	wzr, [x8, #12]
	bl	_write_block
Lloh27:
	adrp	x0, l_str.8@PAGE
Lloh28:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	bl	_read_block
	bl	_print_eaddr
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_KENV_GET,4,2                   ; @KENV_GET
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"cfi0.factory_ppr"

l_.str.2:                               ; @.str.2
	.asciz	"Could not find Intel flash PPR serial\n"

	.comm	_block,8,3                      ; @block
	.comm	_ALTERA_ETHERNET_OPTION_BITS_OFF,4,2 ; @ALTERA_ETHERNET_OPTION_BITS_OFF
	.comm	_gflag,8,3                      ; @gflag
l_.str.3:                               ; @.str.3
	.asciz	"WARN: Selected Ethernet Address is not multi-MAC compatible.\n"

l_.str.4:                               ; @.str.4
	.asciz	"WARN: Locally administered bit not set.\n"

l_.str.5:                               ; @.str.5
	.asciz	"WARN: You are setting a Multicast address.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Suggesting to re-run with: %02x:%02x:%02x:%02x:%02x:%02x"

l_str:                                  ; @str
	.asciz	"Original:"

l_str.8:                                ; @str.8
	.asciz	"Updated to:"

	.no_dead_strip	__set
.subsections_via_symbols
