	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in_gp2x_update
_in_gp2x_update:                        ## @in_gp2x_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_in_gp2x_get_bits
	movl	%eax, %ebx
	movq	_in_gp2x_combo_keys@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_GP2X_BTN_PUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_in_gp2x_combo_acts@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_in_combos_do
	movq	_IN_BINDTYPE_EMU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_IN_BINDTYPE_PLAYER12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IN_BINDTYPE_COUNT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movl	%ebx, %ecx
	sarl	%ecx
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	jbe	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testb	$1, %bl
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_IN_BIND_OFFS
	movl	(%r12,%rax,4), %eax
	orl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_gp2x_combo_keys,4,2         ## @in_gp2x_combo_keys
	.comm	_GP2X_BTN_PUSH,4,2              ## @GP2X_BTN_PUSH
	.comm	_in_gp2x_combo_acts,4,2         ## @in_gp2x_combo_acts
	.comm	_IN_BINDTYPE_EMU,8,3            ## @IN_BINDTYPE_EMU
	.comm	_IN_BINDTYPE_PLAYER12,4,2       ## @IN_BINDTYPE_PLAYER12
	.comm	_IN_BINDTYPE_COUNT,4,2          ## @IN_BINDTYPE_COUNT
	.no_dead_strip	_in_gp2x_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in_gp2x_update
_in_gp2x_update:                        ; @in_gp2x_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	bl	_in_gp2x_get_bits
	mov	x21, x0
Lloh0:
	adrp	x8, _in_gp2x_combo_keys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _in_gp2x_combo_keys@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	tst	w3, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GP2X_BTN_PUSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GP2X_BTN_PUSH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _in_gp2x_combo_acts@GOTPAGE
Lloh7:
	ldr	x8, [x8, _in_gp2x_combo_acts@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_in_combos_do
Lloh9:
	adrp	x8, _IN_BINDTYPE_EMU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IN_BINDTYPE_EMU@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
Lloh12:
	adrp	x8, _IN_BINDTYPE_PLAYER12@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IN_BINDTYPE_PLAYER12@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	cbnz	w21, LBB0_3
	b	LBB0_9
LBB0_2:
	mov	w24, #0
	cbz	w21, LBB0_9
LBB0_3:
	mov	w22, #0
	sxtw	x25, w24
Lloh15:
	adrp	x26, _IN_BINDTYPE_COUNT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _IN_BINDTYPE_COUNT@GOTPAGEOFF]
	ldr	w8, [x26]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	asr	w9, w21, #1
	cmp	w21, #1
	mov	x21, x9
	b.ls	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	tbz	w21, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, w8
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x25
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x23
	bl	_IN_BIND_OFFS
	ldr	w8, [x20, x0, lsl #2]
	lsl	x9, x23, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
	add	x23, x23, #1
	ldrsw	x8, [x26]
	cmp	x23, x8
	b.lt	LBB0_8
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_in_gp2x_combo_keys,4,2         ; @in_gp2x_combo_keys
	.comm	_GP2X_BTN_PUSH,4,2              ; @GP2X_BTN_PUSH
	.comm	_in_gp2x_combo_acts,4,2         ; @in_gp2x_combo_acts
	.comm	_IN_BINDTYPE_EMU,8,3            ; @IN_BINDTYPE_EMU
	.comm	_IN_BINDTYPE_PLAYER12,4,2       ; @IN_BINDTYPE_PLAYER12
	.comm	_IN_BINDTYPE_COUNT,4,2          ; @IN_BINDTYPE_COUNT
	.no_dead_strip	_in_gp2x_update
.subsections_via_symbols
