	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_cxt_get_task_ctx           ## -- Begin function qed_cxt_get_task_ctx
	.p2align	4, 0x90
_qed_cxt_get_task_ctx:                  ## @qed_cxt_get_task_ctx
	.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
	movq	8(%rdi), %r12
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.3:
	movq	_QED_CXT_ISCSI_TID_SEG@GOTPCREL(%rip), %rbx
	movq	_PROTOCOLID_ISCSI@GOTPCREL(%rip), %r8
	jmp	LBB0_4
LBB0_1:
	movq	_QED_CXT_FCOE_TID_SEG@GOTPCREL(%rip), %rbx
	movq	_PROTOCOLID_FCOE@GOTPCREL(%rip), %r8
LBB0_4:
	movq	32(%r12), %rax
	movq	_ILT_CLI_CDUT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	shlq	$4, %rdi
	cmpl	$0, 8(%rax,%rdi)
	je	LBB0_17
## %bb.5:
	movq	(%rbx), %r15
	addq	%rdi, %rax
	movq	(%r8), %rdi
	movq	24(%r12), %rbx
	movq	(%rbx,%rdi,8), %r14
	movq	_QED_CTX_WORKING_MEM@GOTPCREL(%rip), %rdi
	cmpq	%rdx, (%rdi)
	jne	LBB0_9
## %bb.6:
	movq	%rsi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_CDUT_SEG_BLK
	jmp	LBB0_7
LBB0_9:
	movq	_QED_CTX_FL_MEM@GOTPCREL(%rip), %rdi
	cmpq	%rdx, (%rdi)
	jne	LBB0_17
## %bb.10:
	movq	%r15, %rdx
	shlq	$4, %rdx
	cmpl	$0, 8(%r14,%rdx)
	je	LBB0_17
## %bb.11:
	movq	%rsi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CDUT_FL_SEG_BLK
LBB0_7:
	leaq	(%rax,%rax,2), %rax
	leaq	(%r13,%rax,8), %r13
	movl	16(%r13), %edi
	movq	(%r13), %rsi
	callq	_DIV_ROUND_UP
	movq	%rax, %rcx
	movq	(%r12), %rax
	shlq	$4, %r15
	movq	(%r14,%r15), %rdx
	movq	(%rax,%rdx,8), %rdi
	movq	(%r13), %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.12:
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rsi
	jmp	LBB0_13
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
LBB0_13:
	movq	%rbx, %rax
	movq	%rbx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%rax, %rcx
	jae	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %rcx
	jb	LBB0_17
LBB0_18:
	addq	8(%r13), %rax
	subq	8(%r12), %rax
	movq	16(%r12), %rcx
	imulq	%rdi, %rdx
	shlq	$3, %rdx
	addq	(%rcx,%rax,8), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_19
	.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	_QED_CTX_WORKING_MEM,8,3        ## @QED_CTX_WORKING_MEM
	.comm	_QED_CTX_FL_MEM,8,3             ## @QED_CTX_FL_MEM
	.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_task_ctx           ; -- Begin function qed_cxt_get_task_ctx
	.p2align	2
_qed_cxt_get_task_ctx:                  ; @qed_cxt_get_task_ctx
	.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	x19, x3
	mov	x20, x1
	ldr	x22, [x0, #8]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.2:
Lloh0:
	adrp	x9, _QED_CXT_ISCSI_TID_SEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_CXT_ISCSI_TID_SEG@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PROTOCOLID_ISCSI@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PROTOCOLID_ISCSI@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x9, _QED_CXT_FCOE_TID_SEG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QED_CXT_FCOE_TID_SEG@GOTPAGEOFF]
Lloh6:
	adrp	x10, _PROTOCOLID_FCOE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PROTOCOLID_FCOE@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x22, #32]
Lloh8:
	adrp	x11, _ILT_CLI_CDUT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ILT_CLI_CDUT@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	add	x8, x8, x11, lsl #4
	ldr	w11, [x8, #8]
	cbz	w11, LBB0_11
; %bb.5:
	ldr	x21, [x9]
	ldr	x9, [x10]
	ldr	x10, [x22, #24]
	ldr	x23, [x10, x9, lsl #3]
Lloh11:
	adrp	x9, _QED_CTX_WORKING_MEM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QED_CTX_WORKING_MEM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x2
	b.ne	LBB0_7
; %bb.6:
	ldr	x24, [x8]
	mov	x0, x21
	bl	_CDUT_SEG_BLK
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x9, _QED_CTX_FL_MEM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QED_CTX_FL_MEM@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x2
	b.ne	LBB0_11
; %bb.8:
	add	x9, x23, x21, lsl #4
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_11
; %bb.9:
	ldr	x24, [x8]
Lloh17:
	adrp	x8, _PF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PF@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_CDUT_FL_SEG_BLK
LBB0_10:
	mov	w8, #24
	madd	x24, x0, x8, x24
	ldr	w0, [x24, #16]
	ldr	x1, [x24]
	bl	_DIV_ROUND_UP
	ldr	x8, [x22]
	lsl	x9, x21, #4
	ldr	x9, [x23, x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x24]
	udiv	x9, x9, x8
	udiv	x10, x20, x9
	cmp	x0, x10
	b.hs	LBB0_13
LBB0_11:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
	ldr	x11, [x24, #8]
	ldp	x12, x13, [x22, #8]
	add	x11, x11, x10
	sub	x11, x11, x12
	ldr	x11, [x13, x11, lsl #3]
	msub	x9, x10, x9, x20
	mul	x8, x9, x8
	add	x8, x11, x8, lsl #3
	str	x8, [x19]
	b	LBB0_12
	.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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_QED_CTX_WORKING_MEM,8,3        ; @QED_CTX_WORKING_MEM
	.comm	_QED_CTX_FL_MEM,8,3             ; @QED_CTX_FL_MEM
	.comm	_PF,4,2                         ; @PF
.subsections_via_symbols
