	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assembly_create                ## -- Begin function assembly_create
	.p2align	4, 0x90
_assembly_create:                       ## @assembly_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, (%rdi)
	movl	$24, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_strdupW
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_CreateFileW
	movq	%rax, (%r15)
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.7:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	movq	%r15, %rdi
	callq	_parse_pe_header
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	movq	%r15, %rdi
	callq	_parse_clr_metadata
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	movq	%r15, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_HRESULT_FROM_WIN32
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_assembly_release
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assembly_create                ; -- Begin function assembly_create
	.p2align	2
_assembly_create:                       ; @assembly_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	str	xzr, [x0]
	mov	w0, #24
	bl	_heap_alloc_zero
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_strdupW
	str	w0, [x19, #16]
	cbz	w0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileW
	str	x0, [x19]
Lloh12:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.3:
Lloh15:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	str	w0, [x19, #12]
	cbz	w0, LBB0_10
; %bb.4:
Lloh18:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	str	w0, [x19, #8]
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_parse_pe_header
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_parse_clr_metadata
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.7:
	str	x19, [x20]
Lloh21:
	adrp	x8, _S_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_10:
	bl	_GetLastError
	bl	_HRESULT_FROM_WIN32
	mov	x21, x0
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
LBB0_12:
	mov	x0, x19
	bl	_assembly_release
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
