	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BatchFile2Mem                  ## -- Begin function BatchFile2Mem
	.p2align	4, 0x90
_BatchFile2Mem:                         ## @BatchFile2Mem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_GetFileSize
                                        ## kill: def $eax killed $eax def $rax
	movq	_bc@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	leal	1(%rax), %edi
	callq	_cmd_alloc
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	movl	8(%rcx), %esi
	movl	%ebx, %edi
	xorl	%r8d, %r8d
	callq	_ReadFile
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movb	$0, (%rcx,%rax)
	movq	(%r14), %rcx
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	$0, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	$0, 16(%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BatchFile2Mem ()\n"

	.comm	_bc,8,3                         ## @bc
L_.str.1:                               ## @.str.1
	.asciz	"BatchFile2Mem memory %08x - %08x\n"

	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BatchFile2Mem                  ; -- Begin function BatchFile2Mem
	.p2align	2
_BatchFile2Mem:                         ; @BatchFile2Mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	x1, #0
	bl	_GetFileSize
Lloh2:
	adrp	x20, _bc@GOTPAGE
Lloh3:
	ldr	x20, [x20, _bc@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w0, [x8]
	add	w0, w0, #1
	bl	_cmd_alloc
	ldr	x8, [x20]
	str	x0, [x8, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	stp	x0, x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh6:
	adrp	x8, _FILE_BEGIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILE_BEGIN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_SetFilePointer
	ldr	x3, [x20]
	ldr	w1, [x3, #8]
	ldr	w2, [x3]
	mov	x0, x19
	mov	x4, #0
	bl	_ReadFile
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	strb	wzr, [x9, x8]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _TRUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	wzr, [x8]
Lloh11:
	adrp	x9, _FALSE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	str	w9, [x8, #24]
	str	xzr, [x8, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BatchFile2Mem ()\n"

	.comm	_bc,8,3                         ; @bc
l_.str.1:                               ; @.str.1
	.asciz	"BatchFile2Mem memory %08x - %08x\n"

	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
