	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_PROTO80_D1ffPutByte        ## -- Begin function PBI_PROTO80_D1ffPutByte
	.p2align	4, 0x90
_PBI_PROTO80_D1ffPutByte:               ## @PBI_PROTO80_D1ffPutByte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PBI_PROTO80_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_PROTO80_MASK@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_MEMORY_mem@GOTPCREL(%rip), %rax
	movl	$55296, %edi                    ## imm = 0xD800
	addq	(%rax), %rdi
	movq	_proto80rom@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memcpy
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%eax, %edi
	callq	_D
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_PBI_NOT_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBI_PROTO80_enabled,8,3        ## @PBI_PROTO80_enabled
	.comm	_PROTO80_MASK,8,3               ## @PROTO80_MASK
	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.comm	_proto80rom,4,2                 ## @proto80rom
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PROTO80 rom activated\n"

	.comm	_PBI_NOT_HANDLED,4,2            ## @PBI_NOT_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_PROTO80_D1ffPutByte        ; -- Begin function PBI_PROTO80_D1ffPutByte
	.p2align	2
_PBI_PROTO80_D1ffPutByte:               ; @PBI_PROTO80_D1ffPutByte
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PBI_PROTO80_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBI_PROTO80_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PROTO80_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PROTO80_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, x0, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PBI_NOT_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PBI_NOT_HANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x8, _MEMORY_mem@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEMORY_mem@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #55296
	add	x0, x8, x9
Lloh12:
	adrp	x8, _proto80rom@GOTPAGE
Lloh13:
	ldr	x8, [x8, _proto80rom@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #2048
	bl	_memcpy
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_D
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PBI_PROTO80_enabled,8,3        ; @PBI_PROTO80_enabled
	.comm	_PROTO80_MASK,8,3               ; @PROTO80_MASK
	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.comm	_proto80rom,4,2                 ; @proto80rom
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PROTO80 rom activated\n"

	.comm	_PBI_NOT_HANDLED,4,2            ; @PBI_NOT_HANDLED
.subsections_via_symbols
