	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_input_key_bind_poll_bind_state_internal
_menu_input_key_bind_poll_bind_state_internal: ## @menu_input_key_bind_poll_bind_state_internal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	*%rcx
LBB0_3:
	movq	_MENU_MAX_BUTTONS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_input_joypad_button_raw
	movq	(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	_MENU_MAX_AXES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_input_joypad_axis_raw
	movq	(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	movq	_MENU_MAX_HATS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.10:
	xorl	%ebx, %ebx
	movq	_HAT_UP_MASK@GOTPCREL(%rip), %r14
	movq	_HAT_LEFT_MASK@GOTPCREL(%rip), %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	_MENU_MAX_HATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_input_joypad_hat_raw
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, (%rcx,%rbx,4)
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_HAT_DOWN_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_input_joypad_hat_raw
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r13), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, (%rcx,%rbx,4)
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %r13
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_input_joypad_hat_raw
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r13), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, (%rcx,%rbx,4)
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_HAT_RIGHT_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_input_joypad_hat_raw
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_19
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_MAX_BUTTONS,4,2           ## @MENU_MAX_BUTTONS
	.comm	_MENU_MAX_AXES,4,2              ## @MENU_MAX_AXES
	.comm	_MENU_MAX_HATS,4,2              ## @MENU_MAX_HATS
	.comm	_HAT_UP_MASK,4,2                ## @HAT_UP_MASK
	.comm	_HAT_DOWN_MASK,4,2              ## @HAT_DOWN_MASK
	.comm	_HAT_LEFT_MASK,4,2              ## @HAT_LEFT_MASK
	.comm	_HAT_RIGHT_MASK,4,2             ## @HAT_RIGHT_MASK
	.no_dead_strip	_menu_input_key_bind_poll_bind_state_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_input_key_bind_poll_bind_state_internal
_menu_input_key_bind_poll_bind_state_internal: ; @menu_input_key_bind_poll_bind_state_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	blr	x8
LBB0_3:
Lloh0:
	adrp	x23, _MENU_MAX_BUTTONS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MENU_MAX_BUTTONS@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x22, #0
	mov	w24, w19
	mov	w25, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_input_joypad_button_raw
	ldr	x8, [x20]
	madd	x8, x24, x25, x8
	ldr	x8, [x8, #16]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldr	w8, [x23]
	cmp	x22, x8
	b.lo	LBB0_5
LBB0_6:
Lloh2:
	adrp	x23, _MENU_MAX_AXES@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MENU_MAX_AXES@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x22, #0
	mov	w24, w19
	mov	w25, #24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_input_joypad_axis_raw
	ldr	x8, [x20]
	madd	x8, x24, x25, x8
	ldr	x8, [x8, #8]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldr	w8, [x23]
	cmp	x22, x8
	b.lo	LBB0_8
LBB0_9:
Lloh4:
	adrp	x8, _MENU_MAX_HATS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MENU_MAX_HATS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_20
; %bb.10:
	mov	x22, #0
	mov	w24, w19
Lloh7:
	adrp	x26, _HAT_UP_MASK@GOTPAGE
Lloh8:
	ldr	x26, [x26, _HAT_UP_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x28, _HAT_LEFT_MASK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _HAT_LEFT_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x23, _HAT_RIGHT_MASK@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HAT_RIGHT_MASK@GOTPAGEOFF]
	mov	w8, #24
	mul	x8, x24, x8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh13:
	adrp	x27, _HAT_DOWN_MASK@GOTPAGE
Lloh14:
	ldr	x27, [x27, _HAT_DOWN_MASK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
Lloh15:
	adrp	x8, _MENU_MAX_HATS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MENU_MAX_HATS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x22, x8
	b.hs	LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_input_joypad_hat_raw
	lsl	x25, x22, #2
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x8, [x8, x9]
	ldr	w9, [x26]
	ldr	w10, [x8, x25]
	orr	w9, w10, w9
	str	w9, [x8, x25]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_input_joypad_hat_raw
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x8, [x8, x9]
	ldr	w9, [x27]
	ldr	w10, [x8, x25]
	orr	w9, w10, w9
	str	w9, [x8, x25]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_input_joypad_hat_raw
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x8, [x8, x9]
	ldr	w9, [x28]
	ldr	w10, [x8, x25]
	orr	w9, w10, w9
	str	w9, [x8, x25]
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_input_joypad_hat_raw
	cbz	x0, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, x9]
	ldr	w9, [x23]
	ldr	w10, [x8, x25]
	orr	w9, w10, w9
	str	w9, [x8, x25]
	b	LBB0_11
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_MAX_BUTTONS,4,2           ; @MENU_MAX_BUTTONS
	.comm	_MENU_MAX_AXES,4,2              ; @MENU_MAX_AXES
	.comm	_MENU_MAX_HATS,4,2              ; @MENU_MAX_HATS
	.comm	_HAT_UP_MASK,4,2                ; @HAT_UP_MASK
	.comm	_HAT_DOWN_MASK,4,2              ; @HAT_DOWN_MASK
	.comm	_HAT_LEFT_MASK,4,2              ; @HAT_LEFT_MASK
	.comm	_HAT_RIGHT_MASK,4,2             ; @HAT_RIGHT_MASK
	.no_dead_strip	_menu_input_key_bind_poll_bind_state_internal
.subsections_via_symbols
