	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_update_rqs
_ehea_update_rqs:                       ## @ehea_update_rqs
	.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	(%rdi), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r15
	movq	8(%rsi), %r12
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_1
## %bb.9:
	movq	16(%rsi), %r13
	movl	$-1, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	cmpl	-48(%rbp), %r14d
	jge	LBB0_2
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_ehea_get_next_rwqe
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%r15, 8(%rax)
	movq	_EHEA_WR_ID_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_EHEA_BMASK_GET
	cltq
	movq	(%r13,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rax), %edi
	callq	_ehea_map_vaddr
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_12
LBB0_1:
	shrq	$32, %rax
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_8
LBB0_2:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_8
LBB0_4:
	movl	$-1, %ebx
	movq	_EHEA_WR_ID_INDEX@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	movl	$3, %esi
	callq	_ehea_get_next_rwqe
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	%r15, 8(%rax)
	movl	(%r14), %edi
	movl	8(%r13), %esi
	callq	_EHEA_BMASK_GET
	cltq
	movq	(%r12,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %edi
	callq	_ehea_map_vaddr
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_WR_ID_INDEX,4,2           ## @EHEA_WR_ID_INDEX
	.no_dead_strip	_ehea_update_rqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_update_rqs
_ehea_update_rqs:                       ; @ehea_update_rqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0]
	str	x8, [sp, #8]
	ldp	x21, x20, [x1]
Lloh0:
	adrp	x22, _EHEA_WR_ID_INDEX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EHEA_WR_ID_INDEX@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	ldr	x23, [x1, #16]
	mov	w24, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #2
	bl	_ehea_get_next_rwqe
	mov	x19, x0
	ldr	x8, [x0]
	str	x21, [x8, #8]
	ldr	w0, [x22]
	ldr	w1, [x19, #8]
	bl	_EHEA_BMASK_GET
	ldr	x8, [x23, w0, sxtw #3]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x8]
	bl	_ehea_map_vaddr
	ldr	x8, [x19]
	str	x0, [x8]
	b	LBB0_2
LBB0_5:
	lsr	x8, x8, #32
	tbz	w8, #31, LBB0_7
	b	LBB0_11
LBB0_6:
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_11
LBB0_7:
	mov	w23, #-1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #3
	bl	_ehea_get_next_rwqe
	mov	x19, x0
	ldr	x8, [x0]
	str	x21, [x8, #8]
	ldr	w0, [x22]
	ldr	w1, [x19, #8]
	bl	_EHEA_BMASK_GET
	ldr	x8, [x20, w0, sxtw #3]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x8]
	bl	_ehea_map_vaddr
	ldr	x8, [x19]
	str	x0, [x8]
	b	LBB0_8
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_WR_ID_INDEX,4,2           ; @EHEA_WR_ID_INDEX
	.no_dead_strip	_ehea_update_rqs
.subsections_via_symbols
