	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_block
_read_block:                            ## @read_block
	.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, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	cmpq	%rsi, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	movq	%r12, (%r15)
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15), %eax
	cmpl	%eax, %r13d
	movl	%r13d, %ebx
	cmovgl	%eax, %ebx
	movl	8(%r15), %edi
	testl	%eax, %eax
	cmovel	%r13d, %ebx
	movl	$1, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_regmap_raw_read
	subl	%ebx, %r13d
	movslq	%ebx, %rcx
	leaq	(%r14,%rcx,8), %r14
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_block
_read_block:                            ; @read_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21, #8]
	mov	w1, #0
	mov	x2, x22
	bl	_regmap_write
	cbnz	w0, LBB0_6
LBB0_2:
	str	x22, [x21]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w0, w8, [x21, #8]
	cmp	w19, w8
	ccmp	w8, #0, #4, gt
	csel	w22, w8, w19, ne
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_regmap_raw_read
	add	x20, x20, w22, sxtw #3
	sub	w19, w19, w22
	cbz	w0, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_block
.subsections_via_symbols
