	.file	"extr_target_core_xcopy.c_target_xcopy_write_destination.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to allocate xcopy_pt_cmd\n"
	.align 8
.LC1:
	.string	"XCOPY: Built WRITE_16: LBA: %llu Sectors: %u Length: %u\n"
	.text
	.p2align 4
	.type	target_xcopy_write_destination, @function
target_xcopy_write_destination:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14d, DWORD PTR [rdx]
	mov	QWORD PTR 24[rsp], rdi
	mov	edi, 32
	imul	r14d, r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR XCOL_SOURCE_RECV_OP[rip]
	cmp	QWORD PTR [rsi], rax
	sete	al
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	movzx	eax, al
	mov	DWORD PTR 12[rsp], eax
	call	kzalloc@PLT
	test	rax, rax
	je	.L9
	lea	rdi, 24[rax]
	mov	r15, rax
	call	init_completion@PLT
	lea	r11, 32[rsp]
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r11
	mov	QWORD PTR 16[rsp], r11
	call	memset@PLT
	movzx	eax, BYTE PTR WRITE_16[rip]
	lea	rsi, 34[rsp]
	mov	rdi, rbp
	mov	BYTE PTR 32[rsp], al
	call	put_unaligned_be64@PLT
	lea	rsi, 42[rsp]
	mov	edi, r12d
	call	put_unaligned_be32@PLT
	mov	edx, r12d
	mov	ecx, r14d
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	pr_debug@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	push	QWORD PTR 16[r15]
	.cfi_def_cfa_offset 144
	xor	r9d, r9d
	mov	r8d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	ecx, r14d
	mov	rdi, r15
	lea	rdx, xcopy_pt_sess[rip]
	lea	rsi, xcopy_pt_tfo[rip]
	call	transport_init_se_cmd@PLT
	mov	r11, QWORD PTR 32[rsp]
	mov	rdx, r13
	xor	r9d, r9d
	mov	QWORD PTR 24[rbx], r15
	mov	r8d, DWORD PTR 28[rsp]
	mov	rsi, rbx
	mov	rdi, r15
	mov	rcx, r11
	call	target_xcopy_setup_pt_cmd@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	test	r12d, r12d
	js	.L10
	mov	rdi, r15
	call	target_xcopy_issue_pt_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[r15]
	mov	rcx, QWORD PTR 24[rsp]
	xor	esi, esi
	mov	rdi, r15
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR 4[rcx], edx
	mov	edx, DWORD PTR SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC[rip]
	not	edx
	and	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 12[rbx]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 8[rax], edx
	call	transport_generic_free_cmd@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 4[r15]
	mov	rbx, QWORD PTR 24[rsp]
	xor	esi, esi
	mov	rdi, r15
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC[rip]
	not	eax
	and	DWORD PTR [r15], eax
	call	transport_generic_free_cmd@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	target_xcopy_write_destination, .-target_xcopy_write_destination
	.comm	xcopy_pt_tfo,4,4
	.comm	xcopy_pt_sess,4,4
	.comm	XCOL_SOURCE_RECV_OP,8,8
	.comm	WRITE_16,1,1
	.comm	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_target_core_xcopy.c_target_xcopy_write_destination.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to allocate xcopy_pt_cmd\012\000"
	.align	2
.LC1:
	.ascii	"XCOPY: Built WRITE_16: LBA: %llu Sectors: %u Length"
	.ascii	": %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	target_xcopy_write_destination, %function
target_xcopy_write_destination:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	ip, r0
	mov	r7, r2
	ldr	r2, .L13
	ldr	r1, .L13+4
	sub	sp, sp, #52
	ldr	r10, [r6]
	ldr	r2, [r2]
	mov	r9, r3
	ldr	r3, .L13+8
	str	ip, [sp, #20]
	mov	r0, #24
	ldr	r1, [r1]
	ldr	r8, [r7]
	ldr	fp, [sp, #88]
	sub	r10, r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	kzalloc
	clz	r10, r10
	subs	r4, r0, #0
	mul	r8, fp, r8
	lsr	r10, r10, #5
	beq	.L9
	mov	r5, #0
	add	r0, r4, #20
	bl	init_completion
	ldr	r3, .L13+12
	add	r1, sp, #30
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r9
	str	r5, [sp, #28]
	str	r5, [sp, #32]
	strb	r3, [sp, #28]
	str	r5, [sp, #36]
	str	r5, [sp, #40]
	bl	put_unaligned_be64
	add	r1, sp, #38
	mov	r0, fp
	bl	put_unaligned_be32
	mov	r2, r9
	asr	r3, r9, #31
	ldr	r0, .L13+16
	str	r8, [sp, #4]
	str	fp, [sp]
	bl	pr_debug
	ldr	r3, .L13+20
	ldr	r2, [r4, #16]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, r8
	str	r1, [sp]
	str	r2, [sp, #8]
	ldr	r1, .L13+24
	ldr	r2, .L13+28
	str	r5, [sp, #4]
	bl	transport_init_se_cmd
	mov	r2, r7
	str	r5, [sp, #4]
	mov	r1, r6
	str	r4, [r6, #16]
	mov	r0, r4
	add	r3, sp, #28
	str	r10, [sp]
	bl	target_xcopy_setup_pt_cmd
	subs	r7, r0, #0
	blt	.L10
	mov	r0, r4
	bl	target_xcopy_issue_pt_cmd
	subs	r7, r0, #0
	movge	r7, r5
	blt	.L11
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, [r6, #12]
	ldr	r1, .L13+32
	ldr	r2, [r3]
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	bic	r2, r2, r1
	mov	r1, r5
	ldmib	r6, {ip, lr}
	ldr	r5, [sp, #20]
	str	r0, [r5, #4]
	mov	r0, r4
	str	r2, [r3]
	str	lr, [r3, #12]
	str	ip, [r3, #8]
	bl	transport_generic_free_cmd
	b	.L1
.L9:
	ldr	r0, .L13+36
	bl	pr_err
	ldr	r3, .L13+40
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L11:
	ldr	r2, .L13+32
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [sp, #20]
	ldr	r2, [r4, #4]
	bic	r3, r3, r1
	str	r2, [r0, #4]
	mov	r1, r5
	mov	r0, r4
	str	r3, [r4]
	bl	transport_generic_free_cmd
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	XCOL_SOURCE_RECV_OP
	.word	GFP_KERNEL
	.word	.LC2
	.word	WRITE_16
	.word	.LC1
	.word	DMA_TO_DEVICE
	.word	xcopy_pt_tfo
	.word	xcopy_pt_sess
	.word	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC
	.word	.LC0
	.word	ENOMEM
	.size	target_xcopy_write_destination, .-target_xcopy_write_destination
	.comm	xcopy_pt_tfo,4,4
	.comm	xcopy_pt_sess,4,4
	.comm	XCOL_SOURCE_RECV_OP,4,4
	.comm	WRITE_16,1,1
	.comm	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
