	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_mapped_resources
_read_mapped_resources:                 ## @read_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_get_nt_header
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_get_section_header
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	cmpq	$0, -48(%rbp)
	je	LBB0_14
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%rax), %r12
	xorl	%r15d, %r15d
	leaq	L_.str(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	$6, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	-48(%rbp), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jb	LBB0_4
## %bb.7:
	cmpq	%rax, %r15
	jne	LBB0_8
	jmp	LBB0_13
LBB0_5:
	movq	-48(%rbp), %rax
	cmpq	%rax, %r15
	je	LBB0_13
LBB0_8:
	shlq	$4, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r15), %rsi
	cmpq	%r13, %rsi
	ja	LBB0_13
## %bb.9:
	movslq	8(%rbx,%r15), %rdx
	leaq	(%rsi,%rdx), %rax
	cmpq	%r13, %rax
	ja	LBB0_13
## %bb.10:
	leaq	(%rbx,%r15), %r12
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_TRACE
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%r15), %rcx
	addq	$8, %rcx
	cmpl	$4, (%rcx)
	jb	LBB0_13
## %bb.12:
	leaq	(%r14,%rax,4), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_enumerate_mapped_resources
LBB0_13:
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".rsrc"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"found .rsrc at %08x, size %08x\n"

	.no_dead_strip	_read_mapped_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mapped_resources
_read_mapped_resources:                 ; @read_mapped_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_get_nt_header
	cbz	x0, LBB0_7
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_get_section_header
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.3:
	mov	x22, x0
	mov	x24, #0
	add	x25, x0, #12
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x23
	mov	w2, #6
	bl	_memcmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]
	add	x25, x25, #16
	cmp	x24, x8
	b.lo	LBB0_4
; %bb.6:
	cmp	x24, x8
	b.ne	LBB0_9
	b	LBB0_14
LBB0_7:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	ldr	x8, [sp, #8]
	cmp	x24, x8
	b.eq	LBB0_14
LBB0_9:
	add	x22, x22, x24, lsl #4
	ldr	x1, [x22]
	cmp	x1, x19
	b.hi	LBB0_14
; %bb.10:
	mov	x23, x22
	ldrsw	x2, [x23, #8]!
	add	x8, x1, x2
	cmp	x8, x19
	b.hi	LBB0_14
; %bb.11:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_TRACE
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w9, [x23]
	cmp	w9, #4
	b.lo	LBB0_14
; %bb.13:
	add	x3, x20, x8, lsl #2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_enumerate_mapped_resources
LBB0_14:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".rsrc"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"found .rsrc at %08x, size %08x\n"

	.no_dead_strip	_read_mapped_resources
.subsections_via_symbols
