	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function csr1212_fill_cache
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_csr1212_fill_cache:                    ## @csr1212_fill_cache
	.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	16(%rdi), %rax
	movq	24(%rdi), %rbx
	cmpq	(%rax), %rbx
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	_CSR1212_KV_ID_EXTENDED_ROM@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%r14), %rcx
	movq	%rax, %rbx
	cmpq	(%rcx), %rax
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r12
	movq	40(%rbx), %rdi
	subq	(%r14), %rdi
	callq	_bytes_to_quads
	movq	%rax, %r15
	movl	28(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r15), %esi
	movq	%rbx, %rdi
	callq	_csr1212_generate_tree_subdir
	movl	16(%rbx), %edi
	callq	_cpu_to_be16
	movq	%rax, 16(%r12,%r15)
	movl	(%r12,%r15), %edi
	movl	16(%rbx), %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%rbx), %eax
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	20(%rbx), %edi
	movl	24(%rbx), %r13d
	callq	_quads_to_bytes
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	_CSR1212_KV_ID_EXTENDED_ROM@GOTPCREL(%rip), %r13
	movl	%eax, %edx
	callq	_memcpy
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %edi
	callq	_cpu_to_be16
	movq	%rax, 16(%r12,%r15)
	movl	(%r12,%r15), %edi
	movl	20(%rbx), %esi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_csr1212_crc16
	movq	%rax, 8(%r12,%r15)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_WARN_ON
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rax)
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,4,2 ## @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_fill_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_fill_cache
_csr1212_fill_cache:                    ; @csr1212_fill_cache
	.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
	ldp	x8, x20, [x0, #16]
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	xzr, xzr, [x20]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	mov	x20, x8
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldp	x9, x21, [x19]
	sub	x0, x8, x9
	bl	_bytes_to_quads
	add	x24, x0, x21
	ldr	w8, [x20, #28]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_csr1212_generate_tree_subdir
	ldr	w0, [x20, #16]
	bl	_cpu_to_be16
	str	x0, [x24, #16]
	ldr	w0, [x24]
	ldr	w1, [x20, #16]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #32]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x24]
	ldp	w0, w22, [x20, #20]
	bl	_quads_to_bytes
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #20]
	bl	_cpu_to_be16
	str	x0, [x24, #16]
	ldr	w0, [x24]
	ldr	w1, [x20, #20]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_csr1212_crc16
	str	x0, [x24, #8]
	ldp	x8, x9, [x20]
	cbz	x9, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x8, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x8, #8]
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_WARN_ON
	ldp	x8, x9, [x20]
	cbnz	x9, LBB0_10
	b	LBB0_11
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,4,2 ; @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_fill_cache
.subsections_via_symbols
