	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hw_atl_utils_get_mac_permanent
LCPI0_0:
	.long	48                              ## 0x30
	.long	14                              ## 0xe
	.long	227                             ## 0xe3
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hw_atl_utils_get_mac_permanent
	.p2align	4, 0x90
_hw_atl_utils_get_mac_permanent:        ## @hw_atl_utils_get_mac_permanent
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HW_ATL_UCP_0X370_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_aq_hw_read_reg
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$0, -56(%rbp)
	leaq	-56(%rbp), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movl	$-50529028, %edx                ## imm = 0xFCFCFCFC
	andl	-56(%rbp), %edx
	orl	$33686018, %edx                 ## imm = 0x2020202
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_aq_hw_write_reg
LBB0_2:
	movq	%r14, %rdi
	movl	$884, %esi                      ## imm = 0x374
	callq	_aq_hw_read_reg
                                        ## kill: def $eax killed $eax def $rax
	leal	160(%rax), %ebx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_hw_atl_utils_fw_downld_dwords
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movl	-56(%rbp), %edi
	callq	___swab32
	movl	%eax, -56(%rbp)
	movl	-52(%rbp), %edi
	callq	___swab32
	movl	%eax, -52(%rbp)
	jmp	LBB0_5
LBB0_3:
	movq	$0, -56(%rbp)
	xorl	%r15d, %r15d
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ether_addr_copy
	movl	(%r12), %eax
	testb	$1, %al
	jne	LBB0_7
## %bb.6:
	orl	4(%r12), %eax
	orl	8(%r12), %eax
	jne	LBB0_8
LBB0_7:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_aq_hw_read_reg
	movzbl	%al, %ecx
	movl	%ecx, 20(%r12)
	movzbl	%ah, %eax
	movl	%eax, 16(%r12)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [48,14,227,0]
	movups	%xmm0, (%r12)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_UCP_0X370_REG,4,2       ## @HW_ATL_UCP_0X370_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hw_atl_utils_get_mac_permanent
lCPI0_0:
	.long	48                              ; 0x30
	.long	14                              ; 0xe
	.long	227                             ; 0xe3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hw_atl_utils_get_mac_permanent
	.p2align	2
_hw_atl_utils_get_mac_permanent:        ; @hw_atl_utils_get_mac_permanent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x22, _HW_ATL_UCP_0X370_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HW_ATL_UCP_0X370_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_aq_hw_read_reg
	cbnz	w0, LBB0_2
; %bb.1:
	str	wzr, [sp, #4]
	add	x0, sp, #4
	mov	w1, #4
	bl	_get_random_bytes
	ldr	w8, [sp, #4]
	and	w8, w8, #0xfcfcfcfc
	orr	w2, w8, #0x2020202
	ldr	w1, [x22]
	mov	x0, x20
	bl	_aq_hw_write_reg
LBB0_2:
	mov	x0, x20
	mov	w1, #884
	bl	_aq_hw_read_reg
	add	w21, w0, #160
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_hw_atl_utils_fw_downld_dwords
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	___swab32
	str	w0, [sp, #8]
	ldr	w0, [sp, #12]
	bl	___swab32
	str	w0, [sp, #12]
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	str	xzr, [sp, #8]
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ether_addr_copy
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_7
; %bb.6:
	ldp	w9, w10, [x19, #4]
	orr	w8, w9, w8
	orr	w8, w8, w10
	cbnz	w8, LBB0_8
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_aq_hw_read_reg
	and	w8, w0, #0xff
	ubfx	w9, w0, #8, #8
	stp	w9, w8, [x19, #16]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_UCP_0X370_REG,4,2       ; @HW_ATL_UCP_0X370_REG
.subsections_via_symbols
