	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_sonic_nubus_ethernet_addr
_mac_sonic_nubus_ethernet_addr:         ## @mac_sonic_nubus_ethernet_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$2, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$3, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$4, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$5, %edi
	callq	_SONIC_READ_PROM
	movq	(%rbx), %rdi
	movl	%eax, 20(%rdi)
	movq	_MACSONIC_DAYNA@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_bit_reverse_addr
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MACSONIC_DAYNA,4,2             ## @MACSONIC_DAYNA
	.no_dead_strip	_mac_sonic_nubus_ethernet_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_sonic_nubus_ethernet_addr
_mac_sonic_nubus_ethernet_addr:         ; @mac_sonic_nubus_ethernet_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	mov	w0, #0
	bl	_SONIC_READ_PROM
	ldr	x8, [x20]
	str	w0, [x8]
	mov	w0, #1
	bl	_SONIC_READ_PROM
	ldr	x8, [x20]
	str	w0, [x8, #4]
	mov	w0, #2
	bl	_SONIC_READ_PROM
	ldr	x8, [x20]
	str	w0, [x8, #8]
	mov	w0, #3
	bl	_SONIC_READ_PROM
	ldr	x8, [x20]
	str	w0, [x8, #12]
	mov	w0, #4
	bl	_SONIC_READ_PROM
	ldr	x8, [x20]
	str	w0, [x8, #16]
	mov	w0, #5
	bl	_SONIC_READ_PROM
	mov	x8, x0
	ldr	x0, [x20]
	str	w8, [x0, #20]
Lloh0:
	adrp	x8, _MACSONIC_DAYNA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MACSONIC_DAYNA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.1:
	bl	_bit_reverse_addr
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MACSONIC_DAYNA,4,2             ; @MACSONIC_DAYNA
	.no_dead_strip	_mac_sonic_nubus_ethernet_addr
.subsections_via_symbols
