	.file	"extr_ipr.c_ipr_target_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipr_target_alloc, @function
ipr_target_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	add	rdi, 8
	call	dev_to_shost@PLT
	xor	esi, esi
	mov	r13, QWORD PTR [rax]
	mov	r12, rax
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	spin_lock_irqsave@PLT
	mov	rdi, rbx
	call	ipr_find_starget@PLT
	mov	QWORD PTR [rbx], 0
	test	rax, rax
	je	.L6
	mov	rdi, rax
	mov	rbp, rax
	call	ipr_is_gata@PLT
	test	rax, rax
	jne	.L16
.L6:
	mov	rax, QWORD PTR 0[r13]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_unlock_irqrestore@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L14
	mov	rdx, r12
	lea	rdi, 8[r13]
	lea	rsi, sata_port_info[rip]
	call	ata_sas_port_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 0[r13]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_lock_irqsave@PLT
	mov	QWORD PTR 16[r14], r13
	mov	QWORD PTR 8[r14], r12
	mov	QWORD PTR [r14], rbp
	mov	QWORD PTR 0[rbp], r14
	mov	QWORD PTR [r12], r14
	mov	QWORD PTR [rbx], r14
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r14
	call	kfree@PLT
.L14:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipr_target_alloc, .-ipr_target_alloc
	.comm	sata_port_info,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_ipr.c_ipr_target_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipr_target_alloc, %function
ipr_target_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r0, r0, #4
	bl	dev_to_shost
	ldr	r7, [r0]
	mov	r1, #0
	ldr	r3, [r7]
	mov	r6, r0
	ldr	r0, [r3]
	bl	spin_lock_irqsave
	mov	r0, r4
	bl	ipr_find_starget
	mov	r3, #0
	subs	r5, r0, #0
	str	r3, [r4]
	beq	.L6
	bl	ipr_is_gata
	cmp	r0, #0
	bne	.L16
.L6:
	ldr	r3, [r7]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, [r7]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_unlock_irqrestore
	ldr	r3, .L17
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r8, r0, #0
	beq	.L14
	mov	r2, r6
	ldr	r1, .L17+4
	add	r0, r7, #4
	bl	ata_sas_port_alloc
	subs	r6, r0, #0
	beq	.L5
	ldr	r3, [r7]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_lock_irqsave
	stm	r8, {r5, r6, r7}
	str	r8, [r5]
	str	r8, [r6]
	str	r8, [r4]
	b	.L6
.L5:
	mov	r0, r8
	bl	kfree
.L14:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	sata_port_info
	.word	ENOMEM
	.size	ipr_target_alloc, .-ipr_target_alloc
	.comm	sata_port_info,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
