	.file	"extr_sky2.c_sky2_alloc_buffers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sky2_alloc_buffers, @function
sky2_alloc_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, 48[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 56[rdi]
	mov	eax, DWORD PTR [rdi]
	mov	edi, DWORD PTR 0[rbp]
	lea	esi, 0[0+rax*4]
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 40[rbx], rax
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, 4
	call	kcalloc@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR RX_LE_BYTES[rip]
	lea	rdx, 24[rbx]
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR RX_LE_BYTES[rip]
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	call	kcalloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	sky2_alloc_buffers, .-sky2_alloc_buffers
	.comm	RX_LE_BYTES,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_sky2.c_sky2_alloc_buffers.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sky2_alloc_buffers, %function
sky2_alloc_buffers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r2], #28
	ldr	r5, [r0, #32]
	mov	r4, r0
	lsl	r1, r1, #2
	ldr	r0, [r5]
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L4
	ldr	r6, .L16
	mov	r1, #4
	ldr	r2, [r6]
	ldr	r0, [r4]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r4, #20]
	beq	.L4
	ldr	r7, .L16+4
	ldr	r0, [r5]
	ldr	r1, [r7]
	add	r2, r4, #16
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L4
	mov	r1, #0
	ldr	r2, [r7]
	bl	memset
	mov	r1, #4
	ldr	r2, [r6]
	ldr	r0, [r4, #4]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L4
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	RX_LE_BYTES
	.word	ENOMEM
	.size	sky2_alloc_buffers, .-sky2_alloc_buffers
	.comm	RX_LE_BYTES,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
