	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_xfer_memory
_mips_xfer_memory:                      ## @mips_xfer_memory
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movl	%edi, %r14d
	andl	$-4, %r14d
	movl	%edi, %ecx
	andl	$3, %ecx
	leal	(%rcx,%rdx), %ebx
	leal	(%rcx,%rdx), %eax
	addl	$3, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rdx), %r13d
	addl	$6, %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	movl	%r13d, %eax
	sarl	$2, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	$-4, %r13d
	movl	%r13d, %edi
	callq	_alloca
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_1
## %bb.5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	cmpl	$3, %r12d
	jg	LBB0_8
LBB0_7:
	movl	%r14d, %edi
	callq	_mips_fetch_word
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_store_unsigned_integer
LBB0_8:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$5, %ebx
	jl	LBB0_10
## %bb.9:
	leal	-4(%r13), %ebx
	addq	%r15, %rbx
	leal	(%r14,%r13), %edi
	addl	$-4, %edi
	callq	_mips_fetch_word
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_store_unsigned_integer
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	addq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_11
LBB0_1:
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r12d
	cmovgel	%eax, %r12d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_mips_fetch_word
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_store_unsigned_integer
	addl	$4, %r14d
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_3
LBB0_4:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	addq	%rax, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_20
LBB0_10:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	%r15, %rdi
	addq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_20
LBB0_11:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovgel	%eax, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_extract_unsigned_integer
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mips_store_word
	movl	%eax, %ebx
	cmpb	$-1, %r12b
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_printf_unfiltered
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdb_flush
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	addl	$4, %r14d
	addq	$4, %r15
	cmpq	%r12, %r13
	jne	LBB0_12
## %bb.17:
	cmpl	$1021, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x3FD
	jl	LBB0_19
## %bb.18:
	leaq	L_.str.1(%rip), %rdi
	callq	_printf_unfiltered
LBB0_19:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%r12d, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mask_address_p,8,3             ## @mask_address_p
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*"

	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_QUIT,4,2                       ## @QUIT
	.no_dead_strip	_mips_xfer_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_xfer_memory
_mips_xfer_memory:                      ; @mips_xfer_memory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x3
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
	and	w20, w0, #0xfffffffc
	and	w27, w0, #0x3
	add	w26, w27, w2
	add	w8, w26, #3
	add	w9, w26, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w28, w8, #2
	and	w23, w8, #0xfffffffc
	mov	x0, x23
	bl	_alloca
	mov	x21, x0
	cbz	w25, LBB0_5
; %bb.1:
	cmp	w20, w24
	b.ne	LBB0_9
; %bb.2:
	cmp	w19, #4
	b.lt	LBB0_9
; %bb.3:
	cmp	w26, #4
	b.le	LBB0_10
LBB0_4:
	sub	w8, w23, #4
	add	x23, x21, x8
	add	w0, w8, w20
	bl	_mips_fetch_word
	mov	x2, x0
	mov	x0, x23
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x0, x21, w27, uxtw
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	b	LBB0_11
LBB0_5:
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.6:
	cmp	w28, #1
	csinc	w24, w28, wzr, gt
	mov	x23, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mips_fetch_word
	mov	x2, x0
	mov	x0, x23
	mov	w1, #4
	bl	_store_unsigned_integer
	add	w20, w20, #4
	add	x23, x23, #4
	subs	x24, x24, #1
	b.ne	LBB0_7
LBB0_8:
	add	x1, x21, w27, uxtw
	mov	x0, x22
	mov	x2, x19
	bl	_memcpy
	b	LBB0_19
LBB0_9:
	mov	x0, x20
	bl	_mips_fetch_word
	mov	x2, x0
	mov	x0, x21
	mov	w1, #4
	bl	_store_unsigned_integer
	cmp	w26, #4
	b.gt	LBB0_4
LBB0_10:
	add	x0, x21, w27, uxtw
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	cmp	w26, #1
	b.lt	LBB0_19
LBB0_11:
	mov	x24, #0
	cmp	w28, #1
	csinc	w25, w28, wzr, gt
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _gdb_stdout@GOTPAGE
Lloh3:
	ldr	x27, [x27, _gdb_stdout@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_extract_unsigned_integer
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_mips_store_word
	mov	x23, x0
	mvn	w8, w24
	tst	x8, #0xff
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	bl	_printf_unfiltered
	ldr	w0, [x27]
	bl	_gdb_flush
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w23, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	add	w20, w20, #4
	add	x21, x21, #4
	cmp	x25, x24
	b.ne	LBB0_12
; %bb.16:
	cmp	w26, #1021
	b.lt	LBB0_19
; %bb.17:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf_unfiltered
	b	LBB0_19
LBB0_18:
	mov	w19, #0
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	w23, [x8]
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mask_address_p,8,3             ; @mask_address_p
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*"

	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_QUIT,4,2                       ; @QUIT
	.no_dead_strip	_mips_xfer_memory
.subsections_via_symbols
