	.file	"extr_libsrp.c_srp_target_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	srp_target_alloc
	.type	srp_target_alloc, @function
srp_target_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	add	rdi, 36
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_init@PLT
	mov	QWORD PTR 24[rbp], r14
	mov	rdx, r13
	mov	rsi, r12
	mov	QWORD PTR 0[rbp], r13
	mov	rdi, r14
	mov	QWORD PTR 8[rbp], r12
	call	srp_ring_alloc@PLT
	mov	DWORD PTR 16[rbp], eax
	test	eax, eax
	jne	.L2
.L6:
	mov	r14d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r14d
	pop	r13
	.cfi_def_cfa_offset 16
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, eax
	lea	rdi, 32[rbp]
	mov	rsi, r12
	call	srp_iu_pool_alloc@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, QWORD PTR 24[rbp]
	mov	rsi, rbp
	call	dev_set_drvdata@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	rcx, r13
	mov	rdx, r12
	call	srp_ring_free@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	srp_target_alloc, .-srp_target_alloc
	.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_libsrp.c_srp_target_alloc.c"
	.text
	.align	2
	.global	srp_target_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	srp_target_alloc, %function
srp_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
	mov	r7, r1
	mov	r5, r2
	mov	r6, r3
	add	r0, r0, #20
	bl	spin_lock_init
	mov	r0, r7
	mov	r2, r6
	mov	r1, r5
	str	r7, [r4, #12]
	str	r6, [r4]
	str	r5, [r4, #4]
	bl	srp_ring_alloc
	cmp	r0, #0
	str	r0, [r4, #8]
	bne	.L2
.L6:
	ldr	r3, .L9
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r2, r0
	mov	r1, r5
	add	r0, r4, #16
	bl	srp_iu_pool_alloc
	subs	r7, r0, #0
	bne	.L8
	mov	r1, r4
	ldr	r0, [r4, #12]
	bl	dev_set_drvdata
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	srp_ring_free
	b	.L6
.L10:
	.align	2
.L9:
	.word	ENOMEM
	.size	srp_target_alloc, .-srp_target_alloc
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
