	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_pe_exe
_check_pe_exe:                          ## @check_pe_exe
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$0, -36(%rbp)
	xorl	%esi, %esi
	callq	_GetFileSize
	movl	%eax, %r15d
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_MapViewOfFile
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_get_nt_header
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rcx
	movq	_IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	movq	(%rax,%rsi,8), %rax
	movq	_IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_section_header
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movq	%r12, %rdi
	callq	_UnmapViewOfFile
LBB0_6:
	movq	%rbx, %rdi
	callq	_CloseHandle
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ## @IMAGE_NT_OPTIONAL_HDR64_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resources: %08x %08x\n"

	.comm	_IMAGE_DIRECTORY_ENTRY_RESOURCE,8,3 ## @IMAGE_DIRECTORY_ENTRY_RESOURCE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_check_pe_exe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_pe_exe
_check_pe_exe:                          ; @check_pe_exe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	str	wzr, [sp, #12]
	mov	x1, #0
	bl	_GetFileSize
	mov	x21, x0
Lloh3:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_MapViewOfFile
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	x1, x21
	bl	_get_nt_header
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMAGE_NT_OPTIONAL_HDR64_MAGIC@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, ne
	ldr	x8, [x0, w8, uxtw #3]
Lloh12:
	adrp	x9, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IMAGE_DIRECTORY_ENTRY_RESOURCE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldp	w2, w1, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_get_section_header
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_4:
	mov	x0, x22
	bl	_UnmapViewOfFile
LBB0_5:
	mov	x0, x20
	bl	_CloseHandle
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ; @IMAGE_NT_OPTIONAL_HDR64_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resources: %08x %08x\n"

	.comm	_IMAGE_DIRECTORY_ENTRY_RESOURCE,8,3 ; @IMAGE_DIRECTORY_ENTRY_RESOURCE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_check_pe_exe
.subsections_via_symbols
