	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_read_reg_data
_jmb38x_ms_read_reg_data:               ## @jmb38x_ms_read_reg_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %r9d
	cmpl	$5, %r9d
	jl	LBB0_7
## %bb.1:
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movq	8(%rdi), %r10
	movl	%edx, %edx
	leaq	-1(%rdx), %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movzbl	(%r10), %r9d
	incq	%rax
	movb	%r9b, (%rsi,%rcx)
	movq	8(%rdi), %r10
	sarl	$8, (%r10)
	movl	(%rdi), %r11d
	leal	-1(%r11), %r9d
	movl	%r9d, (%rdi)
	cmpl	$6, %r11d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %r8d
	jne	LBB0_3
LBB0_5:
	cmpl	%ecx, %r8d
	je	LBB0_13
## %bb.6:
	subq	%rax, %rdx
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	testl	%edx, %edx
	je	LBB0_13
LBB0_8:
	testl	%r9d, %r9d
	je	LBB0_13
## %bb.9:
	testl	%edx, %edx
	je	LBB0_13
## %bb.10:
	movq	8(%rdi), %r8
	decl	%edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	4(%r8), %r8d
	movl	%eax, %ecx
	movb	%r8b, (%rsi,%rcx)
	movq	8(%rdi), %r8
	sarl	$8, 4(%r8)
	incl	%eax
	addl	$-1, %edx
	setb	%cl
	decl	(%rdi)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	%cl, %cl
	jne	LBB0_11
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jmb38x_ms_read_reg_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_reg_data
_jmb38x_ms_read_reg_data:               ; @jmb38x_ms_read_reg_data
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	w9, [x0]
	cmp	w9, #5
	ccmp	w2, #0, #4, ge
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	cbnz	w2, LBB0_6
	b	LBB0_10
LBB0_2:
	mov	x8, #0
	ldr	x12, [x0, #8]
	mov	w10, w2
	sub	x11, x10, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x13, x8
	ldr	w9, [x12]
	add	x8, x8, #1
	strb	w9, [x1, x13]
	ldr	x12, [x0, #8]
	ldr	w9, [x12]
	asr	w9, w9, #8
	str	w9, [x12]
	ldr	w14, [x0]
	sub	w9, w14, #1
	str	w9, [x0]
	cmp	w14, #6
	ccmp	w11, w13, #4, ge
	b.ne	LBB0_3
; %bb.4:
	cmp	w11, w13
	b.eq	LBB0_10
; %bb.5:
	sub	x2, x10, x8
LBB0_6:
	cmp	w9, #0
	ccmp	w2, #0, #4, ne
	b.eq	LBB0_10
; %bb.7:
	ldr	x10, [x0, #8]
	sub	w9, w2, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8
	ldr	w10, [x10, #4]
	strb	w10, [x1, w8, uxtw]
	add	w8, w8, #1
	ldr	x10, [x0, #8]
	ldr	w11, [x10, #4]
	asr	w11, w11, #8
	str	w11, [x10, #4]
	ldr	w12, [x0]
	subs	w9, w9, #1
	cset	w11, hs
	sub	w12, w12, #1
	str	w12, [x0]
	cbz	w12, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w11, #0, LBB0_8
LBB0_10:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jmb38x_ms_read_reg_data
.subsections_via_symbols
