	.file	"extr_ar934x_nfc.c_ar934x_nfc_alloc_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no memory for DMA buffer\n"
.LC1:
	.string	"buf:%p size:%u\n"
	.text
	.p2align 4
	.type	ar934x_nfc_alloc_buf, @function
ar934x_nfc_alloc_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, 20[rdi]
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 16[rdi]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L6
	mov	DWORD PTR 0[rbp], r12d
	mov	ecx, r12d
	mov	rdi, rbp
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	call	nfc_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ar934x_nfc_alloc_buf, .-ar934x_nfc_alloc_buf
	.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_ar934x_nfc.c_ar934x_nfc_alloc_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no memory for DMA buffer\012\000"
	.align	2
.LC1:
	.ascii	"buf:%p size:%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar934x_nfc_alloc_buf, %function
ar934x_nfc_alloc_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	add	r2, r0, #12
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #8]
	mov	r5, r1
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L6
	mov	r2, r0
	mov	r3, r5
	mov	r0, r4
	ldr	r1, .L7+4
	str	r5, [r4]
	bl	nfc_dbg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, [r4, #8]
	ldr	r1, .L7+8
	bl	dev_err
	ldr	r3, .L7+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	GFP_KERNEL
	.word	.LC1
	.word	.LC0
	.word	ENOMEM
	.size	ar934x_nfc_alloc_buf, .-ar934x_nfc_alloc_buf
	.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
