	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_raw_resources
_write_raw_resources:                   ## @write_raw_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movb	$0, (%r13)
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_GetTempPathW
	testl	%eax, %eax
	je	LBB0_37
## %bb.1:
	leaq	_write_raw_resources.prefix(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_GetTempFileNameW
	testl	%eax, %eax
	je	LBB0_37
## %bb.2:
	movq	(%r14), %rdi
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_CopyFileW
	testl	%eax, %eax
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	je	LBB0_16
## %bb.3:
	movq	%r12, %rdi
	callq	_debugstr_w
	movslq	%eax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TRACE
	cmpl	$0, 8(%r14)
	je	LBB0_13
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_create_mapping
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	(%rax), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rsi
	callq	_get_nt_header
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	(%rax), %rcx
	movq	_IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpq	(%rsi), %rcx
	setne	%dl
	movq	(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	jle	LBB0_19
## %bb.7:
	movq	8(%rax,%rdx,8), %rcx
	testq	%rcx, %rcx
	jle	LBB0_21
## %bb.8:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%rdx,8), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	callq	_get_resource_section
	testq	%rax, %rax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jne	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	leaq	-80(%rbp), %rdx
	callq	_get_section_header
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, %rcx
	movq	-80(%rbp), %rax
	leaq	(%rax,%rax,4), %rbx
	leaq	(%rcx,%rbx,8), %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incl	56(%rax)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	movq	%rcx, %r15
	callq	_memset
	movl	32(%r15,%rbx,8), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	movq	_IMAGE_SCN_CNT_INITIALIZED_DATA@GOTPCREL(%rip), %rax
	movq	_IMAGE_SCN_MEM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15,%rbx,8)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 4(%r15,%rbx,8)
	movq	%r13, %rax
LBB0_11:
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	movq	%rax, %r13
	je	LBB0_23
## %bb.12:
	movq	16(%r13), %rdx
	jmp	LBB0_28
LBB0_13:
	movq	(%r14), %rdi
	movl	(%r13), %esi
	callq	_create_mapping
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	movq	%r14, %rdi
	callq	_read_mapped_resources
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_16:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_34
LBB0_18:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ERR
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
	movq	%rcx, %rsi
LBB0_22:
	xorl	%eax, %eax
	callq	_ERR
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%rsi, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_26
## %bb.24:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_27
LBB0_26:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_27:
	subq	%rdx, %rsi
	movq	%rsi, 8(%r13)
	movq	$0, 16(%r13)
	xorl	%edx, %edx
LBB0_28:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_resource_sizes
	movq	-80(%rbp), %rsi
	movq	%rsi, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_30
## %bb.29:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_31
LBB0_30:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_31:
	movq	%rsi, %r15
	subq	%rdx, %r15
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r13), %rdi
	movq	%r15, %rcx
	subq	%rdi, %rcx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jne	LBB0_39
LBB0_32:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	movslq	%esi, %rbx
	movq	8(%r13), %rdx
	addq	%rdx, %rbx
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movslq	4(%r13), %rcx
	leaq	-80(%rbp), %rdx
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_write_resources
	movl	%eax, %r15d
	movq	-80(%rbp), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	subq	%rax, %rsi
	callq	_res_write_padding
	movq	8(%r13), %rsi
	movq	16(%r13), %rdx
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_33:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	-120(%rbp), %rbx                ## 8-byte Reload
LBB0_34:
	movq	%rbx, %rdi
	callq	_destroy_mapping
	movq	%r14, %rdi
	callq	_destroy_mapping
	testl	%r15d, %r15d
	movl	$0, %ebx
	je	LBB0_36
## %bb.35:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_CopyFileW
	movl	%eax, %ebx
LBB0_36:
	movq	%r12, %rdi
	callq	_DeleteFileW
	movl	%ebx, %r15d
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_91
## %bb.38:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	orq	%r8, %rdx
	shrq	$32, %rdx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	je	LBB0_41
## %bb.40:
	cqto
	idivq	%r8
	jmp	LBB0_42
LBB0_41:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_42:
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	movq	%rdi, %rax
	orq	%r9, %rax
	shrq	$32, %rax
	je	LBB0_44
## %bb.43:
	movq	%rdi, %rax
	cqto
	idivq	%r9
	jmp	LBB0_45
