	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_initial_mac
_ftgmac100_initial_mac:                 ## @ftgmac100_initial_mac
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	8(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_device_get_mac_address
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_ether_addr_copy
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_6
LBB0_2:
	movq	_FTGMAC100_OFFSET_MAC_MADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_FTGMAC100_OFFSET_MAC_LADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_ioread32
	movzbl	%bh, %ecx
	movl	%ecx, (%r15)
	movzbl	%bl, %ecx
	movl	%ecx, 4(%r15)
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
	shrl	$24, %eax
	movl	%eax, 8(%r15)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 12(%r15)
	movl	%edx, 16(%r15)
	movl	%esi, 20(%r15)
	movq	%r15, %rdi
	callq	_is_valid_ether_addr
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rdi), %rdi
	movq	%r15, %rsi
	callq	_ether_addr_copy
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_6
LBB0_5:
	callq	_eth_hw_addr_random
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	callq	_dev_info
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read MAC address %pM from device tree\n"

	.comm	_FTGMAC100_OFFSET_MAC_MADR,8,3  ## @FTGMAC100_OFFSET_MAC_MADR
	.comm	_FTGMAC100_OFFSET_MAC_LADR,8,3  ## @FTGMAC100_OFFSET_MAC_LADR
L_.str.1:                               ## @.str.1
	.asciz	"Read MAC address %pM from chip\n"

L_.str.2:                               ## @.str.2
	.asciz	"Generated random MAC address %pM\n"

	.no_dead_strip	_ftgmac100_initial_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ftgmac100_initial_mac
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ftgmac100_initial_mac:                 ; @ftgmac100_initial_mac
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x0, #8]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_device_get_mac_address
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_ether_addr_copy
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _FTGMAC100_OFFSET_MAC_MADR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FTGMAC100_OFFSET_MAC_MADR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x21, x0
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _FTGMAC100_OFFSET_MAC_LADR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FTGMAC100_OFFSET_MAC_LADR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	ubfx	w8, w21, #8, #8
	and	w9, w21, #0xff
	stp	w8, w9, [x20]
	lsr	w8, w0, #24
	str	w8, [x20, #8]
	dup.2s	v0, w0
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x20, #12]
	and	w8, w0, #0xff
	str	w8, [x20, #20]
	mov	x0, x20
	bl	_is_valid_ether_addr
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x0]
	mov	x1, x20
	bl	_ether_addr_copy
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	b	LBB0_5
LBB0_4:
	bl	_eth_hw_addr_random
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_dev_info
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #32
	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
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read MAC address %pM from device tree\n"

	.comm	_FTGMAC100_OFFSET_MAC_MADR,8,3  ; @FTGMAC100_OFFSET_MAC_MADR
	.comm	_FTGMAC100_OFFSET_MAC_LADR,8,3  ; @FTGMAC100_OFFSET_MAC_LADR
l_.str.1:                               ; @.str.1
	.asciz	"Read MAC address %pM from chip\n"

l_.str.2:                               ; @.str.2
	.asciz	"Generated random MAC address %pM\n"

	.no_dead_strip	_ftgmac100_initial_mac
.subsections_via_symbols
