	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpl	$0, 16(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_init_completion
	leaq	4(%rbx), %r12
	movq	%r12, %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, %r13
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	movl	(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$20, %edx
	callq	_ib_dma_sync_single_for_cpu
	movq	8(%r13), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_SRP_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	callq	_cpu_to_be64
	movl	%eax, 12(%r12)
	movq	_SRP_TAG_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r15d, %eax
	movl	%eax, (%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r12)
	movl	%r15d, 4(%r12)
	movl	(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$20, %edx
	callq	_ib_dma_sync_single_for_device
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$20, %edx
	callq	_srp_post_send
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SRP_IU_TSK_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_srp_put_tx_iu
	jmp	LBB0_6
LBB0_5:
	movq	_SRP_ABORT_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	cmpl	$1, %eax
	movl	$0, %r14d
	sbbl	%r14d, %r14d
	jmp	LBB0_6
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x21, x3
	mov	x20, x1
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x23, [x8]
	mov	x0, x19
	bl	_init_completion
	add	x24, x19, #4
	mov	x0, x24
	bl	_spin_lock_irq
Lloh0:
	adrp	x25, _SRP_IU_TSK_MGMT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SRP_IU_TSK_MGMT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	___srp_get_tx_iu
	mov	x22, x0
	mov	x0, x24
	bl	_spin_unlock_irq
	cbz	x22, LBB0_2
; %bb.5:
	ldr	w1, [x22]
Lloh2:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x23
	mov	w2, #20
	bl	_ib_dma_sync_single_for_cpu
	ldr	x24, [x22, #8]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh4:
	adrp	x8, _SRP_TSK_MGMT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SRP_TSK_MGMT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	bl	_cpu_to_be64
Lloh7:
	adrp	x8, _SRP_TAG_TSK_MGMT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SRP_TAG_TSK_MGMT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w20
	stp	w21, w0, [x24, #8]
	stp	w8, w20, [x24]
	ldr	w1, [x22]
	ldr	w3, [x26]
	mov	x0, x23
	mov	w2, #20
	bl	_ib_dma_sync_single_for_device
	mov	x0, x19
	mov	x1, x22
	mov	w2, #20
	bl	_srp_post_send
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_srp_put_tx_iu
	b	LBB0_2
LBB0_7:
Lloh10:
	adrp	x8, _SRP_ABORT_TIMEOUT_MS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SRP_ABORT_TIMEOUT_MS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
	cmp	w0, #0
	csetm	w0, eq
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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
