	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_parse_fpm_commit_buf
_i40iw_sc_parse_fpm_commit_buf:         ## @i40iw_sc_parse_fpm_commit_buf
	.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	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jbe	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx,%rax,4), %ecx
	imull	4(%rdx,%rax,4), %ecx
	addl	(%rdx,%rax,4), %ecx
	movl	%ecx, %eax
	andl	$2097151, %eax                  ## imm = 0x1FFFFF
	sarl	$21, %ecx
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	movslq	%ecx, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14,2), %rax
	leaq	(%rsi,%rax,4), %r13
	movq	_I40IW_HMC_IW_SRQ@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r13)
	xorl	%eax, %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 4(%r13)
	incq	%r14
	addq	$8, %rbx
	addq	$12, %r13
	cmpq	(%r15), %r14
	ja	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r12), %r14
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_I40IW_HMC_IW_FSIMC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_I40IW_HMC_IW_FSIAV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_get_64bit_val
	movl	-44(%rbp), %edi
	movl	$32, %esi
	callq	_RS_64_1
	shll	$9, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmovgq	%r14, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r13)
	movl	$1, %eax
	movq	_I40IW_HMC_IW_APBVT_ENTRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	movq	_I40IW_QUERY_FPM_MAX_QPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	movq	_I40IW_HMC_IW_CQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_I40IW_QUERY_FPM_MAX_CQS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_RS_64
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ## @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,8,3          ## @I40IW_HMC_IW_PBLE
	.comm	_I40IW_HMC_IW_SRQ,8,3           ## @I40IW_HMC_IW_SRQ
	.comm	_I40IW_HMC_IW_FSIMC,8,3         ## @I40IW_HMC_IW_FSIMC
	.comm	_I40IW_HMC_IW_FSIAV,8,3         ## @I40IW_HMC_IW_FSIAV
	.comm	_I40IW_HMC_IW_APBVT_ENTRY,8,3   ## @I40IW_HMC_IW_APBVT_ENTRY
	.comm	_I40IW_QUERY_FPM_MAX_QPS,4,2    ## @I40IW_QUERY_FPM_MAX_QPS
	.comm	_I40IW_HMC_IW_CQ,8,3            ## @I40IW_HMC_IW_CQ
	.comm	_I40IW_QUERY_FPM_MAX_CQS,4,2    ## @I40IW_QUERY_FPM_MAX_CQS
	.no_dead_strip	_i40iw_sc_parse_fpm_commit_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_parse_fpm_commit_buf
_i40iw_sc_parse_fpm_commit_buf:         ; @i40iw_sc_parse_fpm_commit_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _I40IW_HMC_IW_QP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_HMC_IW_QP@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x26, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x25, x8
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	b.ls	LBB0_3
; %bb.1:
	mov	x24, #0
LBB0_2:
	mov	w8, #12
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	madd	x8, x24, x8, x9
	ldp	w10, w9, [x8, #4]
	ldr	w8, [x8]
	madd	w8, w9, w10, w8
	tst	w8, #0x1fffff
	asr	w8, w8, #21
	cinc	w8, w8, ne
	sxtw	x8, w8
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	x21, x0
	mov	x24, #0
	mov	x22, #0
	mov	w27, #0
	mov	w8, #12
	madd	x28, x25, x8, x1
Lloh5:
	adrp	x19, _I40IW_HMC_IW_SRQ@GOTPAGE
Lloh6:
	ldr	x19, [x19, _I40IW_HMC_IW_SRQ@GOTPAGEOFF]
Lloh7:
	adrp	x20, _I40IW_HMC_IW_FSIMC@GOTPAGE
Lloh8:
	ldr	x20, [x20, _I40IW_HMC_IW_FSIMC@GOTPAGEOFF]
Lloh9:
	adrp	x23, _I40IW_HMC_IW_FSIAV@GOTPAGE
Lloh10:
	ldr	x23, [x23, _I40IW_HMC_IW_FSIAV@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	str	wzr, [x28]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x28, #4]
	add	x25, x25, #1
	add	x22, x22, #8
	ldr	x8, [x26]
	add	x28, x28, #12
	cmp	x25, x8
	b.hi	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x10, [x23]
	cmp	x25, x8
	ccmp	x25, x9, #4, ne
	ccmp	x25, x10, #4, ne
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x22
	bl	_get_64bit_val
	ldr	w0, [sp, #28]
	mov	w1, #32
	bl	_RS_64_1
	lsl	w8, w0, #9
	str	w8, [x28]
	cmp	w8, w27
	csel	w27, w8, w27, gt
	csel	x24, x25, x24, gt
Lloh11:
	adrp	x8, _I40IW_HMC_IW_APBVT_ENTRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_HMC_IW_APBVT_ENTRY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _I40IW_HMC_IW_QP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_HMC_IW_QP@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #28]
Lloh17:
	adrp	x8, _I40IW_QUERY_FPM_MAX_QPS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40IW_QUERY_FPM_MAX_QPS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_RS_64
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x8, _I40IW_HMC_IW_CQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40IW_HMC_IW_CQ@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w0, [sp, #28]
	cmp	x25, x8
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh23:
	adrp	x8, _I40IW_QUERY_FPM_MAX_CQS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40IW_QUERY_FPM_MAX_CQS@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_RS_64
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ; @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,8,3          ; @I40IW_HMC_IW_PBLE
	.comm	_I40IW_HMC_IW_SRQ,8,3           ; @I40IW_HMC_IW_SRQ
	.comm	_I40IW_HMC_IW_FSIMC,8,3         ; @I40IW_HMC_IW_FSIMC
	.comm	_I40IW_HMC_IW_FSIAV,8,3         ; @I40IW_HMC_IW_FSIAV
	.comm	_I40IW_HMC_IW_APBVT_ENTRY,8,3   ; @I40IW_HMC_IW_APBVT_ENTRY
	.comm	_I40IW_QUERY_FPM_MAX_QPS,4,2    ; @I40IW_QUERY_FPM_MAX_QPS
	.comm	_I40IW_HMC_IW_CQ,8,3            ; @I40IW_HMC_IW_CQ
	.comm	_I40IW_QUERY_FPM_MAX_CQS,4,2    ; @I40IW_QUERY_FPM_MAX_CQS
	.no_dead_strip	_i40iw_sc_parse_fpm_commit_buf
.subsections_via_symbols
