	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FormatString                   ## -- Begin function FormatString
	.p2align	4, 0x90
_FormatString:                          ## @FormatString
	.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	$4032, %rsp                     ## imm = 0xFC0
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-4048(%rbp), %rax
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_LoadStringW
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_FORMAT_MESSAGE_FROM_STRING@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	16(%rbp), %rax
	movq	_FORMAT_MESSAGE_FROM_HMODULE@GOTPCREL(%rip), %rcx
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%ebx, %edi
	movq	%rax, (%rsp)
	leaq	-4048(%rbp), %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_FormatMessageW
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$4032, %rsp                     ## imm = 0xFC0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_MESSAGE_FROM_STRING,4,2 ## @FORMAT_MESSAGE_FROM_STRING
	.comm	_FORMAT_MESSAGE_FROM_HMODULE,4,2 ## @FORMAT_MESSAGE_FROM_HMODULE
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ## @FORMAT_MESSAGE_FROM_SYSTEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FormatString                   ; -- Begin function FormatString
	.p2align	2
_FormatString:                          ; @FormatString
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #4016
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x8, x2
	mov	x23, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x8
	mov	w3, #1000
	bl	_LoadStringW
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FORMAT_MESSAGE_FROM_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FORMAT_MESSAGE_FROM_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh6:
	adrp	x9, _FORMAT_MESSAGE_FROM_HMODULE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FORMAT_MESSAGE_FROM_HMODULE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w0, w8, w9
	add	x1, sp, #8
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_FormatMessageW
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #4016
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_MESSAGE_FROM_STRING,4,2 ; @FORMAT_MESSAGE_FROM_STRING
	.comm	_FORMAT_MESSAGE_FROM_HMODULE,4,2 ; @FORMAT_MESSAGE_FROM_HMODULE
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ; @FORMAT_MESSAGE_FROM_SYSTEM
.subsections_via_symbols
