	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_gp2x_init                   ## -- Begin function in_gp2x_init
	.p2align	4, 0x90
_in_gp2x_init:                          ## @in_gp2x_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rsi
	movq	_gp2x_dev_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GP2X_DEV_WIZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_in_gp2x_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GP2X_BTN_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rdx, (%rax,%rcx,8)
LBB0_2:
	movq	_in_gp2x_combo_acts@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_in_gp2x_combo_keys@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_in_gp2x_drv@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_in_register_driver             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gp2x_dev_id,8,3                ## @gp2x_dev_id
	.comm	_GP2X_DEV_WIZ,8,3               ## @GP2X_DEV_WIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MENU"

	.comm	_in_gp2x_keys,8,3               ## @in_gp2x_keys
	.comm	_GP2X_BTN_START,8,3             ## @GP2X_BTN_START
	.comm	_in_gp2x_combo_acts,8,3         ## @in_gp2x_combo_acts
	.comm	_in_gp2x_combo_keys,8,3         ## @in_gp2x_combo_keys
	.comm	_in_gp2x_drv,4,2                ## @in_gp2x_drv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_gp2x_init                   ; -- Begin function in_gp2x_init
	.p2align	2
_in_gp2x_init:                          ; @in_gp2x_init
	.cfi_startproc
; %bb.0:
	mov	x1, x0
Lloh0:
	adrp	x8, _gp2x_dev_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gp2x_dev_id@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GP2X_DEV_WIZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GP2X_DEV_WIZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _in_gp2x_keys@GOTPAGE
Lloh7:
	ldr	x8, [x8, _in_gp2x_keys@GOTPAGEOFF]
Lloh8:
	adrp	x9, _GP2X_BTN_START@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GP2X_BTN_START@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, l_.str@PAGE
Lloh13:
	add	x10, x10, l_.str@PAGEOFF
	str	x10, [x8, x9, lsl #3]
LBB0_2:
Lloh14:
	adrp	x8, _in_gp2x_combo_acts@GOTPAGE
Lloh15:
	ldr	x8, [x8, _in_gp2x_combo_acts@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _in_gp2x_combo_keys@GOTPAGE
Lloh18:
	ldr	x8, [x8, _in_gp2x_combo_keys@GOTPAGEOFF]
Lloh19:
	str	xzr, [x8]
Lloh20:
	adrp	x0, _in_gp2x_drv@GOTPAGE
Lloh21:
	ldr	x0, [x0, _in_gp2x_drv@GOTPAGEOFF]
	mov	x2, #0
	b	_in_register_driver
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_gp2x_dev_id,8,3                ; @gp2x_dev_id
	.comm	_GP2X_DEV_WIZ,8,3               ; @GP2X_DEV_WIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MENU"

	.comm	_in_gp2x_keys,8,3               ; @in_gp2x_keys
	.comm	_GP2X_BTN_START,8,3             ; @GP2X_BTN_START
	.comm	_in_gp2x_combo_acts,8,3         ; @in_gp2x_combo_acts
	.comm	_in_gp2x_combo_keys,8,3         ; @in_gp2x_combo_keys
	.comm	_in_gp2x_drv,4,2                ; @in_gp2x_drv
.subsections_via_symbols
