	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6x0_read_mac_address
_s6x0_read_mac_address:                 ## @s6x0_read_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1160, %rsp                     ## imm = 0x488
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1200(%rbp)               ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -1188(%rbp)
	movl	$80, -1184(%rbp)
	leaq	-1192(%rbp), %rax
	movq	%rax, -1176(%rbp)
	movq	$1, -1168(%rbp)
	movl	$80, -1160(%rbp)
	leaq	-1188(%rbp), %rax
	movq	%rax, -1152(%rbp)
	movl	$1, -1144(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1140(%rbp)
	xorl	%r12d, %r12d
	leaq	-1184(%rbp), %r15
	movq	_deb_xfer@GOTPCREL(%rip), %r13
	leaq	-1136(%rbp), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	cmpq	$256, %r12                      ## imm = 0x100
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -1192(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_s6x0_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-1188(%rbp), %eax
	movl	%r12d, %ecx
	andl	$15, %ecx
	movl	%eax, -1136(%rbp,%rcx,4)
	movl	%eax, -1072(%rbp,%r12,4)
	cmpl	$15, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-15(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_xfer
	movq	%r14, %rdi
	movl	$16, %esi
	movq	%r13, %rdx
	callq	_debug_dump
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_6:
	leaq	-1008(%rbp), %rsi
	movq	-1200(%rbp), %rdi               ## 8-byte Reload
	movl	$6, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$1160, %rsp                     ## imm = 0x488
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read eeprom failed."

L_.str.1:                               ## @.str.1
	.asciz	"%02x: "

	.no_dead_strip	_s6x0_read_mac_address
.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 s6x0_read_mac_address
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_s6x0_read_mac_address:                 ; @s6x0_read_mac_address
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1152
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w8, #80
	stp	wzr, w8, [sp, #4]
	mov	x9, sp
	str	x9, [sp, #16]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	str	w8, [sp, #32]
	add	x8, sp, #4
	str	x8, [sp, #40]
	mov	w8, #1
Lloh5:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #48]
	add	x24, sp, #56
	add	x25, sp, #120
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x22, _deb_xfer@GOTPAGE
Lloh11:
	ldr	x22, [x22, _deb_xfer@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, #256
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [sp]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_s6x0_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #4]
	and	w9, w23, #0xf
	str	w8, [x24, w9, uxtw #2]
	str	w8, [x25, x23, lsl #2]
	cmp	w9, #15
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w1, w23, #15
	mov	x0, x21
	bl	_deb_xfer
	add	x0, sp, #56
	mov	w1, #16
	mov	x2, x22
	bl	_debug_dump
	b	LBB0_1
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	add	x8, sp, #120
	add	x1, x8, #64
	mov	x0, x19
	mov	w2, #6
	bl	_memcpy
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1152
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read eeprom failed."

l_.str.1:                               ; @.str.1
	.asciz	"%02x: "

	.no_dead_strip	_s6x0_read_mac_address
.subsections_via_symbols
