	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_query_fpm_values
_i40iw_sc_query_fpm_values:             ## @i40iw_sc_query_fpm_values
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r12
	callq	_i40iw_sc_cqp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$16, %esi
	movq	%r14, %rdx
	callq	_set_64bit_val
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_set_64bit_val
	movq	_I40IW_CQP_OP_QUERY_FPM_VALUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IW_CQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movl	4(%r12), %edi
	movq	_I40IW_CQPSQ_WQEVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_i40iw_insert_wqe_hdr
	movl	(%r12), %edi
	movq	_I40IW_DEBUG_WQE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40IW_CQP_WQE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	shll	$3, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_i40iw_debug_buf
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	callq	_i40iw_get_cqp_reg_info
	cmpq	$0, -64(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_I40IW_ERR_CQP_COMPL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_I40IW_ERR_RING_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.5:
	movq	%r12, %rdi
	callq	_i40iw_sc_cqp_post_sq
	movq	_I40IW_CQP_WAIT_POLL_REGS@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	-72(%rbp), %rsi
	movq	_I40IW_DONE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_i40iw_cqp_poll_registers
	jmp	LBB0_9
LBB0_7:
	movq	_I40IW_CQP_WAIT_POLL_CQ@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_i40iw_sc_query_fpm_values_done
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_RING_FULL,4,2        ## @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQP_OP_QUERY_FPM_VALUES,4,2 ## @I40IW_CQP_OP_QUERY_FPM_VALUES
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ## @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ## @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_WQE,4,2            ## @I40IW_DEBUG_WQE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_FPM WQE"

	.comm	_I40IW_CQP_WQE_SIZE,4,2         ## @I40IW_CQP_WQE_SIZE
	.comm	_I40IW_ERR_CQP_COMPL_ERROR,4,2  ## @I40IW_ERR_CQP_COMPL_ERROR
	.comm	_I40IW_CQP_WAIT_POLL_REGS,8,3   ## @I40IW_CQP_WAIT_POLL_REGS
	.comm	_I40IW_DONE_COUNT,4,2           ## @I40IW_DONE_COUNT
	.comm	_I40IW_CQP_WAIT_POLL_CQ,8,3     ## @I40IW_CQP_WAIT_POLL_CQ
	.no_dead_strip	_i40iw_sc_query_fpm_values
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_query_fpm_values
_i40iw_sc_query_fpm_values:             ; @i40iw_sc_query_fpm_values
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x0
	bl	_i40iw_sc_cqp_get_next_send_wqe
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	w1, #16
	mov	x2, x24
	bl	_set_64bit_val
	ldr	x2, [x23]
	mov	x0, x22
	mov	w1, #32
	bl	_set_64bit_val
Lloh0:
	adrp	x8, _I40IW_CQP_OP_QUERY_FPM_VALUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_CQP_OP_QUERY_FPM_VALUES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _I40IW_CQPSQ_OPCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_CQPSQ_OPCODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x23, x0
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _I40IW_CQPSQ_WQEVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_CQPSQ_WQEVALID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w1, w0, w23
	mov	x0, x22
	bl	_i40iw_insert_wqe_hdr
Lloh9:
	adrp	x8, _I40IW_DEBUG_WQE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_DEBUG_WQE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _I40IW_CQP_WQE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40IW_CQP_WQE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w4, w8, #3
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_i40iw_debug_buf
	add	x1, sp, #16
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x19
	bl	_i40iw_get_cqp_reg_info
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh17:
	adrp	x8, _I40IW_ERR_CQP_COMPL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40IW_ERR_CQP_COMPL_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x8, _I40IW_ERR_RING_FULL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40IW_ERR_RING_FULL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	cbz	w21, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_i40iw_sc_cqp_post_sq
Lloh21:
	adrp	x8, _I40IW_CQP_WAIT_POLL_REGS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IW_CQP_WAIT_POLL_REGS@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
	ldr	x1, [sp, #24]
Lloh24:
	adrp	x8, _I40IW_DONE_COUNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40IW_DONE_COUNT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i40iw_cqp_poll_registers
	b	LBB0_5
LBB0_9:
Lloh27:
	adrp	x8, _I40IW_CQP_WAIT_POLL_CQ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40IW_CQP_WAIT_POLL_CQ@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_i40iw_sc_query_fpm_values_done
	b	LBB0_5
LBB0_11:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_RING_FULL,4,2        ; @I40IW_ERR_RING_FULL
	.comm	_I40IW_CQP_OP_QUERY_FPM_VALUES,4,2 ; @I40IW_CQP_OP_QUERY_FPM_VALUES
	.comm	_I40IW_CQPSQ_OPCODE,4,2         ; @I40IW_CQPSQ_OPCODE
	.comm	_I40IW_CQPSQ_WQEVALID,4,2       ; @I40IW_CQPSQ_WQEVALID
	.comm	_I40IW_DEBUG_WQE,4,2            ; @I40IW_DEBUG_WQE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_FPM WQE"

	.comm	_I40IW_CQP_WQE_SIZE,4,2         ; @I40IW_CQP_WQE_SIZE
	.comm	_I40IW_ERR_CQP_COMPL_ERROR,4,2  ; @I40IW_ERR_CQP_COMPL_ERROR
	.comm	_I40IW_CQP_WAIT_POLL_REGS,8,3   ; @I40IW_CQP_WAIT_POLL_REGS
	.comm	_I40IW_DONE_COUNT,4,2           ; @I40IW_DONE_COUNT
	.comm	_I40IW_CQP_WAIT_POLL_CQ,8,3     ; @I40IW_CQP_WAIT_POLL_CQ
	.no_dead_strip	_i40iw_sc_query_fpm_values
.subsections_via_symbols
