	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_generate_tree_subdir
_csr1212_generate_tree_subdir:          ## @csr1212_generate_tree_subdir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.1:
	movq	%rsi, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movq	%r15, %rax
	movq	%r12, %rcx
	testq	%rdx, %rdx
	je	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %r12
	movq	%rax, %r15
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	1(%r13), %edi
	callq	_quads_to_bytes
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	subl	%eax, %ebx
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_bytes_to_quads
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_CSR1212_KV_KEY_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	4(%r14), %edx
	movq	_CSR1212_KV_KEY_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_CSR1212_KV_KEY_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%r14), %edi
	movq	_CSR1212_KV_KEY_TYPE_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edx, %edi
	callq	_cpu_to_be32
	movslq	%r13d, %rcx
	movl	%eax, (%rbx,%rcx,4)
	incl	%r13d
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	40(%r14), %r14
	movq	%r15, %rax
	movq	%r12, %rcx
	testq	%r14, %r14
	je	LBB0_22
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r14), %edx
	movq	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r14), %rdx
	movq	%r14, %r12
	movq	%rax, %r15
	cmpq	16(%rcx), %rdx
	je	LBB0_15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_CSR1212_KV_ID_EXTENDED_KEY@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r14), %rdx
	movq	%rcx, %r12
	movq	%r14, %r15
	cmpq	16(%rax), %rdx
	jne	LBB0_8
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %r12
	movq	%rax, %r15
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %r12
	movq	%rax, %r15
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %r12
	movq	%rax, %r15
	jmp	LBB0_8
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %r12
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	16(%r14), %eax
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	24(%r14), %eax
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %edi
	callq	_WARN_ON
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID,4,2 ## @CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID
	.comm	_CSR1212_KV_ID_EXTENDED_KEY,4,2 ## @CSR1212_KV_ID_EXTENDED_KEY
	.comm	_CSR1212_KV_KEY_ID_MASK,4,2     ## @CSR1212_KV_KEY_ID_MASK
	.comm	_CSR1212_KV_KEY_SHIFT,4,2       ## @CSR1212_KV_KEY_SHIFT
	.comm	_CSR1212_KV_KEY_TYPE_MASK,4,2   ## @CSR1212_KV_KEY_TYPE_MASK
	.comm	_CSR1212_KV_KEY_TYPE_SHIFT,4,2  ## @CSR1212_KV_KEY_TYPE_SHIFT
	.no_dead_strip	_csr1212_generate_tree_subdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_generate_tree_subdir
_csr1212_generate_tree_subdir:          ; @csr1212_generate_tree_subdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x10, [x0, #32]
	cbz	x10, LBB0_23
; %bb.1:
	mov	x19, x1
	mov	w22, #0
	mov	x8, #0
	mov	x9, #0
Lloh0:
	adrp	x23, _CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPAGEOFF]
Lloh2:
	adrp	x21, _CSR1212_KV_KEY_ID_MASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CSR1212_KV_KEY_ID_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CSR1212_KV_KEY_SHIFT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CSR1212_KV_KEY_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CSR1212_KV_KEY_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CSR1212_KV_KEY_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x27, _CSR1212_KV_KEY_TYPE_SHIFT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _CSR1212_KV_KEY_TYPE_SHIFT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	ldr	x10, [x10, #8]
	mov	x8, x24
	mov	x9, x28
	cbz	x10, LBB0_23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	x10, [sp]                       ; 8-byte Folded Spill
	ldr	x20, [x10]
	cbnz	x20, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x9
	mov	x24, x8
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w21, [x20]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w25, [x8]
	add	w0, w22, #1
	bl	_quads_to_bytes
	add	w8, w25, w0
Lloh10:
	adrp	x25, _CSR1212_KV_KEY_SHIFT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _CSR1212_KV_KEY_SHIFT@GOTPAGEOFF]
	sub	w0, w21, w8
Lloh12:
	adrp	x21, _CSR1212_KV_KEY_ID_MASK@GOTPAGE
Lloh13:
	ldr	x21, [x21, _CSR1212_KV_KEY_ID_MASK@GOTPAGEOFF]
	bl	_bytes_to_quads
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21]
	ldp	w9, w10, [x20, #4]
	and	w8, w8, w9
	ldr	w9, [x25]
	lsl	w8, w8, w9
	orr	w8, w8, w0
	ldr	w11, [x26]
	and	w10, w11, w10
	ldr	w11, [x27]
	add	w9, w11, w9
	lsl	w9, w10, w9
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [x19, w22, sxtw #2]
	add	w22, w22, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x20, [x20, #40]
	mov	x8, x24
	mov	x9, x28
	cbz	x20, LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x20, #4]
	ldr	w11, [x23]
	cmp	w10, w11
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	x9, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x20, #16]
	ldr	x11, [x9, #16]
	mov	x28, x20
	mov	x24, x8
	cmp	x10, x11
	b.eq	LBB0_14
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh14:
	adrp	x11, _CSR1212_KV_ID_EXTENDED_KEY@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CSR1212_KV_ID_EXTENDED_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	x8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x20, #16]
	ldr	x11, [x8, #16]
	mov	x28, x9
	mov	x24, x20
	cmp	x10, x11
	b.ne	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x9
	mov	x24, x8
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x9
	mov	x24, x8
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x20
	mov	x24, x8
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x9
	mov	x24, x20
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh17:
	adrp	x11, lJTI0_0@PAGE
Lloh18:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_5
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x20, #16]
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x20, #24]
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #1
	bl	_WARN_ON
	mov	w0, #0
	b	LBB0_6
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
                                        ; -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID,4,2 ; @CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID
	.comm	_CSR1212_KV_ID_EXTENDED_KEY,4,2 ; @CSR1212_KV_ID_EXTENDED_KEY
	.comm	_CSR1212_KV_KEY_ID_MASK,4,2     ; @CSR1212_KV_KEY_ID_MASK
	.comm	_CSR1212_KV_KEY_SHIFT,4,2       ; @CSR1212_KV_KEY_SHIFT
	.comm	_CSR1212_KV_KEY_TYPE_MASK,4,2   ; @CSR1212_KV_KEY_TYPE_MASK
	.comm	_CSR1212_KV_KEY_TYPE_SHIFT,4,2  ; @CSR1212_KV_KEY_TYPE_SHIFT
	.no_dead_strip	_csr1212_generate_tree_subdir
.subsections_via_symbols
