	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_coff_res_dir
_read_coff_res_dir:                     ## @read_coff_res_dir
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdx), %rax
	subq	%rsi, %rax
	cmpq	$159, %rax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_overrun
LBB0_2:
	movl	$40, %edi
	callq	_res_alloc
	movq	%rax, %r13
	movl	36(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 32(%r13)
	movl	32(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 24(%r13)
	movq	24(%r15), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 16(%r13)
	movq	16(%r15), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 8(%r13)
	movq	$0, (%r13)
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %rbx
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	$40, %r15
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_15
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%r13, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r14)
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_read_coff_data_entry
	movq	%rax, 16(%r14)
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %r13
	addq	$8, %r13
	movq	%r14, (%rcx)
	incl	%eax
	addq	$8, %r15
	movq	%r13, %rcx
	cmpl	-128(%rbp), %eax                ## 4-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpq	8(%r14), %r15
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_overrun
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	cmpl	%ecx, %ebx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_overrun
	movq	(%r14), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %ecx
	leaq	(%rax,%rcx,4), %r13
	movl	$64, %edi
	callq	_res_alloc
	movq	%rax, %r14
	movq	$0, 8(%rax)
	addq	$32, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$1, 32(%r14)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r15
	movl	%r15d, 48(%r14)
	leal	(,%rax,8), %edi
	callq	_res_alloc
	movq	%rax, 56(%r14)
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r15d
	addq	$8, %r13
	shlq	$3, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rbx,%r13), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	56(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	addq	$8, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmoveq	-136(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	cmpl	%ecx, %ebx
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_overrun
	movq	(%r15), %rax
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	cmpl	%ecx, %ebx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_overrun
	movq	(%r15), %rax
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%r14)
	movl	%ebx, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_read_coff_res_dir
	movq	%rax, 24(%r14)
	jmp	LBB0_26
LBB0_15:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_31
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$0, (%rbx)
	leaq	(%rax,%r14,4), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_read_coff_data_entry
	movq	%rax, 16(%rbx)
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %r14
	movq	%rbx, (%r13)
	movq	%rbx, %r13
	addq	$8, %r13
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addq	$8, %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_31
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	8(%r14), %r15
	jb	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_overrun
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	4(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%r15, %rcx
	movq	%rax, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, %r14
	movl	$64, %edi
	callq	_res_alloc
	movq	%rax, %rbx
	addq	$32, %rax
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	$0, 8(%rbx)
	movl	$0, 32(%rbx)
	movq	%r15, 40(%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	$-2147483648, %r14d             ## imm = 0x80000000
	jne	LBB0_20
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	movslq	%ecx, %rcx
	cmpq	%r14, %rcx
	ja	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_overrun
	movq	(%r15), %rax
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	andl	$2147483647, %r14d              ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r14
	jb	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_overrun
	movq	(%r15), %rax
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$1, (%rbx)
	leaq	(%rax,%r14,4), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	callq	_read_coff_res_dir
	movq	%rax, 24(%rbx)
	jmp	LBB0_30
LBB0_31:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	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	"directory"

L_.str.1:                               ## @.str.1
	.asciz	"named directory entry"

L_.str.2:                               ## @.str.2
	.asciz	"directory entry name"

L_.str.3:                               ## @.str.3
	.asciz	"named subdirectory"

L_.str.4:                               ## @.str.4
	.asciz	"named resource"

L_.str.5:                               ## @.str.5
	.asciz	"ID directory entry"

L_.str.6:                               ## @.str.6
	.asciz	"ID subdirectory"

L_.str.7:                               ## @.str.7
	.asciz	"ID resource"

	.no_dead_strip	_read_coff_res_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_coff_res_dir
_read_coff_res_dir:                     ; @read_coff_res_dir
	.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	x24, x4
	mov	x28, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x8, [x2, #8]
	sub	x8, x8, x1
	cmp	x8, #159
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
LBB0_2:
	mov	w0, #40
	bl	_res_alloc
	mov	x20, x0
	ldr	w1, [x23, #36]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x20, #32]
	ldr	w1, [x23, #32]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x20, #24]
	ldr	x1, [x23, #24]
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x20, #16]
	ldr	x1, [x23, #16]
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	stp	xzr, x0, [x20]
	ldr	x1, [x23, #8]
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	mov	x25, x0
	ldr	x1, [x23]
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	add	x19, x23, #40
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	cmp	w25, #1
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_19
; %bb.3:
	mov	w25, #0
	add	w8, w24, #1
	stp	w8, w24, [sp, #16]              ; 8-byte Folded Spill
	mov	x9, x20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x23]
	lsl	x9, x27, #32
	add	x1, x8, x9, asr #30
	mov	x0, x22
	mov	x2, x21
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	mov	x3, x28
	bl	_read_coff_data_entry
	str	x0, [x23, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x20, [sp, #32]              ; 16-byte Folded Reload
	str	x23, [x8]
	add	w25, w25, #1
	add	x19, x19, #8
	mov	x9, x20
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_19
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	str	x28, [sp, #56]                  ; 8-byte Folded Spill
	ldr	x8, [x21, #8]
	cmp	x19, x8
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	mov	x23, x0
	ldr	w1, [x19]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	mov	x27, x0
	and	w20, w23, #0x7fffffff
	ldp	x8, x9, [x21]
	sub	x9, x9, x8
	lsr	x9, x9, #2
	cmp	w20, w9
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
	ldr	x8, [x21]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x8, w20, uxtw #2
	mov	w0, #64
	bl	_res_alloc
	mov	x23, x0
	mov	x8, x0
	str	xzr, [x8, #8]!
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	x20, x0
	mov	w8, #1
	str	w8, [x20, #32]!
	mov	x0, x22
	mov	x1, x28
	mov	w2, #2
	bl	_windres_get_16
	mov	x26, x0
	str	w26, [x23, #48]
	lsl	w0, w26, #3
	bl	_res_alloc
	str	x0, [x23, #56]
	cmp	w26, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, #0
	and	x8, x26, #0xffffffff
	add	x26, x28, #8
	lsl	x28, x8, #3
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x26, x24
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	ldr	x8, [x23, #56]
	str	x0, [x8, x24]
	add	x24, x24, #8
	cmp	x28, x24
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w24, #0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	csel	x8, x20, x8, eq
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	tbnz	w27, #31, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x9, [x21]
	sub	x9, x9, x8
	lsr	x9, x9, #2
	cmp	w27, w9
	b.lt	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
	ldr	x8, [x21]
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w20, w27, #0x7fffffff
	ldp	x8, x9, [x21]
	sub	x9, x9, x8
	lsr	x9, x9, #2
	cmp	w20, w9
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
	ldr	x8, [x21]
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #1
	str	w9, [x23]
	add	x1, x8, w20, uxtw #2
	mov	x0, x22
	mov	x2, x21
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	mov	x3, x28
	ldr	w4, [sp, #16]                   ; 4-byte Folded Reload
	bl	_read_coff_res_dir
	str	x0, [x23, #24]
	b	LBB0_5
LBB0_19:
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.20:
	add	w8, w24, #1
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	str	wzr, [x23]
	add	x1, x8, x25, lsl #2
	mov	x0, x22
	mov	x2, x21
	mov	x3, x28
	bl	_read_coff_data_entry
	str	x0, [x23, #16]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	str	x23, [x26]
	add	x19, x19, #8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	subs	w8, w8, #1
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b.eq	LBB0_31
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x20
	ldr	x8, [x21, #8]
	cmp	x19, x8
	b.lo	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	mov	x27, x0
	ldr	w1, [x19]
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	mov	x25, x0
	mov	w0, #64
	bl	_res_alloc
	mov	x23, x0
	mov	x20, x0
	str	xzr, [x20, #8]!
	mov	x8, x0
	str	wzr, [x8, #32]!
	str	x27, [x0, #40]
	cmp	w24, #0
	csel	x28, x8, x28, eq
	tbnz	w25, #31, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	x8, x9, [x21]
	sub	x9, x9, x8
	lsr	x9, x9, #2
	cmp	x25, w9, sxtw
	b.lo	LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh12:
	adrp	x0, l_.str.7@PAGE
Lloh13:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
	ldr	x8, [x21]
	b	LBB0_21
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	and	x25, x25, #0x7fffffff
	ldp	x8, x9, [x21]
	sub	x9, x9, x8
	lsr	x9, x9, #2
	cmp	x25, w9, sxtw
	b.lo	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_overrun
	ldr	x8, [x21]
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w9, #1
	str	w9, [x23]
	add	x1, x8, x25, lsl #2
	mov	x0, x22
	mov	x2, x21
	mov	x3, x28
	ldr	w4, [sp, #56]                   ; 4-byte Folded Reload
	bl	_read_coff_res_dir
	str	x0, [x23, #24]
	b	LBB0_22
LBB0_31:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directory"

l_.str.1:                               ; @.str.1
	.asciz	"named directory entry"

l_.str.2:                               ; @.str.2
	.asciz	"directory entry name"

l_.str.3:                               ; @.str.3
	.asciz	"named subdirectory"

l_.str.4:                               ; @.str.4
	.asciz	"named resource"

l_.str.5:                               ; @.str.5
	.asciz	"ID directory entry"

l_.str.6:                               ; @.str.6
	.asciz	"ID subdirectory"

l_.str.7:                               ; @.str.7
	.asciz	"ID resource"

	.no_dead_strip	_read_coff_res_dir
.subsections_via_symbols
