	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_misc_init_r                    ## -- Begin function misc_init_r
	.p2align	4, 0x90
_misc_init_r:                           ## @misc_init_r
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	_CONFIG_ETHADDR_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rdi
	leaq	-80(%rbp), %rsi
	callq	_eth_getenv_enetaddr
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_debug
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_eth_setenv_enetaddr
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	leaq	-80(%rbp), %rsi
	callq	_eth_getenv_enetaddr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	incl	-28(%rbp)
	leaq	L_.str.4(%rip), %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_debug
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_eth_setenv_enetaddr
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing mac addresses\n"

	.comm	_CONFIG_ETHADDR_ADDR,8,3        ## @CONFIG_ETHADDR_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"ethaddr"

L_.str.2:                               ## @.str.2
	.asciz	"Setting eth0 mac addr to %pM\n"

L_.str.3:                               ## @.str.3
	.asciz	"eth1addr"

L_.str.4:                               ## @.str.4
	.asciz	"Setting eth1 mac addr to %pM\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_misc_init_r                    ; -- Begin function misc_init_r
	.p2align	2
_misc_init_r:                           ; @misc_init_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh5:
	adrp	x8, _CONFIG_ETHADDR_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_ETHADDR_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	add	x19, sp, #32
	add	x0, sp, #32
	mov	w2, #6
	bl	_memcpy
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_eth_getenv_enetaddr
	cbnz	w0, LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #32
	bl	_eth_setenv_enetaddr
LBB0_2:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	bl	_eth_getenv_enetaddr
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #52]
	add	w8, w8, #1
	str	w8, [sp, #52]
	add	x8, sp, #32
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debug
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #32
	bl	_eth_setenv_enetaddr
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing mac addresses\n"

	.comm	_CONFIG_ETHADDR_ADDR,8,3        ; @CONFIG_ETHADDR_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"ethaddr"

l_.str.2:                               ; @.str.2
	.asciz	"Setting eth0 mac addr to %pM\n"

l_.str.3:                               ; @.str.3
	.asciz	"eth1addr"

l_.str.4:                               ; @.str.4
	.asciz	"Setting eth1 mac addr to %pM\n"

.subsections_via_symbols
