	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_error
_output_error:                          ## @output_error
	.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
	movl	%edi, %r14d
	movq	_NO_ERROR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_SetLastError
	movq	_FORMAT_MESSAGE_FROM_SYSTEM@GOTPCREL(%rip), %rax
	movq	_FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	$0, (%rsp)
	leaq	-32(%rbp), %r8
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_FormatMessageW
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_GetLastError
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_3:
	movq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_output_writeconsole
	movq	-32(%rbp), %rdi
	callq	_LocalFree
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_WINE_FIXME
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_ERROR,8,3                   ## @NO_ERROR
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ## @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ## @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not format error code: le=%u, error=%u"

	.no_dead_strip	_output_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_error
_output_error:                          ; @output_error
	.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	x21, _NO_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NO_ERROR@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_SetLastError
Lloh2:
	adrp	x8, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FORMAT_MESSAGE_FROM_SYSTEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FORMAT_MESSAGE_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	add	x4, sp, #8
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_FormatMessageW
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_GetLastError
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_output_writeconsole
	ldr	x0, [sp, #8]
	bl	_LocalFree
	b	LBB0_4
LBB0_3:
	bl	_GetLastError
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WINE_FIXME
LBB0_4:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_ERROR,8,3                   ; @NO_ERROR
	.comm	_FORMAT_MESSAGE_FROM_SYSTEM,4,2 ; @FORMAT_MESSAGE_FROM_SYSTEM
	.comm	_FORMAT_MESSAGE_ALLOCATE_BUFFER,4,2 ; @FORMAT_MESSAGE_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not format error code: le=%u, error=%u"

	.no_dead_strip	_output_error
.subsections_via_symbols