LBB0_44:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_45:
	addq	%rdx, %rcx
	movq	24(%r13), %rax
	movq	%rax, %rdx
	orq	%r8, %rdx
	shrq	$32, %rdx
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	je	LBB0_47
## %bb.46:
	cqto
	idivq	%r8
	jmp	LBB0_48
LBB0_47:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_48:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -160(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rax
	addq	%rax, %rdi
	addq	%r15, %rax
	movslq	%ecx, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rsi), %rbx
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
	cmpq	%rsi, %rdi
	cmovgeq	%rax, %rbx
	setl	%al
	cmpq	%rsi, %rbx
	setl	%r13b
	andb	%al, %r13b
	leaq	L_.str.7(%rip), %rdi
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movb	%r13b, -57(%rbp)                ## 1-byte Spill
	testb	%r13b, %r13b
	je	LBB0_50
## %bb.49:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_53
LBB0_50:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_resize_mapping
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_get_nt_header
	testq	%rax, %rax
	je	LBB0_77
## %bb.51:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_get_resource_section
	testq	%rax, %rax
	je	LBB0_78
## %bb.52:
	movq	%rax, %r13
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %r15                ## 8-byte Reload
LBB0_53:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	subq	-144(%rbp), %rax                ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subq	-168(%rbp), %rbx                ## 8-byte Folded Reload
	addq	%rax, %rbx
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, -176(%rbp)                ## 8-byte Folded Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jge	LBB0_59
## %bb.54:
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rsi
	addq	8(%r13), %rsi
	movq	$0, -136(%rbp)
	subq	%rsi, %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rsi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rsi,%rax), %rdi
	callq	_memmove
	movq	(%r14), %rdi
	leaq	-136(%rbp), %rdx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_get_section_header
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-136(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_60
## %bb.55:
	addq	$8, %rax
	xorl	%edx, %edx
	jmp	LBB0_57
LBB0_56:                                ##   in Loop: Header=BB0_57 Depth=1
	incq	%rdx
	addq	$40, %rax
	cmpq	%rcx, %rdx
	jge	LBB0_60
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	cmpq	8(%r13), %rsi
	jle	LBB0_56
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=1
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%rsi, (%rax)
	addl	%ebx, -4(%rax)
	movq	-136(%rbp), %rcx
	jmp	LBB0_56
LBB0_59:
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_64
LBB0_60:
	cmpb	$0, -57(%rbp)                   ## 1-byte Folded Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-128(%rbp), %rax                ## 8-byte Reload
	je	LBB0_64
## %bb.61:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_resize_mapping
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_get_nt_header
	testq	%rax, %rax
	je	LBB0_77
## %bb.62:
	movq	%rbx, %rsi
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_get_resource_section
	testq	%rax, %rax
	je	LBB0_78
## %bb.63:
	movq	%rax, %r13
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-128(%rbp), %rax                ## 8-byte Reload
LBB0_64:
	movq	%r15, 16(%r13)
	movq	%rax, 24(%r13)
	movq	(%rsi), %rax
	movslq	%ebx, %r15
	movq	_IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_71
## %bb.65:
	addq	%r15, 16(%rsi)
	movl	4(%r13), %eax
	movq	32(%rsi), %rcx
	movq	_IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-80(%rbp), %rax
	movq	%rax, 8(%rcx,%rdx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rsi, %rbx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_get_init_data_size
	movq	%rax, 40(%rbx)
	movq	24(%rbx), %r9
	testq	%r9, %r9
	jle	LBB0_32
## %bb.66:
	movq	%rbx, %rcx
	movq	32(%rbx), %r8
	movl	4(%r13), %ecx
	cmpq	$1, %r9
	jne	LBB0_79
## %bb.67:
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_68:
	testb	$1, %r9b
	je	LBB0_32
## %bb.69:
	shlq	$4, %rsi
	movl	(%r8,%rsi), %eax
	cmpl	%ecx, %eax
	jle	LBB0_32
## %bb.70:
	addq	%rsi, %r8
	addl	%edx, %eax
	movl	%eax, (%r8)
	jmp	LBB0_32
LBB0_71:
	addq	%r15, 24(%rsi)
	movslq	4(%r13), %rax
	movq	40(%rsi), %rcx
	movq	_IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPCREL(%rip), %rdx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rsi
	shlq	$4, %rsi
	movq	%rax, (%rcx,%rsi)
	movq	-80(%rbp), %rax
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_get_init_data_size
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 48(%rcx)
	movq	32(%rcx), %r9
	testq	%r9, %r9
	jle	LBB0_32
## %bb.72:
	movq	40(%rcx), %r8
	movslq	4(%r13), %rcx
	cmpq	$1, %r9
	jne	LBB0_85
## %bb.73:
	xorl	%esi, %esi
LBB0_74:
	testb	$1, %r9b
	je	LBB0_32
## %bb.75:
	shlq	$4, %rsi
	movq	(%r8,%rsi), %rax
	cmpq	%rcx, %rax
	jle	LBB0_32
## %bb.76:
	addq	%rsi, %r8
	addq	%r15, %rax
	movq	%rax, (%r8)
	jmp	LBB0_32
LBB0_77:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_33
LBB0_78:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_79:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	16(%r8), %rbx
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_81
LBB0_80:                                ##   in Loop: Header=BB0_81 Depth=1
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rsi, %rdi
	je	LBB0_68
LBB0_81:                                ## =>This Inner Loop Header: Depth=1
	movl	-16(%rbx), %eax
	cmpl	%ecx, %eax
	jle	LBB0_83
## %bb.82:                              ##   in Loop: Header=BB0_81 Depth=1
	addl	%edx, %eax
	movl	%eax, -16(%rbx)
LBB0_83:                                ##   in Loop: Header=BB0_81 Depth=1
	movl	(%rbx), %eax
	cmpl	%ecx, %eax
	jle	LBB0_80
## %bb.84:                              ##   in Loop: Header=BB0_81 Depth=1
	addl	%edx, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_80
LBB0_85:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	16(%r8), %rax
	xorl	%esi, %esi
	jmp	LBB0_87
LBB0_86:                                ##   in Loop: Header=BB0_87 Depth=1
	addq	$2, %rsi
	addq	$32, %rax
	cmpq	%rsi, %rdi
	je	LBB0_74
LBB0_87:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rax), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_89
## %bb.88:                              ##   in Loop: Header=BB0_87 Depth=1
	addq	%r15, %rdx
	movq	%rdx, -16(%rax)
LBB0_89:                                ##   in Loop: Header=BB0_87 Depth=1
	movq	(%rax), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_86
## %bb.90:                              ##   in Loop: Header=BB0_87 Depth=1
	addq	%r15, %rdx
	movq	%rdx, (%rax)
	jmp	LBB0_86
LBB0_91:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_write_raw_resources.prefix:            ## @write_raw_resources.prefix
	.asciz	"resu"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tempfile %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to read existing resources\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ## @IMAGE_NT_OPTIONAL_HDR64_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"invalid section alignment %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid file alignment %08x\n"

L_.str.4:                               ## @.str.4
	.asciz	".rsrc"

	.comm	_IMAGE_SCN_CNT_INITIALIZED_DATA,4,2 ## @IMAGE_SCN_CNT_INITIALIZED_DATA
	.comm	_IMAGE_SCN_MEM_READ,4,2         ## @IMAGE_SCN_MEM_READ
L_.str.5:                               ## @.str.5
	.asciz	"before .rsrc at %08x, size %08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"requires %08x (%08x) bytes\n"

L_.str.7:                               ## @.str.7
	.asciz	"file size %08x -> %08x\n"

L_.str.8:                               ## @.str.8
	.asciz	"couldn't get NT header\n"

	.comm	_IMAGE_DIRECTORY_ENTRY_RESOURCE,8,3 ## @IMAGE_DIRECTORY_ENTRY_RESOURCE
L_.str.9:                               ## @.str.9
	.asciz	"base = %p offset = %08x\n"

L_.str.10:                              ## @.str.10
	.asciz	"after  .rsrc at %08x, size %08x\n"

	.no_dead_strip	_write_raw_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_raw_resources
_write_raw_resources:                   ; @write_raw_resources
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x9, x0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x0, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh10:
	adrp	x28, _FALSE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _FALSE@GOTPAGEOFF]
	ldr	w25, [x28]
	strb	wzr, [x21]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_GetTempPathW
	cbz	w0, LBB0_29
