	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdi_gfx_create
_gdi_gfx_create:                        ## @gdi_gfx_create
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	xorl	%eax, %eax
	callq	_frontend_get_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movq	_gdi_win_major@GOTPCREL(%rip), %r15
	movq	_gdi_win_minor@GOTPCREL(%rip), %r14
	leaq	-96(%rbp), %rdi
	movl	$64, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	*%rbx
	cmpl	$4, (%r15)
	jl	LBB0_7
## %bb.5:
	jne	LBB0_8
## %bb.6:
	cmpl	$10, (%r14)
	jg	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	movq	_gdi_lte_win98@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.3:
	leaq	L_.str(%rip), %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GDI] No frontend driver found.\n"

	.comm	_gdi_win_major,4,2              ## @gdi_win_major
	.comm	_gdi_win_minor,4,2              ## @gdi_win_minor
L_.str.1:                               ## @.str.1
	.asciz	"[GDI] Win98 or lower detected, using slow frame conversion method for RGB444.\n"

	.comm	_gdi_lte_win98,4,2              ## @gdi_lte_win98
	.no_dead_strip	_gdi_gfx_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdi_gfx_create
_gdi_gfx_create:                        ; @gdi_gfx_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	bl	_frontend_get_ptr
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
Lloh3:
	adrp	x20, _gdi_win_major@GOTPAGE
Lloh4:
	ldr	x20, [x20, _gdi_win_major@GOTPAGEOFF]
Lloh5:
	adrp	x19, _gdi_win_minor@GOTPAGE
Lloh6:
	ldr	x19, [x19, _gdi_win_minor@GOTPAGEOFF]
	mov	x0, sp
	mov	w1, #64
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x19]
	ccmp	w8, #10, #0, eq
	b.gt	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
Lloh9:
	adrp	x8, _gdi_lte_win98@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gdi_lte_win98@GOTPAGEOFF]
	mov	w9, #1
Lloh11:
	str	w9, [x8]
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_RARCH_ERR
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GDI] No frontend driver found.\n"

	.comm	_gdi_win_major,4,2              ; @gdi_win_major
	.comm	_gdi_win_minor,4,2              ; @gdi_win_minor
l_.str.1:                               ; @.str.1
	.asciz	"[GDI] Win98 or lower detected, using slow frame conversion method for RGB444.\n"

	.comm	_gdi_lte_win98,4,2              ; @gdi_lte_win98
	.no_dead_strip	_gdi_gfx_create
.subsections_via_symbols
