	.file	"extr_ib_srpt.c_srpt_alloc_ioctx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	srpt_alloc_ioctx, @function
srpt_alloc_ioctx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	edi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	kmem_cache_alloc@PLT
	mov	DWORD PTR [r12], eax
	test	eax, eax
	je	.L3
	mov	rdi, rbp
	call	kmem_cache_size@PLT
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r13d
	mov	edx, eax
	call	ib_dma_map_single@PLT
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 4[r12], eax
	mov	esi, eax
	call	ib_dma_mapping_error@PLT
	test	rax, rax
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	call	kmem_cache_free@PLT
.L3:
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	srpt_alloc_ioctx, .-srpt_alloc_ioctx
	.comm	GFP_KERNEL,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_ib_srpt.c_srpt_alloc_ioctx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	srpt_alloc_ioctx, %function
srpt_alloc_ioctx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L16
	mov	r7, r0
	mov	r0, r1
	ldr	r1, [r5]
	mov	r6, r2
	mov	r8, r3
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, [r5]
	mov	r0, r6
	bl	kmem_cache_alloc
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4]
	beq	.L3
	mov	r0, r6
	ldr	r9, [r7]
	bl	kmem_cache_size
	mov	r3, r8
	mov	r2, r0
	mov	r1, r5
	mov	r0, r9
	bl	ib_dma_map_single
	mov	r1, r0
	ldr	r0, [r7]
	str	r1, [r4, #4]
	bl	ib_dma_mapping_error
	cmp	r0, #0
	bne	.L15
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r0, r6
	ldr	r1, [r4]
	bl	kmem_cache_free
.L3:
	mov	r0, r4
	mov	r4, #0
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.size	srpt_alloc_ioctx, .-srpt_alloc_ioctx
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
