	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateJoyData                  ## -- Begin function UpdateJoyData
	.p2align	4, 0x90
_UpdateJoyData:                         ## @UpdateJoyData
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$513, %edi                      ## imm = 0x201
	callq	_inportb
	shrl	$4, %eax
	notl	%eax
	andl	$15, %eax
	movq	_joybuttons@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	movl	$513, %edi                      ## imm = 0x201
	xorl	%esi, %esi
	callq	_outportb
	movl	$513, %edi                      ## imm = 0x201
	callq	_inportb
	xorl	%ebx, %ebx
	testb	$3, %al
	je	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	andl	$1, %ecx
	addq	%rcx, %rbx
	btl	$1, %eax
	adcq	$0, %r14
	movl	$513, %edi                      ## imm = 0x201
	callq	_inportb
	testb	$3, %al
	jne	LBB0_2
LBB0_3:
	movq	_joyx@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_joyy@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_joybuttons,4,2                 ## @joybuttons
	.comm	_joyx,8,3                       ## @joyx
	.comm	_joyy,8,3                       ## @joyy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateJoyData                  ; -- Begin function UpdateJoyData
	.p2align	2
_UpdateJoyData:                         ; @UpdateJoyData
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #513
	bl	_inportb
	mov	w8, #15
	bic	w8, w8, w0, lsr #4
Lloh0:
	adrp	x9, _joybuttons@GOTPAGE
Lloh1:
	ldr	x9, [x9, _joybuttons@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	mov	w0, #513
	mov	w1, #0
	bl	_outportb
	mov	w0, #513
	bl	_inportb
	tst	w0, #0x3
	b.eq	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w0, #0x1
	add	x20, x20, x8
	ubfx	w8, w0, #1, #1
	add	x19, x19, x8
	mov	w0, #513
	bl	_inportb
	tst	w0, #0x3
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x19, #0
	mov	x20, #0
LBB0_4:
Lloh3:
	adrp	x8, _joyx@GOTPAGE
Lloh4:
	ldr	x8, [x8, _joyx@GOTPAGEOFF]
Lloh5:
	str	x20, [x8]
Lloh6:
	adrp	x8, _joyy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _joyy@GOTPAGEOFF]
Lloh8:
	str	x19, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_joybuttons,4,2                 ; @joybuttons
	.comm	_joyx,8,3                       ; @joyx
	.comm	_joyy,8,3                       ; @joyy
.subsections_via_symbols
