	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_ARC_extmap                ## -- Begin function dump_ARC_extmap
	.p2align	4, 0x90
_dump_ARC_extmap:                       ## @dump_ARC_extmap
	.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	_arc_extension_map@GOTPCREL(%rip), %r12
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_3:
	movq	_INST_HASH_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r12), %rcx
	movq	(%rcx,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	movq	16(%rbx), %r8
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_8
LBB0_9:
	movq	_NUM_EXT_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	movl	$12, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %r14
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	-12(%rcx,%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-4(%rcx,%r13), %r15d
	movl	(%rcx,%r13), %edi
	callq	_ExtReadWrite_image
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_printf
	movq	_NUM_EXT_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_14:
	movq	_NUM_EXT_COND@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.15:
	leaq	L_.str.3(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %eax
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_arc_extension_map,32,3         ## @arc_extension_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUX : %s %ld\n"

	.comm	_INST_HASH_SIZE,4,2             ## @INST_HASH_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"INST: %d %d %x %s\n"

	.comm	_NUM_EXT_CORE,4,2               ## @NUM_EXT_CORE
L_.str.2:                               ## @.str.2
	.asciz	"CORE: %s %d %s\n"

	.comm	_NUM_EXT_COND,4,2               ## @NUM_EXT_COND
L_.str.3:                               ## @.str.3
	.asciz	"COND: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_ARC_extmap                ; -- Begin function dump_ARC_extmap
	.p2align	2
_dump_ARC_extmap:                       ; @dump_ARC_extmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x20, _arc_extension_map@GOTPAGE
Lloh1:
	ldr	x20, [x20, _arc_extension_map@GOTPAGEOFF]
	ldr	x21, [x20, #24]
	cbz	x21, LBB0_3
; %bb.1:
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w9, [x21, #16]
	stp	x8, x9, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_2
LBB0_3:
Lloh4:
	adrp	x21, _INST_HASH_SIZE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _INST_HASH_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x22, #0
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x20, #16]
	ldr	x23, [x9, x22, lsl #3]
	cbz	x23, LBB0_5
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #16]
	ldp	w9, w10, [x23]
	ldr	w11, [x23, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x23, [x23, #24]
	cbnz	x23, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	b	LBB0_5
LBB0_9:
Lloh8:
	adrp	x21, _NUM_EXT_CORE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NUM_EXT_CORE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x22, #0
	mov	x23, #0
Lloh10:
	adrp	x19, l_.str.2@PAGE
Lloh11:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x24, [x9, x22]
	cbz	x24, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x9, x22
	ldp	w25, w0, [x8, #8]
	bl	_ExtReadWrite_image
	stp	x25, x0, [sp, #8]
	str	x24, [sp]
	mov	x0, x19
	bl	_printf
	ldr	w8, [x21]
	b	LBB0_11
LBB0_14:
Lloh12:
	adrp	x21, _NUM_EXT_COND@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NUM_EXT_COND@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x22, #0
Lloh14:
	adrp	x19, l_.str.3@PAGE
Lloh15:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x9, [sp]
	mov	x0, x19
	bl	_printf
	ldr	w8, [x21]
	b	LBB0_16
LBB0_19:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_arc_extension_map,32,3         ; @arc_extension_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUX : %s %ld\n"

	.comm	_INST_HASH_SIZE,4,2             ; @INST_HASH_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"INST: %d %d %x %s\n"

	.comm	_NUM_EXT_CORE,4,2               ; @NUM_EXT_CORE
l_.str.2:                               ; @.str.2
	.asciz	"CORE: %s %d %s\n"

	.comm	_NUM_EXT_COND,4,2               ; @NUM_EXT_COND
l_.str.3:                               ; @.str.3
	.asciz	"COND: %s\n"

.subsections_via_symbols
