	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_joypad_button
_android_joypad_button:                 ## @android_joypad_button
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_android_keyboard_state_get
	movq	%rax, %r12
	movq	_g_android@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	callq	_GET_HAT_DIR
	movl	%eax, %r15d
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jbe	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.2:
	movl	%ebx, %edi
	callq	_GET_HAT
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_4
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpl	$-1, 4(%rax)
	sete	%al
	jmp	LBB0_5
LBB0_6:
	movq	_LAST_KEYCODE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_4
## %bb.7:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_BIT_GET
	testq	%rax, %rax
	setne	%al
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpl	$1, (%rax)
	sete	%al
	jmp	LBB0_5
LBB0_14:
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpl	$-1, (%rax)
	sete	%al
	jmp	LBB0_5
LBB0_15:
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpl	$1, 4(%rax)
	sete	%al
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_g_android,8,3                  ## @g_android
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_LAST_KEYCODE,4,2               ## @LAST_KEYCODE
	.no_dead_strip	_android_joypad_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_joypad_button
_android_joypad_button:                 ; @android_joypad_button
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_android_keyboard_state_get
	mov	x21, x0
Lloh0:
	adrp	x8, _g_android@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_android@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_GET_HAT_DIR
Lloh3:
	adrp	x8, _DEFAULT_MAX_PADS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_8
; %bb.1:
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_GET_HAT
	cbnz	w0, LBB0_8
; %bb.3:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.4:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	x8, [x23]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8, #4]
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x8, _LAST_KEYCODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LAST_KEYCODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_BIT_GET
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x23]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8]
	b	LBB0_14
LBB0_11:
	ldr	x8, [x23]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8]
LBB0_12:
	cmn	w8, #1
	cset	w0, eq
	b	LBB0_9
LBB0_13:
	ldr	x8, [x23]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8, #4]
LBB0_14:
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
                                        ; -- End function
	.comm	_g_android,8,3                  ; @g_android
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_LAST_KEYCODE,4,2               ; @LAST_KEYCODE
	.no_dead_strip	_android_joypad_button
.subsections_via_symbols
