	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winraw_create_window
_winraw_create_window:                  ## @winraw_create_window
	.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	$72, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	$0, -16(%rbp)
	xorl	%edi, %edi
	callq	_GetModuleHandleA
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%ebx, -24(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_RegisterClassA
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_CLASS_ALREADY_EXISTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_6:
	movq	-32(%rbp), %rsi
	movq	_HWND_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsp)
	movl	%eax, 16(%rsp)
	movq	$0, 40(%rsp)
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateWindowExA
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_RARCH_ERR
	movq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_UnregisterClassA
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	callq	_RARCH_ERR
LBB0_8:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[WINRAW]: GetModuleHandleA failed with error %lu.\n"

L_.str.1:                               ## @.str.1
	.asciz	"winraw-input"

	.comm	_ERROR_CLASS_ALREADY_EXISTS,8,3 ## @ERROR_CLASS_ALREADY_EXISTS
L_.str.2:                               ## @.str.2
	.asciz	"[WINRAW]: RegisterClassA failed with error %lu.\n"

	.comm	_HWND_MESSAGE,4,2               ## @HWND_MESSAGE
L_.str.3:                               ## @.str.3
	.asciz	"[WINRAW]: CreateWindowExA failed with error %lu.\n"

	.no_dead_strip	_winraw_create_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function winraw_create_window
_winraw_create_window:                  ; @winraw_create_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #56]
	mov	x0, #0
	bl	_GetModuleHandleA
	str	w0, [sp, #52]
	cbz	w0, LBB0_5
; %bb.1:
	str	w19, [sp, #48]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #40]
	add	x0, sp, #40
	bl	_RegisterClassA
	cbnz	w0, LBB0_3
; %bb.2:
	bl	_GetLastError
Lloh2:
	adrp	x8, _ERROR_CLASS_ALREADY_EXISTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR_CLASS_ALREADY_EXISTS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_3:
	ldr	x1, [sp, #40]
Lloh5:
	adrp	x8, _HWND_MESSAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HWND_MESSAGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	str	w8, [sp]
	mov	w0, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_CreateWindowExA
	cbnz	x0, LBB0_9
; %bb.4:
	bl	_GetLastError
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_ERR
	ldr	x0, [sp, #40]
	mov	x1, #0
	bl	_UnregisterClassA
	b	LBB0_8
LBB0_5:
	bl	_GetLastError
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	bl	_GetLastError
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_RARCH_ERR
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[WINRAW]: GetModuleHandleA failed with error %lu.\n"

l_.str.1:                               ; @.str.1
	.asciz	"winraw-input"

	.comm	_ERROR_CLASS_ALREADY_EXISTS,8,3 ; @ERROR_CLASS_ALREADY_EXISTS
l_.str.2:                               ; @.str.2
	.asciz	"[WINRAW]: RegisterClassA failed with error %lu.\n"

	.comm	_HWND_MESSAGE,4,2               ; @HWND_MESSAGE
l_.str.3:                               ; @.str.3
	.asciz	"[WINRAW]: CreateWindowExA failed with error %lu.\n"

	.no_dead_strip	_winraw_create_window
.subsections_via_symbols
