	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_key_config
_draw_key_config:                       ## @draw_key_config
	.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	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_menu_draw_begin
	testl	%r13d, %r13d
	js	LBB0_2
## %bb.1:
	leal	1(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$160, %ebx
	movl	$160, %edi
	movl	$16, %esi
	xorl	%eax, %eax
	callq	_text_out16
	movl	$66, %edx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movl	$160, %edi
	movl	$16, %esi
	xorl	%eax, %eax
	callq	_text_out16
	movl	$120, %ebx
	movl	$130, %edx
LBB0_3:
	movq	%rbx, %r12
	leal	-16(%rbx), %edi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leal	(%r14,%r14,4), %eax
	leal	(%rax,%rax), %esi
	addl	$36, %esi
	callq	_menu_draw_selection
	testl	%r15d, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.5:
	movl	%r15d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$36, %r14d
	movq	%r13, %r15
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13,8), %esi
	movl	4(%rbx,%r13,8), %r12d
	movl	%r15d, %edi
	callq	_action_binds
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_text_out16
	incq	%r13
	addl	$10, %r14d
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	$36, %r14d
LBB0_7:
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_text_out16
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rdx
	movl	$110, %edi
	movl	$220, %esi
	xorl	%eax, %eax
	callq	_text_out16
	leaq	L_.str.7(%rip), %r14
	leaq	L_.str.6(%rip), %rbx
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.10(%rip), %r14
	leaq	L_.str.9(%rip), %rbx
	leaq	L_.str.8(%rip), %rdx
LBB0_10:
	movl	$110, %edi
	movl	$230, %esi
	xorl	%eax, %eax
	callq	_text_out16
	movl	$110, %edi
	movl	$240, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_text_out16
	movl	$110, %edi
	movl	$250, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_text_out16
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Player %i controls"

L_.str.1:                               ## @.str.1
	.asciz	"Emulator controls"

L_.str.2:                               ## @.str.2
	.asciz	"%s : %s"

L_.str.3:                               ## @.str.3
	.asciz	"Done"

L_.str.4:                               ## @.str.4
	.asciz	"Press a button to bind/unbind"

L_.str.5:                               ## @.str.5
	.asciz	"Use SELECT to clear"

L_.str.6:                               ## @.str.6
	.asciz	"To bind UP/DOWN, hold SELECT"

L_.str.7:                               ## @.str.7
	.asciz	"Select \"Done\" to exit"

L_.str.8:                               ## @.str.8
	.asciz	"Use Options -> Save cfg"

L_.str.9:                               ## @.str.9
	.asciz	"to save controls"

L_.str.10:                              ## @.str.10
	.asciz	"Press X or O to exit"

	.no_dead_strip	_draw_key_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_key_config
_draw_key_config:                       ; @draw_key_config
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	bl	_menu_draw_begin
	tbnz	w21, #31, LBB0_2
; %bb.1:
	add	w8, w21, #1
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w22, #160
	mov	w0, #160
	mov	w1, #16
	bl	_text_out16
	mov	w2, #66
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #160
	mov	w1, #16
	bl	_text_out16
	mov	w22, #120
	mov	w2, #130
LBB0_3:
	sub	w0, w22, #16
	mov	w24, #10
	mul	w8, w19, w24
	add	w1, w8, #36
	bl	_menu_draw_selection
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
	add	x26, x23, #4
	umull	x27, w20, w24
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w25, #36
	ldp	w1, w28, [x26, #-4]
	mov	x0, x21
	bl	_action_binds
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_text_out16
	add	x26, x26, #8
	add	x25, x25, #10
	cmp	x27, x25
	b.ne	LBB0_5
; %bb.6:
	add	w1, w25, #36
	b	LBB0_8
LBB0_7:
	mov	w1, #36
LBB0_8:
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_text_out16
	cmp	w19, w20
	b.ge	LBB0_10
; %bb.9:
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #110
	mov	w1, #220
	bl	_text_out16
Lloh10:
	adrp	x19, l_.str.7@PAGE
Lloh11:
	add	x19, x19, l_.str.7@PAGEOFF
Lloh12:
	adrp	x20, l_.str.6@PAGE
Lloh13:
	add	x20, x20, l_.str.6@PAGEOFF
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x19, l_.str.10@PAGE
Lloh17:
	add	x19, x19, l_.str.10@PAGEOFF
Lloh18:
	adrp	x20, l_.str.9@PAGE
Lloh19:
	add	x20, x20, l_.str.9@PAGEOFF
Lloh20:
	adrp	x2, l_.str.8@PAGE
Lloh21:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_11:
	mov	w0, #110
	mov	w1, #230
	bl	_text_out16
	mov	w0, #110
	mov	w1, #240
	mov	x2, x20
	bl	_text_out16
	mov	w0, #110
	mov	w1, #250
	mov	x2, x19
	bl	_text_out16
	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
	b	_menu_draw_end
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Player %i controls"

l_.str.1:                               ; @.str.1
	.asciz	"Emulator controls"

l_.str.2:                               ; @.str.2
	.asciz	"%s : %s"

l_.str.3:                               ; @.str.3
	.asciz	"Done"

l_.str.4:                               ; @.str.4
	.asciz	"Press a button to bind/unbind"

l_.str.5:                               ; @.str.5
	.asciz	"Use SELECT to clear"

l_.str.6:                               ; @.str.6
	.asciz	"To bind UP/DOWN, hold SELECT"

l_.str.7:                               ; @.str.7
	.asciz	"Select \"Done\" to exit"

l_.str.8:                               ; @.str.8
	.asciz	"Use Options -> Save cfg"

l_.str.9:                               ; @.str.9
	.asciz	"to save controls"

l_.str.10:                              ; @.str.10
	.asciz	"Press X or O to exit"

	.no_dead_strip	_draw_key_config
.subsections_via_symbols
