	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl18xx_get_mac
_wl18xx_get_mac:                        ## @wl18xx_get_mac
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PART_TOP_PRCM_ELP_SOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rdi), %rsi
	callq	_wlcore_set_partition
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_WL18XX_REG_FUSE_BD_ADDR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_wlcore_read32
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_WL18XX_REG_FUSE_BD_ADDR_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_wlcore_read32
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	-36(%rbp), %eax
	movl	-40(%rbp), %ecx
	shldl	$8, %ecx, %eax
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, (%rbx)
	andl	$16777215, %ecx                 ## imm = 0xFFFFFF
	movl	%ecx, 4(%rbx)
	orl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	movq	%rsp, %r15
	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, %r14
	movq	%r14, %rdi
	callq	_eth_random_addr
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	shll	$16, %eax
	shll	$8, %ecx
	addl	%eax, %ecx
	addl	8(%r14), %ecx
	movl	%ecx, (%rbx)
	movl	12(%r14), %eax
	movl	16(%r14), %ecx
	shll	$16, %eax
	shll	$8, %ecx
	addl	%eax, %ecx
	addl	20(%r14), %ecx
	movl	%ecx, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_warning
	movq	%r15, %rsp
LBB0_5:
	movq	_PART_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_wlcore_set_partition
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PART_TOP_PRCM_ELP_SOC,8,3      ## @PART_TOP_PRCM_ELP_SOC
	.comm	_WL18XX_REG_FUSE_BD_ADDR_1,4,2  ## @WL18XX_REG_FUSE_BD_ADDR_1
	.comm	_WL18XX_REG_FUSE_BD_ADDR_2,4,2  ## @WL18XX_REG_FUSE_BD_ADDR_2
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC address from fuse not available, using random locally administered addresses."

	.comm	_PART_DOWN,8,3                  ## @PART_DOWN
	.no_dead_strip	_wl18xx_get_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl18xx_get_mac
_wl18xx_get_mac:                        ; @wl18xx_get_mac
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _PART_TOP_PRCM_ELP_SOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PART_TOP_PRCM_ELP_SOC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_wlcore_set_partition
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _WL18XX_REG_FUSE_BD_ADDR_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL18XX_REG_FUSE_BD_ADDR_1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x29, #44
	mov	x0, x19
	bl	_wlcore_read32
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _WL18XX_REG_FUSE_BD_ADDR_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WL18XX_REG_FUSE_BD_ADDR_2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	sub	x2, x29, #48
	mov	x0, x19
	bl	_wlcore_read32
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldp	w8, w9, [x29, #-48]
	lsr	w10, w9, #24
	bfi	w10, w8, #8, #16
	and	w8, w9, #0xffffff
	stp	w10, w8, [x19]
	orr	w8, w10, w8
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x21, sp
Lloh12:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	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
	mov	x0, x20
	bl	_eth_random_addr
	ldp	w8, w9, [x20]
	lsl	w9, w9, #8
	add	w8, w9, w8, lsl #16
	ldp	w9, w10, [x20, #8]
	add	w8, w8, w9
	ldp	w9, w11, [x20, #16]
	lsl	w9, w9, #8
	add	w9, w9, w10, lsl #16
	add	w9, w9, w11
	stp	w8, w9, [x19]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_warning
	mov	sp, x21
LBB0_5:
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _PART_DOWN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PART_DOWN@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_wlcore_set_partition
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PART_TOP_PRCM_ELP_SOC,8,3      ; @PART_TOP_PRCM_ELP_SOC
	.comm	_WL18XX_REG_FUSE_BD_ADDR_1,4,2  ; @WL18XX_REG_FUSE_BD_ADDR_1
	.comm	_WL18XX_REG_FUSE_BD_ADDR_2,4,2  ; @WL18XX_REG_FUSE_BD_ADDR_2
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC address from fuse not available, using random locally administered addresses."

	.comm	_PART_DOWN,8,3                  ; @PART_DOWN
	.no_dead_strip	_wl18xx_get_mac
.subsections_via_symbols
