	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShowLastWin32Error             ## -- Begin function ShowLastWin32Error
	.p2align	4, 0x90
_ShowLastWin32Error:                    ## @ShowLastWin32Error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	$0, -16(%rbp)
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPCREL(%rip), %rcx
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_FORMAT_MESSAGE_IGNORE_INSERTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_LANG_USER_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	$0, (%rsp)
	leaq	-16(%rbp), %r8
	xorl	%esi, %esi
	movq	%rax, %rdx
	xorl	%r9d, %r9d
	callq	_FormatMessageW
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	-16(%rbp), %rsi
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_MessageBoxW
	movq	-16(%rbp), %rdi
	callq	_LocalFree
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ## @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ## @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_IGNORE_INSERTS,4,2 ## @FORMAT_MESSAGE_IGNORE_INSERTS
	.comm	_LANG_USER_DEFAULT,4,2          ## @LANG_USER_DEFAULT
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONERROR,4,2               ## @MB_ICONERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShowLastWin32Error             ; -- Begin function ShowLastWin32Error
	.p2align	2
_ShowLastWin32Error:                    ; @ShowLastWin32Error
	.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
	str	xzr, [sp, #8]
	bl	_GetLastError
Lloh0:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FORMAT_MESSAGE_IGNORE_INSERTS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FORMAT_MESSAGE_IGNORE_INSERTS@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh12:
	adrp	x8, _LANG_USER_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LANG_USER_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x1, #0
	mov	w5, #0
	mov	x6, #0
	bl	_FormatMessageW
	cbz	w0, LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _MB_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
	ldr	x1, [sp, #8]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MB_ICONERROR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MB_ICONERROR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_MessageBoxW
	ldr	x0, [sp, #8]
	bl	_LocalFree
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ; @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ; @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_IGNORE_INSERTS,4,2 ; @FORMAT_MESSAGE_IGNORE_INSERTS
	.comm	_LANG_USER_DEFAULT,4,2          ; @LANG_USER_DEFAULT
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONERROR,4,2               ; @MB_ICONERROR
.subsections_via_symbols
