	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tms380tr_read_ram
_tms380tr_read_ram:                     ## @tms380tr_read_ram
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	_SIFADX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_SIFREADW
	movw	%ax, -44(%rbp)                  ## 2-byte Spill
	movq	_SIFADR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SIFREADW
	movw	%ax, -42(%rbp)                  ## 2-byte Spill
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_SIFWRITEW
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_SIFWRITEW
	movl	%r12d, %r12d
	leaq	-1(%r12), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SIFINC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SIFREADW
	movzwl	%ax, %ebx
	movl	%ebx, %edi
	callq	_HIBYTE
	movb	%al, (%r13,%r15)
	cmpq	%r15, %r14
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_LOBYTE
	movb	%al, 1(%r13,%r15)
	addq	$2, %r15
	cmpq	%r15, %r12
	jne	LBB0_1
LBB0_3:
	movq	_SIFADX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	-44(%rbp), %edi                 ## 2-byte Folded Reload
	callq	_SIFWRITEW
	movq	_SIFADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	-42(%rbp), %edi                 ## 2-byte Folded Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SIFWRITEW                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIFADX,4,2                     ## @SIFADX
	.comm	_SIFADR,4,2                     ## @SIFADR
	.comm	_SIFINC,4,2                     ## @SIFINC
	.no_dead_strip	_tms380tr_read_ram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tms380tr_read_ram
_tms380tr_read_ram:                     ; @tms380tr_read_ram
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x24, _SIFADX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SIFADX@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_SIFREADW
	mov	x19, x0
Lloh2:
	adrp	x25, _SIFADR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SIFADR@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_SIFREADW
	mov	x20, x0
	ldr	w1, [x24]
	mov	w0, #1
	bl	_SIFWRITEW
	ldr	w1, [x25]
	mov	x0, x22
	bl	_SIFWRITEW
	mov	w22, w21
	add	x23, x23, #1
Lloh4:
	adrp	x26, _SIFINC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SIFINC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_SIFREADW
	mov	x21, x0
	bl	_HIBYTE
	sturb	w0, [x23, #-1]
	cmp	x22, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_LOBYTE
	strb	w0, [x23], #2
	subs	x22, x22, #2
	b.ne	LBB0_1
LBB0_3:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_SIFWRITEW
	ldr	w1, [x25]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SIFWRITEW
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SIFADX,4,2                     ; @SIFADX
	.comm	_SIFADR,4,2                     ; @SIFADR
	.comm	_SIFINC,4,2                     ; @SIFINC
	.no_dead_strip	_tms380tr_read_ram
.subsections_via_symbols
