	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_cxt_get_tid_mem_info       ## -- Begin function qed_cxt_get_tid_mem_info
	.p2align	4, 0x90
_qed_cxt_get_tid_mem_info:              ## @qed_cxt_get_tid_mem_info
	.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	%rdi, %r12
	movq	(%rdi), %r15
	movl	8(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.2:
	movq	_PROTOCOLID_ISCSI@GOTPCREL(%rip), %rax
	movq	_QED_CXT_ISCSI_TID_SEG@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_PROTOCOLID_FCOE@GOTPCREL(%rip), %rax
	movq	_QED_CXT_FCOE_TID_SEG@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	32(%r15), %rbx
	movq	_ILT_CLI_CDUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	cmpl	$0, 16(%rbx,%rdx,8)
	je	LBB0_9
## %bb.5:
	movq	(%rcx), %rdi
	movq	(%rax), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rdi, %rcx
	shlq	$4, %rcx
	cmpl	$0, 8(%rax,%rcx)
	je	LBB0_9
## %bb.6:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx,%rdx,8), %r13
	movq	_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDUT_FL_SEG_BLK
	leaq	(%rax,%rax,2), %r14
	leaq	(,%r14,8), %rbx
	addq	%r13, %rbx
	movl	(%r13,%r14,8), %esi
	movl	16(%r13,%r14,8), %edi
	callq	_DIV_ROUND_UP
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:
	movq	8(%r13,%r14,8), %r10
	movq	(%r12), %rcx
	movq	(%rcx), %r8
	movq	16(%r15), %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	cmpq	$8, %rax
	jb	LBB0_8
## %bb.10:
	leaq	(%r9,%r10,4), %rdx
	leaq	(,%r8,4), %rsi
	subq	%rdx, %rsi
	addq	%rcx, %rsi
	cmpq	$32, %rsi
	jae	LBB0_12
LBB0_8:
	xorl	%esi, %esi
LBB0_19:
	movq	%rsi, %r11
	notq	%r11
	addq	%rax, %r11
	movq	%rax, %rdx
	movq	%rbx, %r14
	andq	$3, %rdx
	je	LBB0_22
## %bb.20:
	movq	%r10, %rbx
	subq	%r8, %rbx
	leaq	(%r9,%rbx,4), %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	decq	%rdx
	jne	LBB0_21
LBB0_22:
	cmpq	$3, %r11
	movq	%r14, %rbx
	jb	LBB0_25
## %bb.23:
	subq	%r8, %r10
	leaq	(%r9,%r10,4), %rdx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	4(%rdx,%rsi,4), %edi
	movl	%edi, 4(%rcx,%rsi,4)
	movl	8(%rdx,%rsi,4), %edi
	movl	%edi, 8(%rcx,%rsi,4)
	movl	12(%rdx,%rsi,4), %edi
	movl	%edi, 12(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_12:
	movq	%rbx, %r14
	movq	%rax, %rsi
	andq	$-8, %rsi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	movq	%r11, %rdi
	andq	$-2, %rdi
	movq	%r10, %rdx
	subq	%r8, %rdx
	leaq	(%r9,%rdx,4), %rdx
	addq	$48, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%rdx,%rbx,4), %xmm0
	movups	-32(%rdx,%rbx,4), %xmm1
	movups	%xmm0, (%rcx,%rbx,4)
	movups	%xmm1, 16(%rcx,%rbx,4)
	movups	-16(%rdx,%rbx,4), %xmm0
	movups	(%rdx,%rbx,4), %xmm1
	movups	%xmm0, 32(%rcx,%rbx,4)
	movups	%xmm1, 48(%rcx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_14
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	testb	$1, %r11b
	je	LBB0_18
## %bb.17:
	leaq	(%r10,%rbx), %rdx
	subq	%r8, %rdx
	movups	(%r9,%rdx,4), %xmm0
	movups	16(%r9,%rdx,4), %xmm1
	movups	%xmm0, (%rcx,%rbx,4)
	movups	%xmm1, 16(%rcx,%rbx,4)
LBB0_18:
	cmpq	%rsi, %rax
	movq	%r14, %rbx
	jne	LBB0_19
LBB0_25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %edi
	callq	_ILT_PAGE_IN_BYTES
	movslq	(%rbx), %rcx
	subq	%rcx, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 8(%rdi)
	movq	8(%r15), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rdx,%rsi), %rdx
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rdi)
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%rdi)
	xorl	%eax, %eax
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTOCOLID_FCOE,8,3            ## @PROTOCOLID_FCOE
	.comm	_QED_CXT_FCOE_TID_SEG,8,3       ## @QED_CXT_FCOE_TID_SEG
	.comm	_PROTOCOLID_ISCSI,8,3           ## @PROTOCOLID_ISCSI
	.comm	_QED_CXT_ISCSI_TID_SEG,8,3      ## @QED_CXT_ISCSI_TID_SEG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ILT_CLI_CDUT,8,3               ## @ILT_CLI_CDUT
	.comm	_PF,4,2                         ## @PF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_cxt_get_tid_mem_info       ; -- Begin function qed_cxt_get_tid_mem_info
	.p2align	2
