	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function win32perror
_win32perror:                           ## @win32perror
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %r15d
	movq	_LANG_NEUTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUBLANG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAKELANGID
	leaq	-28(%rbp), %r8
	movq	$0, (%rsp)
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	callq	_FormatMessage
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	-28(%rbp), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	__ftprintf
	movl	(%r15), %edi
	callq	_fflush
	movl	-28(%rbp), %edi
	callq	_LocalFree
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	__ftprintf
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ## @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ## @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_LANG_NEUTRAL,4,2               ## @LANG_NEUTRAL
	.comm	_SUBLANG_DEFAULT,4,2            ## @SUBLANG_DEFAULT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: unknown Windows error\n"

	.no_dead_strip	_win32perror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function win32perror
_win32perror:                           ; @win32perror
	.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	x19, x0
Lloh0:
	adrp	x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	bl	_GetLastError
	mov	x21, x0
Lloh6:
	adrp	x8, _LANG_NEUTRAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LANG_NEUTRAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SUBLANG_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUBLANG_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_MAKELANGID
	mov	x3, x0
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, #0
	mov	x2, x21
	mov	w5, #0
	mov	x6, #0
	bl	_FormatMessage
Lloh12:
	adrp	x21, _stderr@GOTPAGE
Lloh13:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w20, [x21]
	cbz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w8, [sp, #12]
	str	x8, [sp]
	mov	x0, x20
	mov	x2, x19
	bl	__ftprintf
	ldr	w0, [x21]
	bl	_fflush
	ldr	w0, [sp, #12]
	bl	_LocalFree
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	__ftprintf
LBB0_3:
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ; @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ; @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_LANG_NEUTRAL,4,2               ; @LANG_NEUTRAL
	.comm	_SUBLANG_DEFAULT,4,2            ; @SUBLANG_DEFAULT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: unknown Windows error\n"

	.no_dead_strip	_win32perror
.subsections_via_symbols
