	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_handle_tsk_mgmt
_srpt_handle_tsk_mgmt:                  ## @srpt_handle_tsk_mgmt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_BUG_ON
	movq	8(%rbx), %r14
	movslq	(%rbx), %r15
	shlq	$4, %r15
	leaq	(%r14,%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14,%r15), %edx
	movl	8(%r14,%r15), %esi
	movl	12(%r14,%r15), %ecx
	movq	(%r13), %r9
	leaq	L_.str(%rip), %rdi
	movq	%r13, %r8
	callq	_pr_debug
	movq	_SRPT_STATE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_srpt_set_cmd_state
	movl	12(%r14,%r15), %eax
	movl	%eax, 16(%r12)
	movl	8(%r14,%r15), %edi
	callq	_srp_tmr_to_tcm
	movl	%eax, %r13d
	leaq	(%r14,%r15), %rdi
	addq	$4, %rdi
	callq	_scsilun_to_int
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	(%r14,%r15), %r11d
	movq	_TARGET_SCF_ACK_KREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_target_submit_tmr
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_TMR_FUNCTION_REJECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rax
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv tsk_mgmt fn %d for task_tag %lld and cmd tag %lld ch %p sess %p\n"

	.comm	_SRPT_STATE_MGMT,4,2            ## @SRPT_STATE_MGMT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_TARGET_SCF_ACK_KREF,4,2        ## @TARGET_SCF_ACK_KREF
	.comm	_TMR_FUNCTION_REJECTED,4,2      ## @TMR_FUNCTION_REJECTED
	.no_dead_strip	_srpt_handle_tsk_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_handle_tsk_mgmt
_srpt_handle_tsk_mgmt:                  ; @srpt_handle_tsk_mgmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	cmp	x2, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x20, x8, x9, lsl #4
	ldr	w2, [x20]
	ldp	w1, w3, [x20, #8]
	ldr	x5, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x4, x21
	bl	_pr_debug
Lloh2:
	adrp	x8, _SRPT_STATE_MGMT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SRPT_STATE_MGMT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_srpt_set_cmd_state
	ldp	w0, w8, [x20, #8]
	str	w8, [x19, #16]
	bl	_srp_tmr_to_tcm
	mov	x21, x0
	add	x0, x20, #4
	bl	_scsilun_to_int
	mov	x3, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	ldr	w7, [x20]
Lloh8:
	adrp	x8, _TARGET_SCF_ACK_KREF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TARGET_SCF_ACK_KREF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x4, x20
	mov	x5, x21
	bl	_target_submit_tmr
	cbz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _TMR_FUNCTION_REJECTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TMR_FUNCTION_REJECTED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldp	x10, x9, [x19]
	str	w8, [x9]
	ldr	x1, [x10]
	mov	x0, x19
	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
	add	sp, sp, #64
	br	x1
LBB0_2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv tsk_mgmt fn %d for task_tag %lld and cmd tag %lld ch %p sess %p\n"

	.comm	_SRPT_STATE_MGMT,4,2            ; @SRPT_STATE_MGMT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_TARGET_SCF_ACK_KREF,4,2        ; @TARGET_SCF_ACK_KREF
	.comm	_TMR_FUNCTION_REJECTED,4,2      ; @TMR_FUNCTION_REJECTED
	.no_dead_strip	_srpt_handle_tsk_mgmt
.subsections_via_symbols
