	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_cxt_cfg_ilt_compute_excess ## -- Begin function qed_cxt_cfg_ilt_compute_excess
	.p2align	4, 0x90
_qed_cxt_cfg_ilt_compute_excess:        ## @qed_cxt_cfg_ilt_compute_excess
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_QED_ILT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RESC_NUM
	xorl	%ebx, %ebx
	subl	%eax, %r15d
	je	LBB0_10
## %bb.1:
	movq	%r13, %rdi
	callq	_QED_IS_RDMA_PERSONALITY
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	(%r13), %r12
	movq	8(%r12), %rax
	movq	_ILT_CLI_CDUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_ILT_PAGE_IN_BYTES
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NUM_TASK_PF_SEGMENTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_qed_cxt_tid_seg_info
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rcx
	movq	8(%rax), %rax
	movl	(%rcx,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	imull	%r15d, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_DP_NOTICE
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_ILT,4,2                    ## @QED_ILT
	.comm	_ILT_CLI_CDUT,8,3               ## @ILT_CLI_CDUT
	.comm	_NUM_TASK_PF_SEGMENTS,4,2       ## @NUM_TASK_PF_SEGMENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed computing excess ILT lines\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_cxt_cfg_ilt_compute_excess ; -- Begin function qed_cxt_cfg_ilt_compute_excess
	.p2align	2
_qed_cxt_cfg_ilt_compute_excess:        ; @qed_cxt_cfg_ilt_compute_excess
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QED_ILT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_ILT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_RESC_NUM
	subs	w22, w20, w0
	b.eq	LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_QED_IS_RDMA_PERSONALITY
	cbz	w0, LBB0_11
; %bb.2:
	ldr	x23, [x19]
	ldr	x8, [x23, #8]
Lloh3:
	adrp	x9, _ILT_CLI_CDUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ILT_CLI_CDUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_ILT_PAGE_IN_BYTES
Lloh6:
	adrp	x24, _NUM_TASK_PF_SEGMENTS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NUM_TASK_PF_SEGMENTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x20, x0
	mov	w21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_qed_cxt_tid_seg_info
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x0, #8]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_4
; %bb.8:
	sdiv	w8, w20, w8
	mul	w0, w8, w22
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_ILT,4,2                    ; @QED_ILT
	.comm	_ILT_CLI_CDUT,8,3               ; @ILT_CLI_CDUT
	.comm	_NUM_TASK_PF_SEGMENTS,4,2       ; @NUM_TASK_PF_SEGMENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed computing excess ILT lines\n"

.subsections_via_symbols
