	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_showjoy                        ## -- Begin function showjoy
	.p2align	4, 0x90
_showjoy:                               ## @showjoy
	.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, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movq	_BACKGROUND@GOTPCREL(%rip), %r13
	movq	_MENUITEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_textattr
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_gotoxy
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_cprintf
	leal	1(%rbx), %r14d
	leal	2(%r12), %esi
	movl	%r14d, %edi
	callq	_gotoxy
	leaq	L_.str.1(%rip), %rdi
	callq	_cputs
	leal	3(%r12), %r15d
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	callq	_gotoxy
	leaq	L_.str.2(%rip), %rdi
	callq	_cputs
	leal	4(%r12), %esi
	movl	%r14d, %edi
	callq	_gotoxy
	leaq	L_.str.3(%rip), %rdi
	callq	_cputs
	movq	_MENUHEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_textattr
	leal	3(%rbx), %r13d
	movl	%r13d, %edi
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_gotoxy
	movq	_pressed@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %r14
	movq	_keysets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	-44(%rbp), %r12                 ## 4-byte Folded Reload
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	5(%rax), %r15d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_gotoxy
	movq	(%r14), %rax
	movq	_keysets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	8(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_gotoxy
	movq	(%r14), %rax
	movq	%r14, %r13
	movq	_keysets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	16(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	6(%rbx), %r14d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	_keysets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	24(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movl	%ebx, %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	_keysets@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	32(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	%rbx, %r15
	movq	(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	40(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	48(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	56(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	callq	_putch
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_gotoxy
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	64(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	shll	$5, %edi
	addl	$32, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putch                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKGROUND,8,3                 ## @BACKGROUND
	.comm	_MENUITEM,8,3                   ## @MENUITEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Keyset %i"

L_.str.1:                               ## @.str.1
	.asciz	"\\ | /"

L_.str.2:                               ## @.str.2
	.asciz	"-   -"

L_.str.3:                               ## @.str.3
	.asciz	"/ | \\"

	.comm	_MENUHEADER,8,3                 ## @MENUHEADER
	.comm	_pressed,8,3                    ## @pressed
	.comm	_keysets,8,3                    ## @keysets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_showjoy                        ; -- Begin function showjoy
	.p2align	2
_showjoy:                               ; @showjoy
	.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	x27, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _BACKGROUND@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BACKGROUND@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x9, _MENUITEM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MENUITEM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_textattr
	mov	x0, x19
	mov	x1, x20
	bl	_gotoxy
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	bl	_cprintf
	add	w21, w19, #1
	add	w1, w20, #2
	mov	x0, x21
	bl	_gotoxy
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cputs
	add	w22, w20, #3
	mov	x0, x21
	mov	x1, x22
	bl	_gotoxy
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_cputs
	add	w1, w20, #4
	mov	x0, x21
	bl	_gotoxy
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_cputs
	ldr	x8, [x24]
Lloh13:
	adrp	x9, _MENUHEADER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MENUHEADER@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_textattr
	add	w23, w19, #3
	mov	x0, x23
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	mov	x1, x22
	bl	_gotoxy
Lloh16:
	adrp	x25, _pressed@GOTPAGE
Lloh17:
	ldr	x25, [x25, _pressed@GOTPAGEOFF]
Lloh18:
	adrp	x26, _keysets@GOTPAGE
Lloh19:
	ldr	x26, [x26, _keysets@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x26]
	sbfiz	x27, x27, #3, #32
	ldr	x9, [x9, x27]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	mov	w28, #64
	mov	w21, #32
	csel	w0, w21, w28, eq
	bl	_putch
	add	w24, w20, #5
	mov	x0, x19
	mov	x1, x24
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	mov	x0, x23
	mov	x1, x24
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #16]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	add	w23, w19, #6
	mov	x0, x23
	mov	x1, x24
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #24]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	mov	x0, x19
	mov	x1, x22
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #32]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	mov	x0, x23
	mov	x1, x22
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #40]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	add	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #48]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x20
	bl	_gotoxy
	ldr	x8, [x26]
	ldr	x8, [x8, x27]
	ldr	x9, [x25]
	ldr	x8, [x8, #56]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	bl	_putch
	mov	x0, x23
	mov	x1, x20
	bl	_gotoxy
	ldr	x8, [x25]
	ldr	x9, [x26]
	ldr	x9, [x9, x27]
	ldr	x9, [x9, #64]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	csel	w0, w21, w28, eq
	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	_putch
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKGROUND,8,3                 ; @BACKGROUND
	.comm	_MENUITEM,8,3                   ; @MENUITEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Keyset %i"

l_.str.1:                               ; @.str.1
	.asciz	"\\ | /"

l_.str.2:                               ; @.str.2
	.asciz	"-   -"

l_.str.3:                               ; @.str.3
	.asciz	"/ | \\"

	.comm	_MENUHEADER,8,3                 ; @MENUHEADER
	.comm	_pressed,8,3                    ; @pressed
	.comm	_keysets,8,3                    ; @keysets
.subsections_via_symbols
