	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function aq_fw2x_get_mac_permanent
LCPI0_0:
	.long	48                              ## 0x30
	.long	14                              ## 0xe
	.long	227                             ## 0xe3
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_aq_fw2x_get_mac_permanent:             ## @aq_fw2x_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_HW_ATL_FW2X_MPI_EFUSE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_aq_hw_read_reg
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	addq	$160, %rbx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_hw_atl_utils_fw_downld_dwords
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	-64(%rbp), %rdi
	callq	___swab32
	movq	%rax, -64(%rbp)
	movq	-56(%rbp), %rdi
	callq	___swab32
	movq	%rax, -56(%rbp)
LBB0_3:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ether_addr_copy
	movl	(%r14), %ecx
	testb	$1, %cl
	jne	LBB0_5
## %bb.4:
	orl	4(%r14), %ecx
	xorl	%eax, %eax
	orl	8(%r14), %ecx
	jne	LBB0_6
LBB0_5:
	movl	$0, -68(%rbp)
	leaq	-68(%rbp), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movl	-68(%rbp), %eax
	movzbl	%al, %ecx
	movl	%ecx, 20(%r14)
	movzbl	%ah, %eax
	movl	%eax, 16(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [48,14,227,0]
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_FW2X_MPI_EFUSE_ADDR,4,2 ## @HW_ATL_FW2X_MPI_EFUSE_ADDR
	.no_dead_strip	_aq_fw2x_get_mac_permanent
.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 aq_fw2x_get_mac_permanent
lCPI0_0:
	.long	48                              ; 0x30
	.long	14                              ; 0xe
	.long	227                             ; 0xe3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_aq_fw2x_get_mac_permanent:             ; @aq_fw2x_get_mac_permanent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x8, _HW_ATL_FW2X_MPI_EFUSE_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HW_ATL_FW2X_MPI_EFUSE_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_aq_hw_read_reg
	cbz	x0, LBB0_3
; %bb.1:
	add	x21, x0, #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
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
	bl	___swab32
	str	x0, [sp, #8]
	ldr	x0, [sp, #16]
	bl	___swab32
	str	x0, [sp, #16]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ether_addr_copy
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_6
; %bb.4:
	ldp	w9, w10, [x19, #4]
	orr	w8, w9, w8
	orr	w8, w8, w10
	cbz	w8, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	str	wzr, [sp, #4]
	add	x0, sp, #4
	mov	w1, #4
	bl	_get_random_bytes
	mov	w0, #0
	ldr	w8, [sp, #4]
	and	w9, w8, #0xff
	ubfx	w8, w8, #8, #8
	stp	w8, w9, [x19, #16]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_FW2X_MPI_EFUSE_ADDR,4,2 ; @HW_ATL_FW2X_MPI_EFUSE_ADDR
	.no_dead_strip	_aq_fw2x_get_mac_permanent
.subsections_via_symbols
