	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIA_Reset                      ## -- Begin function PIA_Reset
	.p2align	4, 0x90
_PIA_Reset:                             ## @PIA_Reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PIA_PORTA@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PIA_PORTB@GOTPCREL(%rip), %rax
	movq	_PIA_PORTB_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$255, %edi
	callq	_MEMORY_HandlePORTB
LBB0_2:
	movq	_PIA_PORTB@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIA_PORTA,4,2                  ## @PIA_PORTA
	.comm	_Atari800_machine_type,8,3      ## @Atari800_machine_type
	.comm	_Atari800_MACHINE_XLXE,8,3      ## @Atari800_MACHINE_XLXE
	.comm	_PIA_PORTB,4,2                  ## @PIA_PORTB
	.comm	_PIA_PORTB_mask,4,2             ## @PIA_PORTB_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIA_Reset                      ; -- Begin function PIA_Reset
	.p2align	2
_PIA_Reset:                             ; @PIA_Reset
	.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
Lloh0:
	adrp	x8, _PIA_PORTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIA_PORTA@GOTPAGEOFF]
	mov	w19, #255
Lloh2:
	str	w19, [x8]
Lloh3:
	adrp	x8, _Atari800_machine_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Atari800_machine_type@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x20, _PIA_PORTB@GOTPAGE
Lloh10:
	ldr	x20, [x20, _PIA_PORTB@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _PIA_PORTB_mask@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PIA_PORTB_mask@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w0, #255
	bl	_MEMORY_HandlePORTB
LBB0_2:
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PIA_PORTA,4,2                  ; @PIA_PORTA
	.comm	_Atari800_machine_type,8,3      ; @Atari800_machine_type
	.comm	_Atari800_MACHINE_XLXE,8,3      ; @Atari800_MACHINE_XLXE
	.comm	_PIA_PORTB,4,2                  ; @PIA_PORTB
	.comm	_PIA_PORTB_mask,4,2             ; @PIA_PORTB_mask
.subsections_via_symbols
