	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_msgq_rspq_pi_update
_bfa_msgq_rspq_pi_update:               ## @bfa_msgq_rspq_pi_update
	.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, %r14
	movl	(%rsi), %edi
	callq	_ntohs
	movl	%eax, (%r14)
	movl	4(%r14), %ecx
	cmpl	%eax, %ecx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rbx
	movq	_BFI_MSGQ_RSP_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ecx, %r15
	imulq	%rax, %r15
	movslq	(%rbx,%r15,4), %r12
	movl	4(%rbx,%r15,4), %edi
	callq	_ntohs
	movq	%rax, %r13
	movq	_BFI_MC_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rcx
	shlq	$4, %r12
	movq	8(%rcx,%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rbx,%r15,4), %rsi
	movl	(%rcx,%r12), %edi
	callq	*%rax
	movl	4(%r14), %edi
	movl	8(%r14), %edx
	movl	%r13d, %esi
	callq	_BFA_MSGQ_INDX_ADD
	movl	4(%r14), %ecx
	cmpl	(%r14), %ecx
	jne	LBB0_1
LBB0_4:
	movq	_RSPQ_E_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfa_fsm_send_event             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_MSGQ_RSP_ENTRY_SIZE,4,2    ## @BFI_MSGQ_RSP_ENTRY_SIZE
	.comm	_BFI_MC_MAX,4,2                 ## @BFI_MC_MAX
	.comm	_RSPQ_E_RESP,4,2                ## @RSPQ_E_RESP
	.no_dead_strip	_bfa_msgq_rspq_pi_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_msgq_rspq_pi_update
_bfa_msgq_rspq_pi_update:               ; @bfa_msgq_rspq_pi_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ntohs
	str	w0, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _BFI_MSGQ_RSP_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BFI_MSGQ_RSP_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BFI_MC_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BFI_MC_MAX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	w10, [x22]
	mul	w8, w10, w8
	add	x20, x9, w8, sxtw #2
	ldp	w24, w0, [x20]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	bl	_ntohs
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19, #16]
	add	x8, x9, x24, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	lsl	x10, x24, #4
	ldr	w0, [x9, x10]
	mov	x1, x20
	blr	x8
	ldp	w0, w2, [x19, #4]
	mov	x1, x21
	bl	_BFA_MSGQ_INDX_ADD
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _RSPQ_E_RESP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RSPQ_E_RESP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bfa_fsm_send_event
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_MSGQ_RSP_ENTRY_SIZE,4,2    ; @BFI_MSGQ_RSP_ENTRY_SIZE
	.comm	_BFI_MC_MAX,4,2                 ; @BFI_MC_MAX
	.comm	_RSPQ_E_RESP,4,2                ; @RSPQ_E_RESP
	.no_dead_strip	_bfa_msgq_rspq_pi_update
.subsections_via_symbols
