	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_gdi_init
_gfx_ctx_gdi_init:                      ## @gfx_ctx_gdi_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	movl	$1, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_g_win32_inited@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_win32_window_reset
	xorl	%eax, %eax
	callq	_win32_monitor_init
	movq	_WndProcGDI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	leaq	-16(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_win32_window_init
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_win32_inited,8,3             ## @g_win32_inited
	.comm	_WndProcGDI,4,2                 ## @WndProcGDI
	.no_dead_strip	_gfx_ctx_gdi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_gdi_init
_gfx_ctx_gdi_init:                      ; @gfx_ctx_gdi_init
	.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
	str	xzr, [sp, #8]
	mov	w0, #1
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _g_win32_inited@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_win32_inited@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_win32_window_reset
	bl	_win32_monitor_init
Lloh3:
	adrp	x8, _WndProcGDI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WndProcGDI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, #0
	bl	_win32_window_init
	cbnz	w0, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_win32_inited,8,3             ; @g_win32_inited
	.comm	_WndProcGDI,4,2                 ; @WndProcGDI
	.no_dead_strip	_gfx_ctx_gdi_init
.subsections_via_symbols
