	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_generate_layout_subdir
_csr1212_generate_layout_subdir:        ## @csr1212_generate_layout_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r10
	testq	%r10, %r10
	je	LBB0_1
## %bb.2:
	movq	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	movq	_CSR1212_KV_ID_EXTENDED_ROM@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r12
	movq	%rcx, %r13
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r10), %r10
	movq	%r13, %rcx
	movq	%r12, %rbx
	testq	%r10, %r10
	je	LBB0_28
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r10), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CSR1212_KV_ID_EXTENDED_KEY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	movq	(%r9), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	$0, (%rdi)
	movq	(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movq	(%rsi), %rcx
	movq	%rdi, (%rcx)
	movq	%rdi, (%rsi)
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	56(%rdi), %rdi
	movq	%r13, %rcx
	movq	%r12, %rbx
	testq	%rdi, %rdi
	je	LBB0_27
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%rdi), %rdx
	cmpq	%r15, %rdx
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rdi), %r8
	movq	%rdi, %r12
	movq	%rcx, %r13
	cmpq	16(%rbx), %r8
	je	LBB0_24
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%r11, %rdx
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=2
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rdi), %r8
	movq	%rbx, %r12
	movq	%rdi, %r13
	cmpq	16(%rcx), %r8
	jne	LBB0_10
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %r12
	movq	%rcx, %r13
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %r12
	movq	%rcx, %r13
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rdi, %r12
	movq	%rcx, %r13
	jmp	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %r12
	movq	%rdi, %r13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%eax
	movl	48(%rdi), %ecx
	orl	$2, %ecx
	cmpl	$130, %ecx
	jne	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rdi, (%rcx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdi), %rbx
	movq	%rbx, (%rcx)
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rdi, 8(%rbx)
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%r14, %rdx
	jne	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	$-1, 24(%rdi)
	jmp	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rcx, 8(%rbx)
	cmpq	%r14, %rdx
	jne	LBB0_25
	jmp	LBB0_18
LBB0_1:
	xorl	%eax, %eax
LBB0_28:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID,8,3 ## @CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID
	.comm	_CSR1212_KV_ID_EXTENDED_KEY,8,3 ## @CSR1212_KV_ID_EXTENDED_KEY
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,8,3 ## @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_generate_layout_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_layout_subdir
_csr1212_generate_layout_subdir:        ; @csr1212_generate_layout_subdir
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_28
; %bb.1:
	mov	w0, #0
	mov	x16, #0
	mov	x17, #0
Lloh0:
	adrp	x9, _CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CSR1212_KV_ID_EXTENDED_KEY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CSR1212_KV_ID_EXTENDED_KEY@GOTPAGEOFF]
Lloh5:
	adrp	x11, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGEOFF]
	mov	w12, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x17
	mov	x3, x16
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	mov	x16, x3
	mov	x17, x2
	cbz	x8, LBB0_27
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x13, [x8]
	cbz	x13, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x10]
	ldr	x15, [x11]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	str	xzr, [x13]
	ldr	x16, [x1]
	str	x16, [x13, #8]
	ldr	x16, [x1]
	str	x13, [x16]
	str	x13, [x1]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x13, [x13, #56]
	mov	x16, x3
	mov	x17, x2
	cbz	x13, LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x4, [x13, #40]
	cmp	x4, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	x17, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x5, [x13, #16]
	ldr	x6, [x17, #16]
	mov	x2, x13
	mov	x3, x16
	cmp	x5, x6
	b.eq	LBB0_14
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x4, x14
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	x16, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x5, [x13, #16]
	ldr	x6, [x16, #16]
	mov	x2, x17
	mov	x3, x13
	cmp	x5, x6
	b.ne	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x2, x17
	mov	x3, x16
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x2, x17
	mov	x3, x16
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x2, x13
	mov	x3, x16
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x2, x17
	mov	x3, x13
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w0, w0, #1
	ldr	w16, [x13, #48]
	orr	w16, w16, #0x2
	cmp	w16, #130
	b.ne	LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x16, [x13, #8]
	cbz	x16, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x17, [x16]
	cmp	x17, x13
	b.eq	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x17, [x13]
	cbz	x17, LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x5, [x17, #8]
	cmp	x5, x13
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x16, [x17, #8]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x17, [x13]
	str	x17, [x16]
	ldr	x17, [x13]
	cbnz	x17, LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x4, x15
	b.ne	LBB0_6
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w12, [x13, #24]
	b	LBB0_7
LBB0_27:
	ret
LBB0_28:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID,8,3 ; @CSR1212_KV_ID_EXTENDED_KEY_SPECIFIER_ID
	.comm	_CSR1212_KV_ID_EXTENDED_KEY,8,3 ; @CSR1212_KV_ID_EXTENDED_KEY
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,8,3 ; @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_generate_layout_subdir
.subsections_via_symbols
