	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dreq0_do
_dreq0_do:                              ## @dreq0_do
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_Pico32x@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movzwl	16(%rax), %r15d
	movzwl	(%rsi), %edx
	cmpw	%r15w, %dx
	jb	LBB0_2
## %bb.1:
	leal	4(%r15), %eax
	cmpl	%edx, %eax
	jae	LBB0_3
LBB0_2:
	movq	_EL_32XP@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_3:
	movl	4(%rbx), %edx
	movl	%edx, %eax
	andl	$16136, %eax                    ## imm = 0x3F08
	cmpl	$1024, %eax                     ## imm = 0x400
	je	LBB0_5
## %bb.4:
	movq	_EL_32XP@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
LBB0_5:
	movl	8(%rbx), %edx
	movl	%edx, %eax
	andl	$-536870913, %eax               ## imm = 0xDFFFFFFF
	cmpl	$16402, %eax                    ## imm = 0x4012
	je	LBB0_7
## %bb.6:
	movq	_EL_32XP@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
LBB0_7:
	movq	_SH2_STATE_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	8(%r13), %edx
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	LBB0_12
## %bb.8:
	cmpw	$0, (%rbx)
	je	LBB0_12
## %bb.9:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_EL_32XP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %ecx
	movq	16(%r13), %rax
	movl	(%rax,%r12,4), %r8d
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %r9d
	callq	_elprintf_sh2
	movl	12(%rbx), %edi
	movq	16(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdx
	callq	_p32x_sh2_write16
	addl	$2, 12(%rbx)
	movl	(%rbx), %eax
	decl	%eax
	movw	%ax, (%rbx)
	incq	%r12
	movl	8(%r13), %edx
	cmpl	%r12d, %edx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testw	%ax, %ax
	jne	LBB0_10
LBB0_12:
	movl	%r12d, %eax
	subl	%r12d, %edx
	je	LBB0_14
## %bb.13:
	movq	16(%r13), %rdi
	movl	%r12d, %eax
	leaq	(%rdi,%rax,4), %rsi
	addl	%edx, %edx
	callq	_memmove
	movl	8(%r13), %eax
LBB0_14:
	subl	%r12d, %eax
	movl	%eax, 8(%r13)
	movq	_P32XS_FULL@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	notl	%eax
	movq	(%r13), %rcx
	andw	%ax, 6(%rcx)
	cmpw	$0, (%rbx)
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	movl	$16, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh2_end_run                    ## TAILCALL
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmac_transfer_complete         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico32x,24,3                   ## @Pico32x
	.comm	_EL_32XP,4,2                    ## @EL_32XP
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dreq0: tcr0/len inconsistent: %d/%d"

L_.str.1:                               ## @.str.1
	.asciz	"dreq0: bad control: %04x"

L_.str.2:                               ## @.str.2
	.asciz	"dreq0: bad sar?: %08x"

	.comm	_SH2_STATE_SLEEP,4,2            ## @SH2_STATE_SLEEP
L_.str.3:                               ## @.str.3
	.asciz	"dreq0 [%08x] %04x, dreq_len %d"

	.comm	_P32XS_FULL,2,1                 ## @P32XS_FULL
	.no_dead_strip	_dreq0_do
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dreq0_do
_dreq0_do:                              ; @dreq0_do
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _Pico32x@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Pico32x@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrh	w21, [x8, #16]
	ldrh	w2, [x1]
	add	w8, w21, #4
	cmp	w2, w21
	ccmp	w8, w2, #0, hs
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EL_32XP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_32XP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
LBB0_2:
	ldr	w2, [x20, #4]
	mov	w8, #16136
	and	w8, w2, w8
	cmp	w8, #1024
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _EL_32XP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EL_32XP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elprintf
LBB0_4:
	ldr	w2, [x20, #8]
	and	w8, w2, #0xdfffffff
	mov	w9, #16402
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _EL_32XP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EL_32XP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elprintf
LBB0_6:
Lloh26:
	adrp	x8, _SH2_STATE_SLEEP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SH2_STATE_SLEEP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x23, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	ldrh	w9, [x20]
	cbz	w9, LBB0_10
; %bb.8:
	mov	x24, #0
Lloh29:
	adrp	x25, _EL_32XP@GOTPAGE
Lloh30:
	ldr	x25, [x25, _EL_32XP@GOTPAGEOFF]
Lloh31:
	adrp	x22, l_.str.3@PAGE
Lloh32:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w3, [x20, #12]
	ldr	x8, [x23, #16]
	lsl	x26, x24, #2
	ldr	w4, [x8, x26]
	mov	x0, x19
	mov	x2, x22
	mov	x5, x21
	bl	_elprintf_sh2
	ldr	w0, [x20, #12]
	ldr	x8, [x23, #16]
	ldr	w1, [x8, x26]
	mov	x2, x19
	bl	_p32x_sh2_write16
	ldr	w8, [x20, #12]
	add	w8, w8, #2
	str	w8, [x20, #12]
	ldrh	w8, [x20]
	sub	w9, w8, #1
	strh	w9, [x20]
	add	x24, x24, #1
	ldr	w8, [x23, #8]
	cmp	w8, w24
	and	w9, w9, #0xffff
	ccmp	w9, #0, #4, gt
	b.ne	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x9, x24
	subs	w8, w8, w24
	b.eq	LBB0_13
; %bb.12:
	ldr	x0, [x23, #16]
	add	x1, x0, w24, uxtw #2
	lsl	w2, w8, #1
	bl	_memmove
	ldr	w9, [x23, #8]
LBB0_13:
	sub	w8, w9, w24
	str	w8, [x23, #8]
Lloh33:
	adrp	x8, _P32XS_FULL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _P32XS_FULL@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldr	x9, [x23]
	ldrh	w10, [x9, #6]
	bic	w8, w10, w8
	strh	w8, [x9, #6]
	ldrh	w8, [x20]
	cbz	w8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #16
	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
	add	sp, sp, #96
	b	_sh2_end_run
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #96
	b	_dmac_transfer_complete
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico32x,24,3                   ; @Pico32x
	.comm	_EL_32XP,4,2                    ; @EL_32XP
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dreq0: tcr0/len inconsistent: %d/%d"

l_.str.1:                               ; @.str.1
	.asciz	"dreq0: bad control: %04x"

l_.str.2:                               ; @.str.2
	.asciz	"dreq0: bad sar?: %08x"

	.comm	_SH2_STATE_SLEEP,4,2            ; @SH2_STATE_SLEEP
l_.str.3:                               ; @.str.3
	.asciz	"dreq0 [%08x] %04x, dreq_len %d"

	.comm	_P32XS_FULL,2,1                 ; @P32XS_FULL
	.no_dead_strip	_dreq0_do
.subsections_via_symbols
