	.file	"extr_arm-smmu-v3.c_arm_smmu_device_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to allocate arm_smmu_device\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"MMIO region too small (%pr)\n"
.LC2:
	.string	"combined"
.LC3:
	.string	"eventq"
.LC4:
	.string	"priq"
.LC5:
	.string	"gerror"
.LC6:
	.string	"smmu3.%pa"
.LC7:
	.string	"Failed to register iommu\n"
	.text
	.p2align 4
	.type	arm_smmu_device_probe, @function
arm_smmu_device_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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L17
	cmp	QWORD PTR 8[rbp], 0
	mov	QWORD PTR 24[rax], rbp
	mov	rbx, rax
	mov	rsi, rax
	mov	rdi, rbp
	jne	.L18
	call	arm_smmu_device_acpi_probe@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	r13d, eax
	neg	r12d
	cmp	r12d, eax
	je	.L1
.L5:
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rdi, rax
	mov	r14, rax
	call	resource_size@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	arm_smmu_resource_size@PLT
	add	r12, 1
	cmp	r12, rax
	jl	.L19
	mov	eax, DWORD PTR [r14]
	mov	rdi, rbp
	mov	rsi, r14
	mov	DWORD PTR 4[rsp], eax
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 20[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	test	eax, eax
	jle	.L8
	mov	DWORD PTR [rbx], eax
.L9:
	mov	rdi, rbx
	call	arm_smmu_device_hw_probe@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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
.L18:
	.cfi_restore_state
	call	arm_smmu_device_dt_probe@PLT
	mov	r13d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbx
	call	arm_smmu_init_structures@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, rbx
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	xor	esi, esi
	test	r13d, r13d
	mov	rdi, rbx
	setne	sil
	call	arm_smmu_device_reset@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	lea	r13, 8[rbx]
	lea	r8, 4[rsp]
	xor	edx, edx
	mov	rsi, rbp
	lea	rcx, .LC6[rip]
	mov	rdi, r13
	call	iommu_device_sysfs_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	lea	rsi, arm_smmu_ops[rip]
	mov	rdi, r13
	call	iommu_device_set_ops@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	iommu_device_set_fwnode@PLT
	mov	rdi, r13
	call	iommu_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	lea	rsi, arm_smmu_ops[rip]
	cmp	QWORD PTR platform_bus_type[rip], rsi
	je	.L1
	lea	rdi, platform_bus_type[rip]
	call	bus_set_iommu@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR 20[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	test	eax, eax
	jle	.L10
	mov	DWORD PTR 16[rbx], eax
.L10:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	test	eax, eax
	jle	.L11
	mov	DWORD PTR 12[rbx], eax
.L11:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	test	eax, eax
	jle	.L9
	mov	DWORD PTR 4[rbx], eax
	jmp	.L9
.L23:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arm_smmu_device_probe, .-arm_smmu_device_probe
	.comm	platform_bus_type,8,8
	.comm	pci_bus_type,8,8
	.comm	arm_smmu_ops,4,4
	.comm	amba_bustype,8,8
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,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_arm-smmu-v3.c_arm_smmu_device_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate arm_smmu_device\012\000"
	.align	2
.LC1:
	.ascii	"MMIO region too small (%pr)\012\000"
	.align	2
.LC2:
	.ascii	"combined\000"
	.align	2
.LC3:
	.ascii	"eventq\000"
	.align	2
.LC4:
	.ascii	"priq\000"
	.align	2
.LC5:
	.ascii	"gerror\000"
	.align	2
.LC6:
	.ascii	"smmu3.%pa\000"
	.align	2
.LC7:
	.ascii	"Failed to register iommu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_smmu_device_probe, %function
arm_smmu_device_probe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25
	sub	sp, sp, #24
	ldr	r2, [r3]
	ldr	r3, .L25+4
	mov	r1, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L17
	ldr	r3, [r5, #4]
	mov	r1, r4
	cmp	r3, #0
	mov	r0, r5
	str	r5, [r4, #24]
	bne	.L18
	bl	arm_smmu_device_acpi_probe
	ldr	r3, .L25+8
	mov	r6, r0
	ldr	r2, [r3]
	cmn	r0, r2
	rsb	r2, r2, #0
	beq	.L1
.L5:
	ldr	r3, .L25+12
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	platform_get_resource
	mov	r8, r0
	bl	resource_size
	mov	r7, r0
	mov	r0, r4
	bl	arm_smmu_resource_size
	add	r7, r7, #1
	cmp	r7, r0
	blt	.L19
	ldr	r3, [r8]
	mov	r1, r8
	mov	r0, r5
	str	r3, [sp, #16]
	bl	devm_ioremap_resource
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	mov	r0, r5
	ldr	r1, .L25+16
	bl	platform_get_irq_byname
	cmp	r0, #0
	strgt	r0, [r4]
	ble	.L21
.L9:
	mov	r0, r4
	bl	arm_smmu_device_hw_probe
	subs	r2, r0, #0
	beq	.L22
.L1:
	ldr	r3, .L25+4
	ldr	r1, [r3]
	ldr	r3, [sp, #20]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L23
	mov	r0, r2
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	bl	arm_smmu_device_dt_probe
	mov	r6, r0
	b	.L5
.L19:
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L25+20
	bl	dev_err
	ldr	r3, .L25+24
	ldr	r0, [r3]
	rsb	r2, r0, #0
	b	.L1
.L22:
	mov	r0, r4
	bl	arm_smmu_init_structures
	subs	r2, r0, #0
	bne	.L1
	mov	r1, r4
	mov	r0, r5
	bl	platform_set_drvdata
	subs	r1, r6, #0
	movne	r1, #1
	mov	r0, r4
	bl	arm_smmu_device_reset
	subs	r2, r0, #0
	bne	.L1
	add	r3, sp, #16
	add	r4, r4, #8
	str	r3, [sp]
	mov	r0, r4
	mov	r1, r5
	ldr	r3, .L25+28
	bl	iommu_device_sysfs_add
	subs	r2, r0, #0
	bne	.L1
	ldr	r6, .L25+32
	mov	r0, r4
	mov	r1, r6
	bl	iommu_device_set_ops
	ldr	r1, [r5]
	mov	r0, r4
	bl	iommu_device_set_fwnode
	mov	r0, r4
	bl	iommu_device_register
	subs	r2, r0, #0
	bne	.L24
	ldr	r0, .L25+36
	ldr	r3, [r0]
	cmp	r3, r6
	beq	.L1
	mov	r1, r6
	bl	bus_set_iommu
	mov	r2, r0
	b	.L1
.L20:
	ldr	r0, [r4, #20]
	bl	PTR_ERR
	mov	r2, r0
	b	.L1
.L17:
	mov	r0, r5
	ldr	r1, .L25+40
	bl	dev_err
	ldr	r3, .L25+44
	ldr	r0, [r3]
	rsb	r2, r0, #0
	b	.L1
.L21:
	ldr	r1, .L25+48
	mov	r0, r5
	bl	platform_get_irq_byname
	cmp	r0, #0
	strgt	r0, [r4, #16]
	ldr	r1, .L25+52
	mov	r0, r5
	bl	platform_get_irq_byname
	cmp	r0, #0
	strgt	r0, [r4, #12]
	ldr	r1, .L25+56
	mov	r0, r5
	bl	platform_get_irq_byname
	cmp	r0, #0
	strgt	r0, [r4, #4]
	b	.L9
.L24:
	mov	r0, r5
	ldr	r1, .L25+60
	str	r2, [sp, #12]
	bl	dev_err
	ldr	r2, [sp, #12]
	b	.L1
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	GFP_KERNEL
	.word	.LC8
	.word	ENODEV
	.word	IORESOURCE_MEM
	.word	.LC2
	.word	.LC1
	.word	EINVAL
	.word	.LC6
	.word	arm_smmu_ops
	.word	platform_bus_type
	.word	.LC0
	.word	ENOMEM
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.size	arm_smmu_device_probe, .-arm_smmu_device_probe
	.comm	platform_bus_type,4,4
	.comm	pci_bus_type,4,4
	.comm	arm_smmu_ops,4,4
	.comm	amba_bustype,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