_qed_cxt_get_tid_mem_info:              ; @qed_cxt_get_tid_mem_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0]
	ldr	w8, [x0, #8]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _PROTOCOLID_ISCSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROTOCOLID_ISCSI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _QED_CXT_ISCSI_TID_SEG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QED_CXT_ISCSI_TID_SEG@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _PROTOCOLID_FCOE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PROTOCOLID_FCOE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _QED_CXT_FCOE_TID_SEG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QED_CXT_FCOE_TID_SEG@GOTPAGEOFF]
LBB0_4:
	ldr	x24, [x23, #32]
Lloh8:
	adrp	x10, _ILT_CLI_CDUT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ILT_CLI_CDUT@GOTPAGEOFF]
Lloh10:
	ldr	x26, [x10]
	mov	w10, #24
	madd	x10, x26, x10, x24
	ldr	w10, [x10, #16]
	cbz	w10, LBB0_13
; %bb.5:
	ldr	x20, [x9]
	ldr	x8, [x8]
	ldr	x9, [x23, #24]
	ldr	x25, [x9, x8, lsl #3]
	add	x8, x25, x20, lsl #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_13
; %bb.6:
	mov	w27, #24
	madd	x8, x26, x27, x24
	ldr	x28, [x8, #8]
Lloh11:
	adrp	x8, _PF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_CDUT_FL_SEG_BLK
	mov	x22, x0
	madd	x27, x0, x27, x28
	ldr	w0, [x27, #16]
	ldr	w1, [x27]
	bl	_DIV_ROUND_UP
	cbz	x0, LBB0_12
; %bb.7:
	mov	w8, #24
	madd	x8, x22, x8, x28
	ldr	x8, [x8, #8]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x10, [x23, #16]
	ldr	x11, [x19, #16]
	cmp	x0, #16
	b.lo	LBB0_9
; %bb.8:
	add	x12, x10, x8, lsl #2
	lsl	x13, x9, #2
	sub	x12, x13, x12
	add	x12, x11, x12
	cmp	x12, #64
	b.hs	LBB0_15
LBB0_9:
	mov	x12, #0
LBB0_10:
	sub	x13, x0, x12
	add	x11, x11, x12, lsl #2
	add	x8, x12, x8
	sub	x8, x8, x9
	add	x8, x10, x8, lsl #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	str	w9, [x11], #4
	subs	x13, x13, #1
	b.ne	LBB0_11
LBB0_12:
	mov	w8, #24
	mul	x8, x26, x8
	ldr	w0, [x24, x8]
	bl	_ILT_PAGE_IN_BYTES
	mov	x8, x0
	mov	w0, #0
	ldrsw	x9, [x27]
	sub	x8, x8, x9
	str	x8, [x19, #8]
	lsl	x8, x20, #4
	ldr	x8, [x25, x8]
	ldr	x10, [x23, #8]
	ldr	w8, [x10, x8, lsl #2]
	sdiv	w9, w9, w8
	stp	w8, w9, [x19]
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	and	x12, x0, #0xfffffffffffffff0
	sub	x13, x8, x9
	add	x13, x10, x13, lsl #2
	add	x13, x13, #32
	add	x14, x11, #32
	mov	x15, x12
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x0, x12
	b.eq	LBB0_12
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTOCOLID_FCOE,8,3            ; @PROTOCOLID_FCOE
	.comm	_QED_CXT_FCOE_TID_SEG,8,3       ; @QED_CXT_FCOE_TID_SEG
	.comm	_PROTOCOLID_ISCSI,8,3           ; @PROTOCOLID_ISCSI
	.comm	_QED_CXT_ISCSI_TID_SEG,8,3      ; @QED_CXT_ISCSI_TID_SEG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ILT_CLI_CDUT,8,3               ; @ILT_CLI_CDUT
	.comm	_PF,4,2                         ; @PF
.subsections_via_symbols
