	.file	"extr_scsi_transport_fc.c_fc_req_to_bsgjob.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fc_req_to_bsgjob, @function
fc_req_to_bsgjob:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	call	to_fc_internal@PLT
	mov	rdi, QWORD PTR 24[r15]
	mov	r14, QWORD PTR 32[r15]
	mov	r13, rax
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR [rax]
	add	rdi, 104
	call	kzalloc@PLT
	test	rax, rax
	je	.L16
	mov	QWORD PTR 24[r15], rax
	mov	rbp, rax
	mov	QWORD PTR 96[rax], rbx
	mov	QWORD PTR 88[rax], r12
	mov	QWORD PTR 80[rax], r15
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR [rax], 0
	jne	.L18
.L4:
	lea	rdi, 64[rbp]
	call	spin_lock_init@PLT
	mov	rax, QWORD PTR 16[r15]
	cmp	QWORD PTR [r15], 0
	mov	QWORD PTR 56[rbp], rax
	mov	eax, DWORD PTR 12[r15]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR 8[r15]
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR SCSI_SENSE_BUFFERSIZE[rip]
	mov	DWORD PTR 40[rbp], eax
	jne	.L5
.L9:
	test	r14, r14
	je	.L7
	cmp	QWORD PTR [r14], 0
	jne	.L19
.L7:
	test	r12, r12
	mov	rdi, r12
	mov	eax, DWORD PTR fc_bsg_jobdone[rip]
	cmove	rdi, rbx
	mov	DWORD PTR 24[rbp], eax
	mov	QWORD PTR 16[rbp], rdi
	call	get_device@PLT
	mov	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L18:
	.cfi_restore_state
	lea	rax, 104[rbp]
	mov	QWORD PTR 72[rbp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, 32[rbp]
	mov	rsi, r14
	call	fc_bsg_map_buffer@PLT
	test	eax, eax
	je	.L7
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
.L8:
	mov	rdi, rbp
	call	kfree@PLT
.L16:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L5:
	.cfi_restore_state
	lea	rdi, 8[rbp]
	mov	rsi, r15
	call	fc_bsg_map_buffer@PLT
	test	eax, eax
	je	.L9
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fc_req_to_bsgjob, .-fc_req_to_bsgjob
	.comm	fc_bsg_jobdone,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_scsi_transport_fc.c_fc_req_to_bsgjob.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fc_req_to_bsgjob, %function
fc_req_to_bsgjob:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r0, [r0, #4]
	mov	r5, r2
	mov	r6, r1
	bl	to_fc_internal
	mov	r8, r0
	ldr	r0, [r5, #16]
	ldr	r9, [r5, #20]
	bl	BUG_ON
	ldr	r2, [r8]
	ldr	r3, .L25
	ldr	r0, [r2]
	ldr	r1, [r3]
	add	r0, r0, #56
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L22
	ldr	r3, [r8]
	add	r0, r4, #36
	ldr	r3, [r3]
	str	r4, [r5, #16]
	cmp	r3, #0
	addne	r3, r4, #56
	strne	r3, [r4, #40]
	str	r7, [r4, #52]
	str	r6, [r4, #48]
	str	r5, [r4, #44]
	bl	spin_lock_init
	ldr	r3, .L25+4
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, [r5, #12]
	cmp	r1, #0
	ldr	r1, [r5, #8]
	str	r3, [r4, #32]
	ldr	r3, [r5, #4]
	str	r1, [r4, #28]
	str	r2, [r4, #20]
	str	r3, [r4, #24]
	bne	.L5
.L9:
	cmp	r9, #0
	beq	.L7
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L24
.L7:
	cmp	r6, #0
	movne	r0, r6
	moveq	r0, r7
	ldr	r3, .L25+8
	str	r0, [r4, #8]
	ldr	r3, [r3]
	str	r3, [r4, #12]
	bl	get_device
	mov	r3, #1
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	mov	r1, r9
	add	r0, r4, #16
	bl	fc_bsg_map_buffer
	cmp	r0, #0
	beq	.L7
	ldr	r0, [r4, #4]
	bl	kfree
.L8:
	mov	r0, r4
	bl	kfree
.L22:
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, r5
	add	r0, r4, #4
	bl	fc_bsg_map_buffer
	cmp	r0, #0
	beq	.L9
	b	.L8
.L26:
	.align	2
.L25:
	.word	GFP_KERNEL
	.word	SCSI_SENSE_BUFFERSIZE
	.word	fc_bsg_jobdone
	.word	ENOMEM
	.size	fc_req_to_bsgjob, .-fc_req_to_bsgjob
	.comm	fc_bsg_jobdone,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
