	.file	"extr_fsl-mc-bus.c_fsl_mc_bus_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"of_address_to_resource() failed for %pOF\n"
	.align 8
.LC1:
	.string	"mc_get_version() failed with error %d\n"
	.align 8
.LC2:
	.string	"MC firmware version: %u.%u.%u\n"
	.align 8
.LC3:
	.string	"dprc_get_container_id() failed: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"dprc"
	.text
	.p2align 4
	.type	fsl_mc_bus_probe, @function
fsl_mc_bus_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 104
	.cfi_def_cfa_offset 144
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rsi, rax
	mov	rdi, rbp
	lea	r13, 12[rsp]
	mov	rbx, rax
	call	platform_set_drvdata@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r13
	xor	esi, esi
	call	of_address_to_resource@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	mov	r12d, DWORD PTR 12[rsp]
	mov	rdi, r13
	call	resource_size@PLT
	lea	r9, 24[rsp]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r8d, DWORD PTR FSL_MC_IO_ATOMIC_CONTEXT_PORTAL[rip]
	mov	esi, r12d
	mov	edx, eax
	call	fsl_create_mc_io@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 36[rsp]
	xor	esi, esi
	call	mc_get_version@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	r8d, DWORD PTR 36[rsp]
	mov	ecx, DWORD PTR 40[rsp]
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR 44[rsp]
	call	dev_info@PLT
	lea	rdx, 8[rbx]
	lea	rsi, 12[rbx]
	mov	rdi, rbp
	call	get_mc_addr_translation_ranges@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 8[rsp]
	xor	esi, esi
	call	dprc_get_container_id@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	lea	r13, 48[rsp]
	mov	edx, 32
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	rdi, QWORD PTR 24[rsp]
	lea	rcx, 72[rsp]
	xor	esi, esi
	lea	rdx, 76[rsp]
	call	dprc_get_api_version@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	eax, DWORD PTR FSL_MC_VENDOR_FREESCALE[rip]
	mov	edi, DWORD PTR 64[rsp]
	lea	rsi, .LC4[rip]
	mov	DWORD PTR 68[rsp], eax
	call	strcpy@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	rdx, rbp
	mov	rdi, r13
	mov	rsi, QWORD PTR 24[rsp]
	lea	rcx, 16[rsp]
	mov	DWORD PTR 52[rsp], 1
	mov	DWORD PTR 48[rsp], eax
	mov	QWORD PTR 56[rsp], 0
	call	fsl_mc_device_add@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	rax, QWORD PTR 16[rsp]
	xor	r12d, r12d
	mov	QWORD PTR [rbx], rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L6:
	mov	rdi, QWORD PTR 24[rsp]
	call	fsl_destroy_mc_io@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L6
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fsl_mc_bus_probe, .-fsl_mc_bus_probe
	.comm	GFP_KERNEL,4,4
	.comm	FSL_MC_VENDOR_FREESCALE,4,4
	.comm	FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,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_fsl-mc-bus.c_fsl_mc_bus_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"of_address_to_resource() failed for %pOF\012\000"
	.align	2
.LC1:
	.ascii	"mc_get_version() failed with error %d\012\000"
	.align	2
.LC2:
	.ascii	"MC firmware version: %u.%u.%u\012\000"
	.align	2
.LC3:
	.ascii	"dprc_get_container_id() failed: %d\012\000"
	.align	2
.LC4:
	.ascii	"dprc\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_mc_bus_probe, %function
fsl_mc_bus_probe:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, #0
	ldr	r3, .L16
	sub	sp, sp, #76
	ldr	r2, [r3]
	ldr	r3, .L16+4
	mov	r1, #12
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	mov	r6, r0
	str	r7, [sp, #12]
	str	r7, [sp, #16]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L11
	mov	r1, r5
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r1, r7
	ldr	r0, [r6]
	add	r2, sp, #24
	bl	of_address_to_resource
	subs	r4, r0, #0
	blt	.L12
	add	r0, sp, #24
	ldr	r4, [sp, #24]
	bl	resource_size
	ldr	r1, .L16+8
	add	r3, sp, #16
	ldr	ip, [r1]
	mov	r2, r0
	mov	r1, r4
	str	r3, [sp, #4]
	mov	r0, r6
	mov	r3, r7
	str	ip, [sp]
	bl	fsl_create_mc_io
	subs	r4, r0, #0
	blt	.L1
	mov	r1, r7
	ldr	r0, [sp, #16]
	add	r2, sp, #28
	bl	mc_get_version
	subs	r7, r0, #0
	bne	.L13
	ldr	r2, [sp, #28]
	ldr	r3, [sp, #32]
	ldr	r1, .L16+12
	str	r2, [sp]
	mov	r0, r6
	ldr	r2, [sp, #36]
	bl	dev_info
	mov	r0, r6
	add	r2, r5, #4
	add	r1, r5, #8
	bl	get_mc_addr_translation_ranges
	subs	r4, r0, #0
	blt	.L6
	mov	r1, r7
	ldr	r0, [sp, #16]
	add	r2, sp, #20
	bl	dprc_get_container_id
	subs	r4, r0, #0
	blt	.L14
	mov	r1, r7
	ldr	r0, [sp, #16]
	add	r3, sp, #60
	add	r2, sp, #64
	str	r7, [sp, #40]
	str	r7, [sp, #44]
	str	r7, [sp, #48]
	str	r7, [sp, #52]
	str	r7, [sp, #56]
	str	r7, [sp, #60]
	str	r7, [sp, #64]
	bl	dprc_get_api_version
	subs	r4, r0, #0
	blt	.L6
	ldr	r3, .L16+16
	ldr	r1, .L16+20
	ldr	r3, [r3]
	ldr	r0, [sp, #52]
	str	r3, [sp, #56]
	bl	strcpy
	mov	r1, #1
	ldr	ip, [sp, #20]
	str	r1, [sp, #44]
	mov	r2, r6
	ldr	r1, [sp, #16]
	add	r0, sp, #40
	add	r3, sp, #12
	str	r7, [sp, #48]
	str	ip, [sp, #40]
	bl	fsl_mc_device_add
	subs	r4, r0, #0
	blt	.L6
	mov	r4, r7
	ldr	r3, [sp, #12]
	str	r3, [r5]
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L13:
	mov	r0, r6
	mov	r2, r7
	ldr	r1, .L16+28
	mov	r4, r7
	bl	dev_err
.L6:
	ldr	r0, [sp, #16]
	bl	fsl_destroy_mc_io
	b	.L1
.L12:
	mov	r0, r6
	ldr	r2, [r6]
	ldr	r1, .L16+32
	bl	dev_err
	b	.L1
.L14:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L16+36
	bl	dev_err
	b	.L6
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	.LC5
	.word	FSL_MC_IO_ATOMIC_CONTEXT_PORTAL
	.word	.LC2
	.word	FSL_MC_VENDOR_FREESCALE
	.word	.LC4
	.word	ENOMEM
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	fsl_mc_bus_probe, .-fsl_mc_bus_probe
	.comm	GFP_KERNEL,4,4
	.comm	FSL_MC_VENDOR_FREESCALE,4,4
	.comm	FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
