	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl3501_get_flash_mac_addr
_wl3501_get_flash_mac_addr:             ## @wl3501_get_flash_mac_addr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	(%rdi), %rbx
	movq	_WL3501_BSS_FPAGE3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WL3501_NIC_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_wl3501_outb
	movq	_WL3501_NIC_LMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_wl3501_outb
	movq	_WL3501_NIC_LMAH@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	$64, %edi
	callq	_wl3501_outb
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	_WL3501_NIC_IODPA@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, 12(%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, 16(%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	8(%r15), %rcx
	movl	%eax, 20(%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	%rax, 24(%r15)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	_WL3501_BSS_FPAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WL3501_NIC_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_wl3501_outb
	movq	_WL3501_NIC_LMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$4, %edi
	callq	_wl3501_outb
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	$64, %edi
	callq	_wl3501_outb
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	16(%r15), %rcx
	movq	%rax, (%rcx)
	movl	$100, %edi
	callq	_WL3501_NOPLOOP
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_inb
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	_WL3501_BSS_SPAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wl3501_switch_page
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpl	$96, 4(%rax)
	sete	%r14b
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL3501_BSS_FPAGE3,4,2          ## @WL3501_BSS_FPAGE3
	.comm	_WL3501_NIC_BSS,8,3             ## @WL3501_NIC_BSS
	.comm	_WL3501_NIC_LMAL,8,3            ## @WL3501_NIC_LMAL
	.comm	_WL3501_NIC_LMAH,8,3            ## @WL3501_NIC_LMAH
	.comm	_WL3501_NIC_IODPA,8,3           ## @WL3501_NIC_IODPA
	.comm	_WL3501_BSS_FPAGE0,4,2          ## @WL3501_BSS_FPAGE0
	.comm	_WL3501_BSS_SPAGE0,4,2          ## @WL3501_BSS_SPAGE0
	.no_dead_strip	_wl3501_get_flash_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl3501_get_flash_mac_addr
_wl3501_get_flash_mac_addr:             ; @wl3501_get_flash_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _WL3501_BSS_FPAGE3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL3501_BSS_FPAGE3@GOTPAGEOFF]
	ldrsw	x20, [x0]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _WL3501_NIC_BSS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WL3501_NIC_BSS@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_wl3501_outb
Lloh5:
	adrp	x23, _WL3501_NIC_LMAL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WL3501_NIC_LMAL@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x20
	mov	w0, #0
	bl	_wl3501_outb
Lloh7:
	adrp	x24, _WL3501_NIC_LMAH@GOTPAGE
Lloh8:
	ldr	x24, [x24, _WL3501_NIC_LMAH@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x20
	mov	w0, #64
	bl	_wl3501_outb
	mov	w0, #100
	bl	_WL3501_NOPLOOP
Lloh9:
	adrp	x21, _WL3501_NIC_IODPA@GOTPAGE
Lloh10:
	ldr	x21, [x21, _WL3501_NIC_IODPA@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8, #4]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8, #12]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8, #16]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8, #20]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	str	x0, [x19, #24]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
Lloh11:
	adrp	x8, _WL3501_BSS_FPAGE0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WL3501_BSS_FPAGE0@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_wl3501_outb
	ldr	x8, [x23]
	add	x1, x8, x20
	mov	w0, #4
	bl	_wl3501_outb
	ldr	x8, [x24]
	add	x1, x8, x20
	mov	w0, #64
	bl	_wl3501_outb
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #16]
	str	x0, [x8]
	mov	w0, #100
	bl	_WL3501_NOPLOOP
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
Lloh14:
	adrp	x8, _WL3501_BSS_SPAGE0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WL3501_BSS_SPAGE0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wl3501_switch_page
	mov	w0, #0
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	cmp	w8, #96
	cset	w0, eq
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WL3501_BSS_FPAGE3,4,2          ; @WL3501_BSS_FPAGE3
	.comm	_WL3501_NIC_BSS,8,3             ; @WL3501_NIC_BSS
	.comm	_WL3501_NIC_LMAL,8,3            ; @WL3501_NIC_LMAL
	.comm	_WL3501_NIC_LMAH,8,3            ; @WL3501_NIC_LMAH
	.comm	_WL3501_NIC_IODPA,8,3           ; @WL3501_NIC_IODPA
	.comm	_WL3501_BSS_FPAGE0,4,2          ; @WL3501_BSS_FPAGE0
	.comm	_WL3501_BSS_SPAGE0,4,2          ; @WL3501_BSS_SPAGE0
	.no_dead_strip	_wl3501_get_flash_mac_addr
.subsections_via_symbols
