	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qed_cxt_free_ilt_range
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_qed_cxt_free_ilt_range:                ## @qed_cxt_free_ilt_range
	.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
	movl	%ecx, %r13d
	movq	%rdi, %r15
	movq	$0, -72(%rbp)
	cmpl	$128, %esi
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movl	%esi, %eax
	cmpl	$129, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.3:
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_ILT_CLI_CDUC@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %r14
	leaq	(%rcx,%r14), %r12
	movq	%r15, %rdi
	movl	%edx, %ebx
	callq	_CONN_CXT_SIZE
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%eax, %r12d
	movq	_CDUC_BLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax,%r14), %rbx
	jmp	LBB0_6
LBB0_4:
	movq	(%r15), %rax
	movq	16(%rax), %r14
	movq	_ILT_CLI_CDUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$4, %rbx
	leaq	(%r14,%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_TYPE1_TASK_CXT_SIZE
	movl	%eax, %r12d
	movq	8(%r14,%rbx), %rbx
	movq	_QED_CXT_ROCE_TID_SEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CDUT_SEG_BLK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movq	_ILT_CLI_TSDM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	movq	_SRQ_CXT_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	movq	_SRQ_BLK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	shlq	$2, %rbx
	addq	8(%rax,%rcx), %rbx
LBB0_6:
	addl	%edx, %r13d
	movl	(%rdi), %edi
	callq	_ILT_PAGE_IN_BYTES
	cltd
	idivl	%r12d
	movl	%eax, %r14d
	movl	(%rbx), %r12d
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %ebx
	incl	%r13d
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	xorl	%r13d, %r13d
	cmpl	%ebx, %eax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_qed_ptt_acquire
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	leal	(%rbx,%r12), %esi
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	subl	%r13d, %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	subl	%edi, %esi
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r14d
	addl	%eax, %r12d
	movl	%r12d, %ecx
	subl	%edi, %ecx
	cmpl	%esi, %ecx
	jge	LBB0_12
## %bb.8:
	negl	%r13d
	movslq	%ecx, %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r14
	addl	%r13d, %ebx
	subl	%eax, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	addq	$24, %r14
	decl	%ebx
	je	LBB0_12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	16(%rax,%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx), %rdi
	movq	(%rax,%r14), %rsi
	movq	8(%rax,%r14), %rcx
	callq	_dma_free_coherent
	movq	(%r15), %rax
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%r14)
	movq	$0, 16(%rax,%r14)
	leal	1(%r12), %r13d
	movq	_ILT_REG_SIZE_IN_BYTES@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	_ILT_ENTRY_IN_REGS@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	_PSWRQ2_REG_ILT_MEMORY@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	-72(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_qed_dmae_host2grc
	movl	%r13d, %r12d
	jmp	LBB0_9
LBB0_12:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_qed_ptt_release
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ILT_CLI_CDUC,8,3               ## @ILT_CLI_CDUC
	.comm	_CDUC_BLK,8,3                   ## @CDUC_BLK
	.comm	_ILT_CLI_TSDM,8,3               ## @ILT_CLI_TSDM
	.comm	_SRQ_CXT_SIZE,4,2               ## @SRQ_CXT_SIZE
	.comm	_SRQ_BLK,8,3                    ## @SRQ_BLK
	.comm	_ILT_CLI_CDUT,8,3               ## @ILT_CLI_CDUT
	.comm	_QED_CXT_ROCE_TID_SEG,4,2       ## @QED_CXT_ROCE_TID_SEG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-EINVALID elem type = %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"QED_TIME_OUT on ptt acquire - dynamic allocation"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PSWRQ2_REG_ILT_MEMORY,4,2      ## @PSWRQ2_REG_ILT_MEMORY
	.comm	_ILT_REG_SIZE_IN_BYTES,4,2      ## @ILT_REG_SIZE_IN_BYTES
	.comm	_ILT_ENTRY_IN_REGS,4,2          ## @ILT_ENTRY_IN_REGS
	.no_dead_strip	_qed_cxt_free_ilt_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_cxt_free_ilt_range
_qed_cxt_free_ilt_range:                ; @qed_cxt_free_ilt_range
	.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
	mov	x21, x3
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	str	xzr, [sp, #8]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _ILT_CLI_CDUC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ILT_CLI_CDUC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x23, x8, x9, lsl #4
	mov	x0, x19
	bl	_CONN_CXT_SIZE
	mov	x22, x0
	ldr	x8, [x23, #8]
Lloh3:
	adrp	x9, _CDUC_BLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CDUC_BLK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
Lloh5:
	adrp	x9, _ILT_CLI_CDUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ILT_CLI_CDUT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x23, x8, x9, lsl #4
	mov	x0, x19
	bl	_TYPE1_TASK_CXT_SIZE
	mov	x22, x0
	ldr	x24, [x23, #8]
Lloh8:
	adrp	x8, _QED_CXT_ROCE_TID_SEG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QED_CXT_ROCE_TID_SEG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_CDUT_SEG_BLK
	add	x24, x24, x0, lsl #2
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
Lloh11:
	adrp	x9, _ILT_CLI_TSDM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ILT_CLI_TSDM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x23, x8, x9, lsl #4
Lloh14:
	adrp	x8, _SRQ_CXT_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SRQ_CXT_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	x8, [x23, #8]
Lloh17:
	adrp	x9, _SRQ_BLK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SRQ_BLK@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x9]
	add	x24, x8, x9, lsl #2
LBB0_7:
	add	w21, w21, w20
	ldr	w0, [x23]
	bl	_ILT_PAGE_IN_BYTES
	sdiv	w23, w0, w22
	ldr	w25, [x24]
	sdiv	w22, w21, w23
	add	w8, w21, #1
	sdiv	w8, w8, w23
	cmp	w8, w22
	cset	w27, ne
	csetm	w24, ne
	ldr	x8, [x19]
	ldr	w26, [x8]
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_14
; %bb.8:
	mov	x21, x0
	add	w8, w22, w25
	sub	w10, w8, w27
	sdiv	w8, w20, w23
	add	w23, w8, w25
	sub	w9, w23, w26
	sub	w10, w10, w26
	cmp	w9, w10
	b.ge	LBB0_13
; %bb.9:
	mov	w10, #24
	smull	x20, w9, w10
	add	w9, w22, w24
	sub	w22, w9, w8
Lloh19:
	adrp	x24, _PSWRQ2_REG_ILT_MEMORY@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PSWRQ2_REG_ILT_MEMORY@GOTPAGEOFF]
Lloh21:
	adrp	x25, _ILT_REG_SIZE_IN_BYTES@GOTPAGE
Lloh22:
	ldr	x25, [x25, _ILT_REG_SIZE_IN_BYTES@GOTPAGEOFF]
Lloh23:
	adrp	x26, _ILT_ENTRY_IN_REGS@GOTPAGE
Lloh24:
	ldr	x26, [x26, _ILT_ENTRY_IN_REGS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #24
	subs	w22, w22, #1
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x20
	ldr	x2, [x8, #16]
	cbz	x2, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9]
	ldp	x1, x3, [x8]
	bl	_dma_free_coherent
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x20
	stp	xzr, xzr, [x8]
	str	xzr, [x8, #16]
	ldr	w8, [x24]
	add	w27, w23, #1
	ldr	w9, [x25]
	mul	w9, w9, w23
	ldr	w10, [x26]
	madd	w3, w9, w10, w8
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	w4, #2
	mov	x5, #0
	bl	_qed_dmae_host2grc
	mov	x23, x27
	b	LBB0_10
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	bl	_qed_ptt_release
	mov	w0, #0
	b	LBB0_17
LBB0_14:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	str	x1, [sp]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ILT_CLI_CDUC,8,3               ; @ILT_CLI_CDUC
	.comm	_CDUC_BLK,8,3                   ; @CDUC_BLK
	.comm	_ILT_CLI_TSDM,8,3               ; @ILT_CLI_TSDM
	.comm	_SRQ_CXT_SIZE,4,2               ; @SRQ_CXT_SIZE
	.comm	_SRQ_BLK,8,3                    ; @SRQ_BLK
	.comm	_ILT_CLI_CDUT,8,3               ; @ILT_CLI_CDUT
	.comm	_QED_CXT_ROCE_TID_SEG,4,2       ; @QED_CXT_ROCE_TID_SEG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-EINVALID elem type = %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"QED_TIME_OUT on ptt acquire - dynamic allocation"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PSWRQ2_REG_ILT_MEMORY,4,2      ; @PSWRQ2_REG_ILT_MEMORY
	.comm	_ILT_REG_SIZE_IN_BYTES,4,2      ; @ILT_REG_SIZE_IN_BYTES
	.comm	_ILT_ENTRY_IN_REGS,4,2          ; @ILT_ENTRY_IN_REGS
	.no_dead_strip	_qed_cxt_free_ilt_range
.subsections_via_symbols
