	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_read_mac_addr
_myri10ge_read_mac_addr:                ## @myri10ge_read_mac_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	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	%rdi, -48(%rbp)
	xorl	%eax, %eax
	cmpb	$0, (%rdi)
	je	LBB0_23
## %bb.1:
	movq	_MYRI10GE_EEPROM_STRINGS_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r13
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.2:
	addq	%rdi, %r13
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r12
	leaq	L_.str.2(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcmp
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	4(%rdi), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, 8(%rbx)
	addq	$6, %rdi
	cmpq	%r13, %rdi
	ja	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$3, %rax
	cmpq	%r13, %rax
	ja	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$3, %rax
	cmpq	%r13, %rax
	ja	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$3, %rax
	cmpq	%r13, %rax
	ja	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$3, %rax
	cmpq	%r13, %rax
	ja	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$3, %rax
	cmpq	%r13, %rax
	ja	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	40(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	-48(%rbp), %rdi
	incq	%rdi
	movq	%rdi, -48(%rbp)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$3, %rdi
	movq	%rdi, -48(%rbp)
	movq	%rdi, 16(%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	addq	$3, %rdi
	movq	%rdi, -48(%rbp)
	movq	%r12, %rsi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 32(%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rax
	jae	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	cmpb	$0, (%rax)
	movq	%rdi, %rax
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%rdi)
	jne	LBB0_20
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	cmpb	$0, (%rdi)
	je	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %rdi
	jb	LBB0_3
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_22:
	movq	24(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MYRI10GE_EEPROM_STRINGS_SIZE,4,2 ## @MYRI10GE_EEPROM_STRINGS_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC="

L_.str.1:                               ## @.str.1
	.asciz	"PC="

L_.str.2:                               ## @.str.2
	.asciz	"SN="

L_.str.3:                               ## @.str.3
	.asciz	"failed to parse eeprom_strings\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_myri10ge_read_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_read_mac_addr
_myri10ge_read_mac_addr:                ; @myri10ge_read_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0]
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _MYRI10GE_EEPROM_STRINGS_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MYRI10GE_EEPROM_STRINGS_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	ldrb	w9, [x0]
	cmp	w9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_21
LBB0_2:
	add	x23, x0, x8
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #0
	ccmp	x0, x23, #2, ne
	b.hs	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	mov	x1, x20
	mov	w2, #4
	bl	_memcmp
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbnz	x8, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, #4
	str	x8, [sp, #8]
	str	x8, [x19, #8]
	add	x9, x0, #6
	cmp	x9, x23
	b.hi	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x8, x8, #3
	cmp	x8, x23
	b.hi	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8, #8]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x8, x8, #3
	cmp	x8, x23
	b.hi	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8, #16]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x8, x8, #3
	cmp	x8, x23
	b.hi	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8, #24]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x8, x8, #3
	cmp	x8, x23
	b.hi	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8, #32]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x8, x8, #3
	cmp	x8, x23
	b.hi	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #40]
	str	x0, [x8, #40]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x21
	mov	w2, #3
	bl	_memcmp
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #3
	str	x0, [sp, #8]
	str	x0, [x19, #16]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x22
	mov	w2, #3
	bl	_memcmp
	cbnz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, #3
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #32]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x8, x23
	b.hs	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x0, x8, #1
	str	x0, [sp, #8]
	ldrb	w9, [x8]
	mov	x8, x0
	cbnz	w9, LBB0_18
	b	LBB0_4
LBB0_20:
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MYRI10GE_EEPROM_STRINGS_SIZE,4,2 ; @MYRI10GE_EEPROM_STRINGS_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC="

l_.str.1:                               ; @.str.1
	.asciz	"PC="

l_.str.2:                               ; @.str.2
	.asciz	"SN="

l_.str.3:                               ; @.str.3
	.asciz	"failed to parse eeprom_strings\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_myri10ge_read_mac_addr
.subsections_via_symbols
