	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r820t_compre_step
_r820t_compre_step:                     ## @r820t_compre_step
	.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, %r12
	movq	%rdi, %r15
	movl	4(%rsi), %r13d
	cmpl	$8, %edx
	sete	%dil
	movl	%r13d, %esi
	andl	$31, %esi
	movq	_IMR_TRIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %esi
	jge	LBB0_10
## %bb.1:
	movl	(%r12), %ebx
	movl	%ebx, %esi
	andl	$31, %esi
	cmpl	%ecx, %esi
	jge	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	movb	%dil, %al
	xorl	%r14d, %r14d
	cmpl	$8, %edx
	setne	%r14b
	addl	%r14d, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	movl	%r13d, %edx
	callq	_r820t_write_reg
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	$9, %esi
	movl	%ebx, %edx
	callq	_r820t_write_reg
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_r820t_multi_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	8(%r12), %eax
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, 4(%r12)
	movl	%ebx, (%r12)
	movl	%eax, 8(%r12)
	movl	%r13d, %ecx
	andl	$31, %ecx
	movq	_IMR_TRIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ecx
	andl	$31, %ecx
	addl	%r14d, %ebx
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	cmpl	%eax, %ecx
	jl	LBB0_3
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMR_TRIAL,4,2                  ## @IMR_TRIAL
	.no_dead_strip	_r820t_compre_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r820t_compre_step
_r820t_compre_step:                     ; @r820t_compre_step
	.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
	ldp	w9, w8, [x1]
	cmp	w2, #8
	cset	w23, eq
	and	w10, w8, #0x1f
Lloh0:
	adrp	x24, _IMR_TRIAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IMR_TRIAL@GOTPAGEOFF]
	ldr	w11, [x24]
	and	w12, w9, #0x1f
	cmp	w10, w11
	ccmp	w12, w11, #0, lt
	b.lt	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #8
	cset	w25, ne
	cinc	w21, w9, ne
	add	w22, w8, w23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #8
	mov	x2, x22
	bl	_r820t_write_reg
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #9
	mov	x2, x21
	bl	_r820t_write_reg
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_r820t_multi_read
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.gt	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	w21, w22, [x19]
	str	w0, [x19, #8]
	and	w8, w22, #0x1f
	ldr	w9, [x24]
	and	w10, w21, #0x1f
	add	w21, w21, w25
	add	w22, w22, w23
	cmp	w8, w9
	ccmp	w10, w9, #0, lt
	b.lt	LBB0_4
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IMR_TRIAL,4,2                  ; @IMR_TRIAL
	.no_dead_strip	_r820t_compre_step
.subsections_via_symbols
