	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_get_gbtype                  ## -- Begin function gb_get_gbtype
	.p2align	4, 0x90
_gb_get_gbtype:                         ## @gb_get_gbtype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GB_SGB@GOTPCREL(%rip), %rax
	movq	_GB_GBC@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpq	%rsi, (%rax)
	leaq	L_.str(%rip), %rsi
	cmovneq	%rdx, %rsi
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SGB,8,3                     ## @GB_SGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SuperGameboy-Rom"

	.comm	_GB_GBC,8,3                     ## @GB_GBC
L_.str.1:                               ## @.str.1
	.asciz	"GameboyColor-Rom"

L_.str.2:                               ## @.str.2
	.asciz	"Gameboy-Rom"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_get_gbtype                  ; -- Begin function gb_get_gbtype
	.p2align	2
_gb_get_gbtype:                         ; @gb_get_gbtype
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GB_SGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SGB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GB_GBC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GB_GBC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x9, x2
	csel	x9, x11, x10, eq
Lloh10:
	adrp	x10, l_.str@PAGE
Lloh11:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x1
	csel	x1, x10, x9, eq
	b	_strcpy
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SGB,8,3                     ; @GB_SGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SuperGameboy-Rom"

	.comm	_GB_GBC,8,3                     ; @GB_GBC
l_.str.1:                               ; @.str.1
	.asciz	"GameboyColor-Rom"

l_.str.2:                               ; @.str.2
	.asciz	"Gameboy-Rom"

.subsections_via_symbols
