	.file	"extr_smb_rq.c_smb_rq_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	smb_rq_alloc
	.type	smb_rq_alloc, @function
smb_rq_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	mov	edx, DWORD PTR M_WAITOK[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	mov	esi, DWORD PTR M_SMBRQ[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, 4
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	malloc@PLT
	test	rax, rax
	je	.L7
	mov	rsi, r12
	mov	rcx, r14
	mov	edx, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	smb_rq_init@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR SMBR_ALLOCED[rip]
	or	DWORD PTR 0[rbp], eax
	test	r12d, r12d
	jne	.L8
	mov	QWORD PTR [rbx], rbp
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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	rdi, rbp
	call	smb_rq_done@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	smb_rq_alloc, .-smb_rq_alloc
	.comm	SMBR_ALLOCED,4,4
	.comm	M_WAITOK,4,4
	.comm	M_SMBRQ,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_smb_rq.c_smb_rq_alloc.c"
	.text
	.align	2
	.global	smb_rq_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	smb_rq_alloc, %function
smb_rq_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r2
	ldr	r1, .L9
	ldr	r2, .L9+4
	mov	r5, r0
	ldr	r2, [r2]
	mov	r0, #4
	ldr	r1, [r1]
	mov	r8, r3
	bl	malloc
	subs	r4, r0, #0
	beq	.L7
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	bl	smb_rq_init
	ldr	r2, .L9+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	subs	r5, r0, #0
	orr	r3, r3, r2
	str	r3, [r4]
	streq	r4, [r8]
	bne	.L8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+12
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r4
	bl	smb_rq_done
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	M_SMBRQ
	.word	M_WAITOK
	.word	SMBR_ALLOCED
	.word	ENOMEM
	.size	smb_rq_alloc, .-smb_rq_alloc
	.comm	SMBR_ALLOCED,4,4
	.comm	M_WAITOK,4,4
	.comm	M_SMBRQ,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
