	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_send_tsk_mgmt
_srp_send_tsk_mgmt:                     ## @srp_send_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r12d
	cmpl	$0, 16(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	16(%rax), %r14
	movq	(%rcx), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	12(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	_SRP_IU_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___srp_get_tx_iu
	movq	%rax, %r15
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$1, (%r15)
	movl	4(%r15), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$20, %edx
	callq	_ib_dma_sync_single_for_cpu
	movq	8(%r15), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_SRP_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	leaq	12(%r14), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_int_to_scsilun
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %eax
	incl	%eax
	movq	_SRP_TAG_TSK_MGMT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_init_completion
	movl	4(%r15), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$20, %edx
	callq	_ib_dma_sync_single_for_device
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$20, %edx
	callq	_srp_post_send
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SRP_IU_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_srp_put_tx_iu
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_6:
	movq	_SRP_ABORT_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movl	%eax, %r14d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.8:
	movl	4(%rbx), %eax
	movl	%eax, (%rcx)
LBB0_9:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	setle	%r12b
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	shrl	$31, %r14d
	movl	%r14d, %edi
	callq	_WARN_ON_ONCE
	negl	%r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SRP_IU_TSK_MGMT,4,2            ## @SRP_IU_TSK_MGMT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_SRP_TSK_MGMT,4,2               ## @SRP_TSK_MGMT
	.comm	_SRP_TAG_TSK_MGMT,4,2           ## @SRP_TAG_TSK_MGMT
	.comm	_SRP_ABORT_TIMEOUT_MS,4,2       ## @SRP_ABORT_TIMEOUT_MS
	.no_dead_strip	_srp_send_tsk_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_send_tsk_mgmt
_srp_send_tsk_mgmt:                     ; @srp_send_tsk_mgmt
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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_4:
	mov	x20, x4
	mov	x24, x3
	mov	x26, x2
	mov	x25, x1
	ldp	x8, x19, [x8, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
	mov	x0, x19
	bl	_mutex_lock
	add	x27, x21, #12
	mov	x0, x27
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _SRP_IU_TSK_MGMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRP_IU_TSK_MGMT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	___srp_get_tx_iu
	mov	x22, x0
	mov	x0, x27
	bl	_spin_unlock_irq
	cbz	x22, LBB0_7
; %bb.5:
	mov	w8, #1
	str	w8, [x22]
	ldr	w1, [x22, #4]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w2, #20
	bl	_ib_dma_sync_single_for_cpu
	ldr	x28, [x22, #8]
	mov	x0, x28
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh6:
	adrp	x8, _SRP_TSK_MGMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SRP_TSK_MGMT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x28, #16]
	add	x1, x28, #12
	mov	x0, x26
	bl	_int_to_scsilun
	stp	w25, w24, [x28, #4]
	mov	x0, x27
	bl	_spin_lock_irq
	ldr	w8, [x21]
	add	w8, w8, #1
Lloh9:
	adrp	x9, _SRP_TAG_TSK_MGMT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SRP_TAG_TSK_MGMT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x24, x21
	str	w8, [x24], #8
	str	w8, [x28]
	mov	x0, x27
	bl	_spin_unlock_irq
	mov	x0, x24
	bl	_init_completion
	ldr	w1, [x22, #4]
Lloh12:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w2, #20
	bl	_ib_dma_sync_single_for_device
	mov	x0, x21
	mov	x1, x22
	mov	w2, #20
	bl	_srp_post_send
	cbz	x0, LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _SRP_IU_TSK_MGMT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SRP_IU_TSK_MGMT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_srp_put_tx_iu
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #-1
	b	LBB0_3
LBB0_8:
Lloh18:
	adrp	x8, _SRP_ABORT_TIMEOUT_MS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SRP_ABORT_TIMEOUT_MS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x24
	bl	_wait_for_completion_timeout
	mov	x22, x0
	cbz	x20, LBB0_11
; %bb.9:
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	w8, [x21, #4]
	str	w8, [x20]
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	lsr	w0, w22, #31
	bl	_WARN_ON_ONCE
	cmp	w22, #1
	csetm	w0, lt
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SRP_IU_TSK_MGMT,4,2            ; @SRP_IU_TSK_MGMT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_SRP_TSK_MGMT,4,2               ; @SRP_TSK_MGMT
	.comm	_SRP_TAG_TSK_MGMT,4,2           ; @SRP_TAG_TSK_MGMT
	.comm	_SRP_ABORT_TIMEOUT_MS,4,2       ; @SRP_ABORT_TIMEOUT_MS
	.no_dead_strip	_srp_send_tsk_mgmt
.subsections_via_symbols
