	.file	"extr_bcm-pdc-mailbox.c_pdc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PDC device cannot perform DMA. Error %d."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"pdc rings"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"PDC register region res.start = %pa, res.end = %pa"
	.section	.rodata.str1.1
.LC3:
	.string	"Failed to map registers: %d\n"
.LC4:
	.string	"pdc_probe() successful"
	.text
	.p2align 4
	.type	pdc_probe, @function
pdc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 32
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L11
	mov	QWORD PTR 24[rax], rbp
	mov	rsi, rax
	mov	rdi, rbp
	mov	r12, rax
	call	platform_set_drvdata@PLT
	mov	eax, DWORD PTR pdcg[rip]
	mov	edi, 39
	mov	DWORD PTR 16[r12], eax
	add	eax, 1
	mov	DWORD PTR pdcg[rip], eax
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dma_set_mask_and_coherent@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L13
	mov	ecx, DWORD PTR RING_ALIGN[rip]
	mov	edx, DWORD PTR PDC_RING_SIZE[rip]
	xor	r8d, r8d
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	dma_pool_create@PLT
	mov	DWORD PTR [r12], eax
	test	eax, eax
	je	.L11
	mov	rsi, r12
	mov	rdi, rbp
	call	pdc_dt_read@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L14
.L6:
	mov	edi, DWORD PTR [r12]
	call	dma_pool_destroy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L11:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	r13, rax
	test	rax, rax
	je	.L15
	lea	rdx, 4[rax]
	mov	rcx, rax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, rbp
	mov	rsi, r13
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 12[r12], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	rdi, r12
	call	pdc_rx_buf_pool_create@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	mov	rdi, r12
	lea	r14, 8[r12]
	call	pdc_hw_init@PLT
	mov	esi, DWORD PTR pdc_tasklet_cb[rip]
	mov	rdx, r12
	mov	rdi, r14
	call	tasklet_init@PLT
	mov	rdi, r12
	call	pdc_interrupts_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, r12
	call	pdc_mb_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, r12
	call	pdc_setup_debugfs@PLT
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r13d, DWORD PTR PDC_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 12[r12]
	call	PTR_ERR@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r13d, eax
	call	dev_err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r14
	call	tasklet_kill@PLT
	mov	edi, DWORD PTR 4[r12]
	call	dma_pool_destroy@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	pdc_probe, .-pdc_probe
	.comm	pdcg,4,4
	.comm	pdc_tasklet_cb,4,4
	.comm	RING_ALIGN,4,4
	.comm	PDC_SUCCESS,4,4
	.comm	PDC_RING_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_bcm-pdc-mailbox.c_pdc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PDC device cannot perform DMA. Error %d.\000"
	.align	2
.LC1:
	.ascii	"pdc rings\000"
	.align	2
.LC2:
	.ascii	"PDC register region res.start = %pa, res.end = %pa\000"
	.align	2
.LC3:
	.ascii	"Failed to map registers: %d\012\000"
	.align	2
.LC4:
	.ascii	"pdc_probe() successful\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdc_probe, %function
pdc_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	mov	r1, #24
	ldr	r2, [r3]
	sub	sp, sp, #12
	mov	r6, r0
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L11
	mov	r1, r5
	mov	r0, r6
	str	r6, [r5, #20]
	bl	platform_set_drvdata
	ldr	r2, .L17+4
	mov	r0, #39
	ldr	r3, [r2]
	str	r3, [r5, #16]
	add	r3, r3, #1
	str	r3, [r2]
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	dma_set_mask_and_coherent
	subs	r4, r0, #0
	bne	.L13
	ldr	r3, .L17+8
	ldr	r2, .L17+12
	str	r4, [sp]
	mov	r1, r6
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, .L17+16
	bl	dma_pool_create
	cmp	r0, #0
	str	r0, [r5]
	beq	.L11
	mov	r1, r5
	mov	r0, r6
	bl	pdc_dt_read
	subs	r4, r0, #0
	beq	.L14
.L6:
	ldr	r0, [r5]
	bl	dma_pool_destroy
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L17+24
	bl	dev_warn
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r3, .L17+28
	mov	r2, r4
	mov	r0, r6
	ldr	r1, [r3]
	bl	platform_get_resource
	subs	r4, r0, #0
	beq	.L15
	mov	r3, r4
	add	r2, r4, #4
	ldr	r1, .L17+32
	mov	r0, r6
	bl	dev_dbg
	mov	r1, r4
	mov	r0, r6
	bl	devm_ioremap_resource
	str	r0, [r5, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
	mov	r0, r5
	bl	pdc_rx_buf_pool_create
	subs	r4, r0, #0
	bne	.L6
	mov	r0, r5
	bl	pdc_hw_init
	ldr	r3, .L17+36
	add	r7, r5, #8
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r7
	bl	tasklet_init
	mov	r0, r5
	bl	pdc_interrupts_init
	subs	r4, r0, #0
	bne	.L9
	mov	r0, r5
	bl	pdc_mb_init
	subs	r4, r0, #0
	bne	.L9
	mov	r0, r5
	bl	pdc_setup_debugfs
	mov	r0, r6
	ldr	r1, .L17+40
	bl	dev_dbg
	ldr	r3, .L17+44
	ldr	r4, [r3]
	b	.L1
.L16:
	ldr	r0, [r5, #12]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L17+48
	mov	r0, r6
	mov	r2, r4
	bl	dev_err
	b	.L6
.L15:
	ldr	r3, .L17+52
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L9:
	mov	r0, r7
	bl	tasklet_kill
	ldr	r0, [r5, #4]
	bl	dma_pool_destroy
	b	.L6
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	pdcg
	.word	RING_ALIGN
	.word	PDC_RING_SIZE
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	IORESOURCE_MEM
	.word	.LC2
	.word	pdc_tasklet_cb
	.word	.LC4
	.word	PDC_SUCCESS
	.word	.LC3
	.word	ENODEV
	.size	pdc_probe, .-pdc_probe
	.comm	pdcg,4,4
	.comm	pdc_tasklet_cb,4,4
	.comm	RING_ALIGN,4,4
	.comm	PDC_SUCCESS,4,4
	.comm	PDC_RING_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
