	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_init_mac_address
_rtl_init_mac_address:                  ## @rtl_init_mac_address
	.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	%rdi, %rbx
	movq	(%rdi), %r15
	movq	(%r15), %r14
	callq	_tp_to_dev
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_eth_platform_get_mac_address
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rtl_read_mac_address
	movq	%r14, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_MAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rtl_read_mac_from_reg
	movq	%r14, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_eth_hw_addr_random
	movq	%rbx, %rdi
	callq	_tp_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_rar_set                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC0,4,2                       ## @MAC0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read MAC address, setting random one\n"

	.no_dead_strip	_rtl_init_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_init_mac_address
_rtl_init_mac_address:                  ; @rtl_init_mac_address
	.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, x0
	ldr	x21, [x0]
	ldr	x20, [x21]
	bl	_tp_to_dev
	mov	x1, x20
	bl	_eth_platform_get_mac_address
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_rtl_read_mac_address
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MAC0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC0@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_rtl_read_mac_from_reg
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_eth_hw_addr_random
	mov	x0, x19
	bl	_tp_to_dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	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
	b	_rtl_rar_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC0,4,2                       ; @MAC0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read MAC address, setting random one\n"

	.no_dead_strip	_rtl_init_mac_address
.subsections_via_symbols
