	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_PutByte               ## -- Begin function CASSETTE_PutByte
	.p2align	4, 0x90
_CASSETTE_PutByte:                      ## @CASSETTE_PutByte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ESC_enable_sio_patch@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_cassette_writable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CASSETTE_record@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movl	%edi, %esi
	movq	_cassette_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POKEY_CHAN3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_POKEY_CHAN4@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edx
	shll	$8, %edx
	addl	(%rax,%rcx,4), %edx
	popq	%rbp
	jmp	_IMG_TAPE_WriteByte             ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESC_enable_sio_patch,4,2       ## @ESC_enable_sio_patch
	.comm	_cassette_writable,8,3          ## @cassette_writable
	.comm	_CASSETTE_record,8,3            ## @CASSETTE_record
	.comm	_cassette_file,4,2              ## @cassette_file
	.comm	_POKEY_AUDF,8,3                 ## @POKEY_AUDF
	.comm	_POKEY_CHAN3,8,3                ## @POKEY_CHAN3
	.comm	_POKEY_CHAN4,8,3                ## @POKEY_CHAN4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_PutByte               ; -- Begin function CASSETTE_PutByte
	.p2align	2
_CASSETTE_PutByte:                      ; @CASSETTE_PutByte
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ESC_enable_sio_patch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESC_enable_sio_patch@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _cassette_writable@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cassette_writable@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CASSETTE_record@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CASSETTE_record@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
	mov	x1, x0
Lloh9:
	adrp	x8, _cassette_file@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cassette_file@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _POKEY_AUDF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POKEY_AUDF@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _POKEY_CHAN3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _POKEY_CHAN3@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh18:
	adrp	x10, _POKEY_CHAN4@GOTPAGE
Lloh19:
	ldr	x10, [x10, _POKEY_CHAN4@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	add	w2, w9, w8, lsl #8
	b	_IMG_TAPE_WriteByte
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ESC_enable_sio_patch,4,2       ; @ESC_enable_sio_patch
	.comm	_cassette_writable,8,3          ; @cassette_writable
	.comm	_CASSETTE_record,8,3            ; @CASSETTE_record
	.comm	_cassette_file,4,2              ; @cassette_file
	.comm	_POKEY_AUDF,8,3                 ; @POKEY_AUDF
	.comm	_POKEY_CHAN3,8,3                ; @POKEY_CHAN3
	.comm	_POKEY_CHAN4,8,3                ; @POKEY_CHAN4
.subsections_via_symbols