; %bb.1:
Lloh12:
	adrp	x1, _write_raw_resources.prefix@PAGE
Lloh13:
	add	x1, x1, _write_raw_resources.prefix@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	mov	x3, x20
	bl	_GetTempFileNameW
	cbz	w0, LBB0_29
; %bb.2:
	ldr	x0, [x19]
	ldr	w2, [x28]
	mov	x1, x20
	bl	_CopyFileW
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x20
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.4:
	mov	x21, #0
LBB0_5:
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_create_mapping
	mov	x22, x0
	cbz	x0, LBB0_26
; %bb.6:
	ldp	x0, x1, [x22]
	bl	_get_nt_header
	cbz	x0, LBB0_26
; %bb.7:
	mov	x24, x0
Lloh19:
	adrp	x9, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh21:
	ldr	x9, [x9]
	mov	w10, #16
	mov	w11, #8
	cmp	x8, x9
	csel	x9, x11, x10, eq
	cset	w11, ne
	mov	w8, #24
	csel	x8, x10, x8, eq
	ldr	x10, [x0, w11, uxtw #3]
	cmp	x10, #0
	b.le	LBB0_19
; %bb.8:
	ldr	x27, [x24, x9]
	cmp	x27, #0
	b.le	LBB0_20
; %bb.9:
	stur	x10, [x29, #-112]               ; 8-byte Folded Spill
	ldr	x26, [x24, x8]
	ldp	x0, x1, [x22]
	bl	_get_resource_section
	mov	x23, x0
	cbnz	x0, LBB0_12
; %bb.10:
	stur	x26, [x29, #-120]               ; 8-byte Folded Spill
	ldp	x0, x1, [x22]
	sub	x2, x29, #96
	bl	_get_section_header
	cbz	x0, LBB0_26
; %bb.11:
	ldur	x8, [x29, #-96]
	mov	w9, #40
	madd	x23, x8, x9, x0
	ldr	w8, [x24, #56]
	add	w8, w8, #1
	str	w8, [x24, #56]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w0, [x23, #32]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #5
	bl	_memcpy
Lloh24:
	adrp	x8, _IMAGE_SCN_CNT_INITIALIZED_DATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IMAGE_SCN_CNT_INITIALIZED_DATA@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IMAGE_SCN_MEM_READ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IMAGE_SCN_MEM_READ@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23]
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	str	w8, [x23, #4]
LBB0_12:
	ldr	x1, [x23, #8]
	cbz	x1, LBB0_21
; %bb.13:
	ldr	x8, [x23, #16]
	b	LBB0_22
LBB0_14:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_26
LBB0_15:
	ldr	x0, [x19]
	ldr	w1, [x28]
	bl	_create_mapping
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.16:
	ldp	x1, x2, [x21]
	mov	x0, x19
	bl	_read_mapped_resources
	mov	x25, x0
	cbnz	w0, LBB0_5
; %bb.17:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_18:
	mov	x22, #0
	b	LBB0_26
LBB0_19:
	str	x10, [sp, #-16]!
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_25
LBB0_20:
	str	x27, [sp, #-16]!
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	b	LBB0_25
LBB0_21:
	mov	x8, #0
	ldr	x9, [x22, #8]
	sdiv	x9, x9, x27
	mul	x1, x9, x27
	stp	x1, xzr, [x23, #8]
LBB0_22:
	str	x8, [sp, #-16]!
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	sub	x1, x29, #96
	mov	x0, x19
	bl	_get_resource_sizes
	ldur	x1, [x29, #-96]
	sdiv	x8, x1, x27
	mul	x25, x8, x27
	str	x25, [sp, #-16]!
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	ldr	x8, [x23, #16]
	cmp	x25, x8
	b.ne	LBB0_31
; %bb.23:
	mov	x27, x25
LBB0_24:
	ldr	x1, [x22]
	ldr	x8, [x23, #8]
	add	x24, x8, w1, sxtw
	str	x8, [sp, #-16]!
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	ldrsw	x3, [x23, #4]
	sub	x2, x29, #96
	mov	x0, x19
	mov	x1, x24
	bl	_write_resources
	mov	x25, x0
	ldur	x8, [x29, #-96]
	add	x0, x24, x8, lsl #2
	sub	x1, x27, x8
	bl	_res_write_padding
	ldp	x1, x8, [x23, #8]
	str	x8, [sp, #-16]!
Lloh42:
	adrp	x0, l_.str.10@PAGE
Lloh43:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
LBB0_25:
	add	sp, sp, #16
LBB0_26:
	mov	x0, x21
	bl	_destroy_mapping
	mov	x0, x22
	bl	_destroy_mapping
	cbz	w25, LBB0_28
; %bb.27:
	ldr	x1, [x19]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_CopyFileW
	mov	x25, x0
LBB0_28:
	mov	x0, x20
	bl	_DeleteFileW
LBB0_29:
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_58
; %bb.30:
	mov	x0, x25
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	ldr	x1, [x22, #8]
	ldur	x11, [x29, #-96]
	sdiv	x9, x8, x27
	msub	w9, w9, w27, w25
	ldr	x10, [x23, #24]
	stur	x10, [x29, #-160]               ; 8-byte Folded Spill
	ldr	x10, [x23, #8]
	add	x8, x10, x8
	stp	x8, x11, [x29, #-152]           ; 16-byte Folded Spill
	cmp	x8, x1
	cset	w8, lt
	add	x10, x10, x25
	sxtw	x9, w9
	stur	x9, [x29, #-128]                ; 8-byte Folded Spill
	add	x9, x9, x1
	csel	x27, x9, x10, lt
	cmp	x27, x1
	cset	w9, lt
	mov	x26, x25
	and	w25, w8, w9
	str	x27, [sp, #-16]!
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	stur	x1, [x29, #-136]                ; 8-byte Folded Spill
	bl	_TRACE
	add	sp, sp, #16
	stur	w25, [x29, #-164]               ; 4-byte Folded Spill
	tbz	w25, #0, LBB0_33
; %bb.32:
	stur	x27, [x29, #-120]               ; 8-byte Folded Spill
	mov	x25, x26
	b	LBB0_36
LBB0_33:
	stur	x26, [x29, #-176]               ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x27
	bl	_resize_mapping
	mov	x25, x0
	ldr	x0, [x22]
	mov	x1, x27
	bl	_get_nt_header
	cbz	x0, LBB0_57
; %bb.34:
	mov	x24, x0
	ldr	x0, [x22]
	stur	x27, [x29, #-120]               ; 8-byte Folded Spill
	mov	x1, x27
	bl	_get_resource_section
	cbz	x0, LBB0_26
; %bb.35:
	mov	x23, x0
	ldur	x25, [x29, #-176]               ; 8-byte Folded Reload
LBB0_36:
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	sdiv	x8, x8, x11
	mul	x9, x8, x11
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	sdiv	x8, x10, x11
	msub	x8, x8, x11, x10
	sub	x8, x8, x10
	add	x26, x8, x9
	ldp	x11, x27, [x29, #-136]          ; 16-byte Folded Reload
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	cmp	x8, x11
	b.ge	LBB0_46
; %bb.37:
	stp	x9, xzr, [x29, #-112]           ; 8-byte Folded Spill
	ldp	x8, x9, [x23, #8]
	ldr	x10, [x22]
	add	x8, x9, x8
	add	x1, x10, x8
	add	x0, x1, x27
	sub	x2, x11, x8
	bl	_memmove
	ldr	x0, [x22]
	sub	x2, x29, #104
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_get_section_header
	ldur	x10, [x29, #-104]
	cmp	x10, #1
	b.lt	LBB0_42
; %bb.38:
	mov	x8, #0
	add	x9, x0, #8
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	add	x8, x8, #1
	add	x9, x9, #40
	cmp	x8, x10
	b.ge	LBB0_42
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x12, [x23, #8]
	cmp	x11, x12
	b.le	LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	add	x10, x11, x27
	str	x10, [x9]
	ldur	w10, [x9, #-4]
	add	w10, w10, w26
	stur	w10, [x9, #-4]
	ldur	x10, [x29, #-104]
	b	LBB0_39
LBB0_42:
	ldur	w8, [x29, #-164]                ; 4-byte Folded Reload
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cbz	w8, LBB0_46
; %bb.43:
	mov	x27, x25
	mov	x0, x22
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	mov	x1, x23
	bl	_resize_mapping
	mov	x25, x0
	ldr	x0, [x22]
	mov	x1, x23
	bl	_get_nt_header
	cbz	x0, LBB0_57
; %bb.44:
	mov	x24, x0
	ldr	x0, [x22]
	mov	x1, x23
	bl	_get_resource_section
	cbz	x0, LBB0_26
; %bb.45:
	mov	x23, x0
	mov	x25, x27
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
LBB0_46:
	mov	x27, x25
	stp	x25, x9, [x23, #16]
	ldr	x8, [x24]
Lloh49:
	adrp	x9, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGE
Lloh50:
	ldr	x9, [x9, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	sxtw	x25, w26
	cmp	x8, x9
	b.ne	LBB0_52
; %bb.47:
	ldr	x8, [x24, #16]
	add	x8, x8, x25
	str	x8, [x24, #16]
	ldr	w8, [x23, #4]
	ldr	x9, [x24, #32]
Lloh52:
	adrp	x10, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGE
Lloh53:
	ldr	x10, [x10, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #4
	str	w8, [x9]
	ldur	x8, [x29, #-96]
	str	x8, [x9, #8]
	ldr	x0, [x22]
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_get_init_data_size
	str	x0, [x24, #40]
	ldr	x8, [x24, #24]
	cmp	x8, #1
	b.lt	LBB0_24
; %bb.48:
	ldr	x9, [x24, #32]
	ldr	w10, [x23, #4]
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_24
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, w10
	b.le	LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	add	w11, w11, w26
	str	w11, [x9]
	b	LBB0_49
LBB0_52:
	ldr	x8, [x24, #24]
	add	x8, x8, x25
	str	x8, [x24, #24]
	ldrsw	x8, [x23, #4]
	ldr	x9, [x24, #40]
Lloh55:
	adrp	x10, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGEOFF]
	ldr	x11, [x10]
	lsl	x11, x11, #4
	str	x8, [x9, x11]
	ldur	x8, [x29, #-96]
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #4
	str	x8, [x9, #8]
	ldr	x0, [x22]
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_get_init_data_size
	str	x0, [x24, #48]
	ldr	x8, [x24, #32]
	cmp	x8, #1
	b.lt	LBB0_24
; %bb.53:
	ldr	x9, [x24, #40]
	ldrsw	x10, [x23, #4]
	b	LBB0_55
LBB0_54:                                ;   in Loop: Header=BB0_55 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_24
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.le	LBB0_54
; %bb.56:                               ;   in Loop: Header=BB0_55 Depth=1
	add	x11, x11, x25
	str	x11, [x9]
	b	LBB0_54
LBB0_57:
Lloh57:
	adrp	x0, l_.str.8@PAGE
Lloh58:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_ERR
	b	LBB0_26
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_write_raw_resources.prefix:            ; @write_raw_resources.prefix
	.asciz	"resu"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tempfile %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to read existing resources\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ; @IMAGE_NT_OPTIONAL_HDR64_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"invalid section alignment %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid file alignment %08x\n"

l_.str.4:                               ; @.str.4
	.asciz	".rsrc"

	.comm	_IMAGE_SCN_CNT_INITIALIZED_DATA,4,2 ; @IMAGE_SCN_CNT_INITIALIZED_DATA
	.comm	_IMAGE_SCN_MEM_READ,4,2         ; @IMAGE_SCN_MEM_READ
l_.str.5:                               ; @.str.5
	.asciz	"before .rsrc at %08x, size %08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"requires %08x (%08x) bytes\n"

l_.str.7:                               ; @.str.7
	.asciz	"file size %08x -> %08x\n"

l_.str.8:                               ; @.str.8
	.asciz	"couldn't get NT header\n"

	.comm	_IMAGE_DIRECTORY_ENTRY_RESOURCE,8,3 ; @IMAGE_DIRECTORY_ENTRY_RESOURCE
l_.str.9:                               ; @.str.9
	.asciz	"base = %p offset = %08x\n"

l_.str.10:                              ; @.str.10
	.asciz	"after  .rsrc at %08x, size %08x\n"

	.no_dead_strip	_write_raw_resources
.subsections_via_symbols
