	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_configure_iw_fpm
_i40iw_sc_configure_iw_fpm:             ## @i40iw_sc_configure_iw_fpm
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_I40IW_MAX_VF_FPM_ID@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	cmpq	%rsi, %r14
	je	LBB0_6
## %bb.2:
	movq	_I40IW_FIRST_VF_FPM_ID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jle	LBB0_6
LBB0_3:
	movq	_I40IW_ERR_INVALID_HMCFN_ID@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	%rbx, %r14
	jne	LBB0_13
## %bb.7:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
LBB0_8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r13
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r14
	ja	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_set_64bit_val
	incq	%r14
	addl	$8, %ebx
	cmpq	(%r12), %r14
	jbe	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	movl	$40, %esi
	xorl	%edx, %edx
	callq	_set_64bit_val
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %eax
	movl	%eax, -80(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -88(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.12:
	movq	_I40IW_CQP_WAIT_POLL_REGS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_vf_hmcinfo_from_fpm
	testq	%rax, %rax
	jne	LBB0_8
LBB0_14:
	movq	_I40IW_ERR_BAD_PTR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	movq	_I40IW_CQP_WAIT_POLL_CQ@GOTPCREL(%rip), %rax
LBB0_16:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax), %r9
	movl	16(%r14), %edi
	movl	16(%r15), %edx
	leaq	-88(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_i40iw_sc_commit_fpm_values
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	8(%r14), %rdi
	movq	8(%r15), %rsi
	movq	%r15, %rdx
	callq	_i40iw_sc_parse_fpm_commit_buf
	movl	%eax, %ebx
LBB0_18:
	movq	_I40IW_DEBUG_HMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rcx
	movq	_I40IW_COMMIT_FPM_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_i40iw_debug_buf
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MAX_VF_FPM_ID,8,3        ## @I40IW_MAX_VF_FPM_ID
	.comm	_I40IW_FIRST_VF_FPM_ID,8,3      ## @I40IW_FIRST_VF_FPM_ID
	.comm	_I40IW_ERR_INVALID_HMCFN_ID,4,2 ## @I40IW_ERR_INVALID_HMCFN_ID
	.comm	_I40IW_ERR_BAD_PTR,4,2          ## @I40IW_ERR_BAD_PTR
	.comm	_I40IW_HMC_IW_QP,8,3            ## @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,8,3          ## @I40IW_HMC_IW_PBLE
	.comm	_I40IW_CQP_WAIT_POLL_REGS,8,3   ## @I40IW_CQP_WAIT_POLL_REGS
	.comm	_I40IW_CQP_WAIT_POLL_CQ,8,3     ## @I40IW_CQP_WAIT_POLL_CQ
	.comm	_I40IW_DEBUG_HMC,4,2            ## @I40IW_DEBUG_HMC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COMMIT FPM BUFFER"

	.comm	_I40IW_COMMIT_FPM_BUF_SIZE,4,2  ## @I40IW_COMMIT_FPM_BUF_SIZE
	.no_dead_strip	_i40iw_sc_configure_iw_fpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_configure_iw_fpm
_i40iw_sc_configure_iw_fpm:             ; @i40iw_sc_configure_iw_fpm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _I40IW_MAX_VF_FPM_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MAX_VF_FPM_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0]
Lloh3:
	adrp	x8, _I40IW_FIRST_VF_FPM_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_FIRST_VF_FPM_ID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x24, x1
	ccmp	x8, x1, #4, ne
	b.gt	LBB0_10
; %bb.2:
	cmp	x24, x20
	b.ne	LBB0_13
; %bb.3:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_14
LBB0_4:
Lloh6:
	adrp	x8, _I40IW_HMC_IW_QP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_HMC_IW_QP@GOTPAGEOFF]
	ldr	x22, [x19, #8]
Lloh8:
	ldr	x25, [x8]
Lloh9:
	adrp	x26, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x25, x8
	b.hi	LBB0_7
; %bb.5:
	mov	w23, #0
	ldr	x27, [x21, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x27, x25, lsl #3]
	mov	x0, x22
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_set_64bit_val
	add	x25, x25, #1
	ldr	x8, [x26]
	add	w23, w23, #8
	cmp	x25, x8
	b.ls	LBB0_6
LBB0_7:
	mov	x0, x22
	mov	w1, #40
	mov	w2, #0
	bl	_set_64bit_val
	ldp	w0, w8, [x19, #16]
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh11:
	adrp	x8, _I40IW_CQP_WAIT_POLL_REGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_CQP_WAIT_POLL_REGS@GOTPAGEOFF]
Lloh13:
	adrp	x9, _I40IW_CQP_WAIT_POLL_CQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I40IW_CQP_WAIT_POLL_CQ@GOTPAGEOFF]
	cmp	x24, x20
	csel	x8, x8, x9, eq
	ldr	x5, [x8]
	ldr	w2, [x21, #16]
	mov	x3, sp
	mov	w1, #0
	mov	w4, #1
	bl	_i40iw_sc_commit_fpm_values
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
	ldr	x1, [x21, #8]
	mov	x2, x21
	bl	_i40iw_sc_parse_fpm_commit_buf
	mov	x20, x0
LBB0_9:
Lloh15:
	adrp	x8, _I40IW_DEBUG_HMC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IW_DEBUG_HMC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x3, [sp]
Lloh18:
	adrp	x8, _I40IW_COMMIT_FPM_BUF_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40IW_COMMIT_FPM_BUF_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_i40iw_debug_buf
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x8, _I40IW_ERR_INVALID_HMCFN_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40IW_ERR_INVALID_HMCFN_ID@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_i40iw_vf_hmcinfo_from_fpm
	mov	x21, x0
	cbnz	x21, LBB0_4
LBB0_14:
Lloh25:
	adrp	x8, _I40IW_ERR_BAD_PTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I40IW_ERR_BAD_PTR@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MAX_VF_FPM_ID,8,3        ; @I40IW_MAX_VF_FPM_ID
	.comm	_I40IW_FIRST_VF_FPM_ID,8,3      ; @I40IW_FIRST_VF_FPM_ID
	.comm	_I40IW_ERR_INVALID_HMCFN_ID,4,2 ; @I40IW_ERR_INVALID_HMCFN_ID
	.comm	_I40IW_ERR_BAD_PTR,4,2          ; @I40IW_ERR_BAD_PTR
	.comm	_I40IW_HMC_IW_QP,8,3            ; @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,8,3          ; @I40IW_HMC_IW_PBLE
	.comm	_I40IW_CQP_WAIT_POLL_REGS,8,3   ; @I40IW_CQP_WAIT_POLL_REGS
	.comm	_I40IW_CQP_WAIT_POLL_CQ,8,3     ; @I40IW_CQP_WAIT_POLL_CQ
	.comm	_I40IW_DEBUG_HMC,4,2            ; @I40IW_DEBUG_HMC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COMMIT FPM BUFFER"

	.comm	_I40IW_COMMIT_FPM_BUF_SIZE,4,2  ; @I40IW_COMMIT_FPM_BUF_SIZE
	.no_dead_strip	_i40iw_sc_configure_iw_fpm
.subsections_via_symbols
