	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enumerate_mapped_resources
_enumerate_mapped_resources:            ## @enumerate_mapped_resources
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	20(%rcx), %esi
	movl	16(%rcx), %edx
	movq	(%rcx), %rcx
	movq	8(%r14), %r8
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	8(%r14), %rax
	addq	(%r14), %rax
	jle	LBB0_12
## %bb.1:
	leaq	24(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_res_free_str
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	8(%r14), %rax
	addq	(%r14), %rax
	cmpq	%rax, %rcx
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r14,4), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_resource_dup_string
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	(%rbx,%r14,4), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14,%rdx), %rax
	addq	(%r14,%rdx), %rax
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rcx
	addq	%r14, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leaq	24(%rcx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_res_free_str
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rax
	addq	(%rcx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rdx,2), %r14
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r14,4), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_resource_dup_string
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movslq	(%rbx,%r14,4), %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14,%rcx), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	(%r14,%rcx), %rax
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=3
	incq	%r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%r14,%rcx), %rax
	addq	(%r14,%rcx), %rax
	addq	$12, %r12
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12), %r13d
	movslq	-4(%r12), %rbx
	movl	(%r14,%rbx), %ecx
	movl	8(%r14,%rbx), %edx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	_address_from_rva
	movl	(%r14,%rbx), %ecx
	movl	4(%r14,%rbx), %esi
	movq	_FALSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r13d, %edi
	movq	%rax, %rdx
	callq	_allocate_resource_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	%rax, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_update_add_resource
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_9
LBB0_12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version (%d.%d) %d named %d id entries\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_enumerate_mapped_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enumerate_mapped_resources
_enumerate_mapped_resources:            ; @enumerate_mapped_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	ldp	w2, w1, [x3, #16]
	ldr	x3, [x3]
	ldr	x4, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldp	x8, x9, [x19]
	add	x8, x9, x8
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x10, #0
	add	x8, x19, #24
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x8, x19, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh2:
	adrp	x27, _FALSE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	bl	_res_free_str
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x10, x10, #1
	ldp	x8, x9, [x19]
	add	x8, x9, x8
	cmp	x10, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	mov	w9, #12
	madd	x24, x10, x9, x8
	mov	x0, x19
	mov	x1, x24
	bl	_resource_dup_string
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	ldrsw	x8, [x24]
	add	x9, x19, x8
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	ldp	x8, x9, [x9]
	add	x8, x9, x8
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, #24
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x24
	bl	_res_free_str
	ldp	x9, x10, [sp, #32]              ; 16-byte Folded Reload
	add	x10, x10, #1
	ldp	x8, x9, [x9]
	add	x8, x9, x8
	cmp	x10, x8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mov	w8, #12
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	madd	x25, x10, x8, x9
	mov	x0, x19
	mov	x1, x25
	bl	_resource_dup_string
	mov	x24, x0
	ldrsw	x8, [x25]
	add	x28, x19, x8
	ldp	x9, x10, [x28]
	add	x9, x10, x9
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x22, #0
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x23, x9, x8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	add	x22, x22, #1
	ldp	x8, x9, [x28]
	add	x23, x23, #12
	add	x8, x9, x8
	cmp	x22, x8
	b.ge	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w25, [x23]
	ldursw	x8, [x23, #-4]
	add	x26, x19, x8
	ldr	w2, [x26, #8]
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x20
	bl	_address_from_rva
	mov	x2, x0
	ldp	w3, w1, [x26]
	ldr	w4, [x27]
	mov	x0, x25
	bl	_allocate_resource_data
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x26, x0
	ldr	w5, [x27]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	bl	_update_add_resource
	cbnz	w0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x26
	bl	_HeapFree
	b	LBB0_8
LBB0_12:
Lloh4:
	adrp	x8, _TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version (%d.%d) %d named %d id entries\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_enumerate_mapped_resources
.subsections_via_symbols
