	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttpci_eeprom_parse_mac         ## -- Begin function ttpci_eeprom_parse_mac
	.p2align	4, 0x90
_ttpci_eeprom_parse_mac:                ## @ttpci_eeprom_parse_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
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-112(%rbp), %rsi
	callq	_ttpci_eeprom_read_encodedMAC
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_2
LBB0_3:
	leaq	-144(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	_getmac_tt
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	L_.str.2(%rip), %rdi
	leaq	-112(%rbp), %rdx
	movl	$80, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_2:
	movq	%r14, %rdi
	callq	_eth_zero_addr
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-144(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_memcpy
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't read from EEPROM: not there?\n"

L_.str.1:                               ## @.str.1
	.asciz	"adapter failed MAC signature check\n"

L_.str.2:                               ## @.str.2
	.asciz	"encoded MAC from EEPROM was %*phC"

L_.str.3:                               ## @.str.3
	.asciz	"adapter has MAC addr = %pM\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttpci_eeprom_parse_mac         ; -- Begin function ttpci_eeprom_parse_mac
	.p2align	2
_ttpci_eeprom_parse_mac:                ; @ttpci_eeprom_parse_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x1, sp, #40
	bl	_ttpci_eeprom_read_encodedMAC
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	add	x21, sp, #16
	add	x22, sp, #40
	add	x0, sp, #16
	add	x1, sp, #40
	bl	_getmac_tt
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	w8, #80
	stp	x8, x22, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_dprintk
	mov	x0, x19
	bl	_eth_zero_addr
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #6
	bl	_memcpy
	str	x21, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't read from EEPROM: not there?\n"

l_.str.1:                               ; @.str.1
	.asciz	"adapter failed MAC signature check\n"

l_.str.2:                               ; @.str.2
	.asciz	"encoded MAC from EEPROM was %*phC"

l_.str.3:                               ; @.str.3
	.asciz	"adapter has MAC addr = %pM\n"

.subsections_via_symbols
