	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_get_permanent_address
_atl1_get_permanent_address:            ## @atl1_get_permanent_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	8(%r13), %rdi
	callq	_is_valid_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_31
## %bb.1:
	movq	%r13, %rdi
	callq	_atl1_check_eeprom_exist
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_2
LBB0_15:
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movl	$126976, %esi                   ## imm = 0x1F000
	callq	_atl1_spi_read
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	xorl	%r12d, %r12d
	movl	$126980, %ebx                   ## imm = 0x1F004
	leaq	-52(%rbp), %r14
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r12d, %r12d
	movl	-52(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_atl1_spi_read
	addl	$4, %ebx
	testq	%rax, %rax
	je	LBB0_27
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_REG_MAC_STA_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	-52(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-52(%rbp), %eax
	cmpb	$90, %al
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	sarl	$16, %eax
	movslq	%eax, %r15
	movl	$1, %r12d
	jmp	LBB0_26
LBB0_2:
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_atl1_read_eeprom
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	movl	$260, %ebx                      ## imm = 0x104
	leaq	-52(%rbp), %r14
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	movl	-52(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_atl1_read_eeprom
	addl	$4, %ebx
	testq	%rax, %rax
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_REG_MAC_STA_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %eax
	cmpb	$90, %al
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	sarl	$16, %eax
	movslq	%eax, %r15
	movl	$1, %r12d
	jmp	LBB0_13
LBB0_16:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_27:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_swab32
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_swab16
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	jne	LBB0_30
## %bb.28:
	movq	_REG_MAC_STA_ADDR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r13), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	(%r13), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$4, %rdi
	callq	_ioread16
	movl	%eax, %r15d
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_swab32
	movl	%eax, 8(%rbx)
	movl	%r15d, %edi
	callq	_swab16
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movl	$1, %ecx
	jmp	LBB0_31
LBB0_3:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_swab32
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_swab16
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	je	LBB0_15
LBB0_30:
	movq	8(%r13), %rdi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	xorl	%ecx, %ecx
LBB0_31:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_REG_MAC_STA_ADDR,8,3           ## @REG_MAC_STA_ADDR
	.no_dead_strip	_atl1_get_permanent_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_get_permanent_address
_atl1_get_permanent_address:            ; @atl1_get_permanent_address
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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	x0, [x0, #8]
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_27
; %bb.1:
	mov	x0, x19
	bl	_atl1_check_eeprom_exist
Lloh7:
	adrp	x25, _REG_MAC_STA_ADDR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _REG_MAC_STA_ADDR@GOTPAGEOFF]
	cbz	w0, LBB0_11
LBB0_2:
	sub	x2, x29, #92
	mov	x0, x19
	mov	w1, #126976
	bl	_atl1_spi_read
	cbz	x0, LBB0_20
; %bb.3:
	mov	w28, #0
	mov	w26, #0
	mov	x27, #0
	mov	w21, #0
	mov	w22, #61444
	movk	w22, #1, lsl #16
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
	add	x8, x8, #4
	ldur	w9, [x29, #-92]
	cmp	x27, x8
	csel	w26, w9, w26, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x22
	bl	_atl1_spi_read
	add	w22, w22, #4
	cbz	x0, LBB0_21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w28, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cmp	x27, x8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
	ldur	w21, [x29, #-92]
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	w8, [x29, #-92]
	and	w9, w8, #0xff
	cmp	w9, #90
	b.ne	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	sbfx	x27, x8, #16, #16
	mov	w28, #1
	b	LBB0_5
LBB0_11:
	sub	x2, x29, #92
	mov	x0, x19
	mov	w1, #256
	bl	_atl1_read_eeprom
	cbz	x0, LBB0_24
; %bb.12:
	mov	w28, #0
	mov	w26, #0
	mov	x27, #0
	mov	w21, #0
	mov	w22, #260
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, #0
	add	x8, x8, #4
	ldur	w9, [x29, #-92]
	cmp	x27, x8
	csel	w26, w9, w26, eq
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x22
	bl	_atl1_read_eeprom
	add	w22, w22, #4
	cbz	x0, LBB0_25
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cbz	w28, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x25]
	cmp	x27, x8
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, #0
	ldur	w21, [x29, #-92]
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldur	w8, [x29, #-92]
	and	w9, w8, #0xff
	cmp	w9, #90
	b.ne	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	sbfx	x27, x8, #16, #16
	mov	w28, #1
	b	LBB0_14
LBB0_20:
	mov	w21, #0
	mov	w26, #0
LBB0_21:
	mov	x0, x21
	bl	_swab32
	str	w0, [x20, #8]
	mov	w0, w26
	bl	_swab16
	str	x0, [x20]
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_26
; %bb.22:
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_ioread32
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x8, x8, x9
	add	x0, x8, #4
	bl	_ioread16
	mov	x22, x0
	mov	x0, x21
	bl	_swab32
	str	w0, [x20, #8]
	mov	w0, w22
	bl	_swab16
	str	x0, [x20]
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbnz	x0, LBB0_26
; %bb.23:
	mov	w0, #1
	b	LBB0_28
LBB0_24:
	mov	w21, #0
	mov	w26, #0
LBB0_25:
	mov	x0, x21
	bl	_swab32
	str	w0, [x20, #8]
	mov	w0, w26
	bl	_swab16
	str	x0, [x20]
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_2
LBB0_26:
	ldr	x0, [x19, #8]
	ldr	w2, [x24]
	mov	x1, x20
	bl	_memcpy
LBB0_27:
	mov	w0, #0
LBB0_28:
	mov	sp, x23
	ldur	x8, [x29, #-88]
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_30
; %bb.29:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_REG_MAC_STA_ADDR,8,3           ; @REG_MAC_STA_ADDR
	.no_dead_strip	_atl1_get_permanent_address
.subsections_via_symbols
