	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_read_data
_jmb38x_ms_read_data:                   ## @jmb38x_ms_read_data
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.2:
	movq	8(%r15), %rcx
	movl	%r12d, %r12d
	leaq	-1(%r12), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	movzbl	(%rcx), %ecx
	movb	%cl, (%r14,%rbx)
	movq	8(%r15), %rcx
	sarl	$8, (%rcx)
	incq	%rbx
	decl	(%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, %eax
	jne	LBB0_3
LBB0_5:
	cmpl	%edx, %eax
	je	LBB0_18
## %bb.6:
	subq	%rbx, %r12
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	je	LBB0_18
LBB0_8:
	movq	_STATUS_FIFO_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	testl	%r13d, %eax
	jne	LBB0_12
## %bb.9:
	cmpl	$4, %r12d
	jb	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	___raw_readl
	movl	%ebx, %ecx
	movl	%eax, (%r14,%rcx)
	addl	$-4, %r12d
	addl	$4, %ebx
	movq	_STATUS_FIFO_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	testl	%r13d, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, %r12d
	ja	LBB0_10
LBB0_12:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.13:
	movq	_STATUS_FIFO_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	testl	%r13d, %eax
	jne	LBB0_18
## %bb.14:
	movq	_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$4, (%r15)
	decl	%r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movzbl	(%rcx), %ecx
	movl	%ebx, %edx
	movb	%cl, (%r14,%rdx)
	movq	8(%r15), %rcx
	sarl	$8, (%rcx)
	subl	$1, %r12d
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	leal	1(%rax), %ebx
	decl	(%r15)
	jne	LBB0_15
LBB0_17:
	incl	%eax
	movl	%eax, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_FIFO_EMPTY,4,2          ## @STATUS_FIFO_EMPTY
	.comm	_STATUS,8,3                     ## @STATUS
	.comm	_DATA,8,3                       ## @DATA
	.no_dead_strip	_jmb38x_ms_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_read_data
_jmb38x_ms_read_data:                   ; @jmb38x_ms_read_data
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #0
	ccmp	w2, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	cbnz	w22, LBB0_6
	b	LBB0_15
LBB0_2:
	mov	x21, #0
	ldr	x10, [x20, #8]
	mov	w8, w22
	sub	x9, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x21
	ldr	w10, [x10]
	add	x21, x21, #1
	strb	w10, [x19, x11]
	ldr	x10, [x20, #8]
	ldr	w12, [x10]
	asr	w12, w12, #8
	str	w12, [x10]
	ldr	w12, [x20]
	sub	w12, w12, #1
	str	w12, [x20]
	cmp	w12, #0
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_3
; %bb.4:
	cmp	w9, w11
	b.eq	LBB0_15
; %bb.5:
	sub	x22, x8, x21
LBB0_6:
Lloh0:
	adrp	x23, _STATUS_FIFO_EMPTY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATUS_FIFO_EMPTY@GOTPAGEOFF]
	ldr	w25, [x23]
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x24, _STATUS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STATUS@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, w25
	cmp	w8, #0
	ccmp	w22, #4, #0, eq
	b.lo	LBB0_9
; %bb.7:
Lloh4:
	adrp	x25, _DATA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DATA@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	___raw_readl
	str	w0, [x19, w21, uxtw]
	sub	w22, w22, #4
	add	w21, w21, #4
	ldr	w26, [x23]
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, w26
	cmp	w8, #0
	ccmp	w22, #3, #0, eq
	b.hi	LBB0_8
LBB0_9:
	cbz	w22, LBB0_15
; %bb.10:
	ldr	w23, [x23]
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	tst	w0, w23
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DATA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x20, #8]
	str	w0, [x8]
	mov	w9, #4
	str	w9, [x20]
	sub	w9, w22, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x21
	ldr	w8, [x8]
	strb	w8, [x19, w21, uxtw]
	ldr	x8, [x20, #8]
	ldr	w11, [x8]
	asr	w11, w11, #8
	str	w11, [x8]
	cbz	w9, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w11, [x20]
	sub	w9, w9, #1
	add	w21, w10, #1
	sub	w11, w11, #1
	str	w11, [x20]
	cbnz	w11, LBB0_12
LBB0_14:
	add	w21, w10, #1
LBB0_15:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_FIFO_EMPTY,4,2          ; @STATUS_FIFO_EMPTY
	.comm	_STATUS,8,3                     ; @STATUS
	.comm	_DATA,8,3                       ; @DATA
	.no_dead_strip	_jmb38x_ms_read_data
.subsections_via_symbols
