	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function determine_ethernet_addr
_determine_ethernet_addr:               ## @determine_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	4(%r14), %eax
	movl	%eax, 4(%rsi)
	movq	(%rdi), %rax
	movq	_RTL_VER_01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PLA_IDR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vendor_mac_passthru_addr_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.3:
	movq	_PLA_BACKUP@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_pla_ocp_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_probe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_ether_addr_copy
	movl	(%r13), %esi
	movl	(%rbx), %r8d
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netif_info
	jmp	LBB0_8
LBB0_5:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_err
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_VER_01,8,3                 ## @RTL_VER_01
	.comm	_PLA_IDR,4,2                    ## @PLA_IDR
	.comm	_PLA_BACKUP,4,2                 ## @PLA_BACKUP
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get ether addr fail\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid ether addr %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"Random ether addr %pM\n"

	.no_dead_strip	_determine_ethernet_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function determine_ethernet_addr
_determine_ethernet_addr:               ; @determine_ethernet_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	x21, x1
	mov	x20, x0
	ldp	x8, x19, [x0]
	ldr	w9, [x19, #4]
	str	w9, [x1, #4]
Lloh0:
	adrp	x9, _RTL_VER_01@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL_VER_01@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PLA_IDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLA_IDR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_vendor_mac_passthru_addr_read
	mov	x22, x0
	tbz	w0, #31, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _PLA_BACKUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PLA_BACKUP@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w2, #8
	bl	_pla_ocp_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
LBB0_5:
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_8
; %bb.6:
Lloh7:
	adrp	x22, _probe@GOTPAGE
Lloh8:
	ldr	x22, [x22, _probe@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	mov	x0, x19
	bl	_eth_hw_addr_random
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_ether_addr_copy
	ldr	w1, [x22]
	ldr	w4, [x21]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
	mov	w22, #0
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _probe@GOTPAGE
Lloh14:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
LBB0_8:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_VER_01,8,3                 ; @RTL_VER_01
	.comm	_PLA_IDR,4,2                    ; @PLA_IDR
	.comm	_PLA_BACKUP,4,2                 ; @PLA_BACKUP
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get ether addr fail\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid ether addr %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"Random ether addr %pM\n"

	.no_dead_strip	_determine_ethernet_addr
.subsections_via_symbols
