	.file	"extr_arm-smmu.c_arm_smmu_domain_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arm_smmu_domain_alloc, @function
arm_smmu_domain_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR IOMMU_DOMAIN_UNMANAGED[rip], edi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	je	.L2
	cmp	DWORD PTR IOMMU_DOMAIN_DMA[rip], edi
	je	.L2
	cmp	DWORD PTR IOMMU_DOMAIN_IDENTITY[rip], edi
	jne	.L13
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 12
	call	kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	cmp	DWORD PTR IOMMU_DOMAIN_DMA[rip], ebx
	jne	.L5
	cmp	QWORD PTR using_legacy_binding[rip], 0
	jne	.L7
	mov	rdi, rax
	mov	r12, rax
	call	iommu_get_dma_cookie@PLT
	test	rax, rax
	jne	.L7
.L8:
	lea	rdi, 8[rbp]
	call	mutex_init@PLT
	lea	rdi, 4[rbp]
	call	spin_lock_init@PLT
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	kfree@PLT
.L13:
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	arm_smmu_domain_alloc, .-arm_smmu_domain_alloc
	.comm	using_legacy_binding,8,8
	.comm	IOMMU_DOMAIN_UNMANAGED,4,4
	.comm	IOMMU_DOMAIN_IDENTITY,4,4
	.comm	IOMMU_DOMAIN_DMA,4,4
	.comm	GFP_KERNEL,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.c_arm_smmu_domain_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_smmu_domain_alloc, %function
arm_smmu_domain_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L13
.L2:
	ldr	r3, .L15+12
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L13
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L5
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	bl	iommu_get_dma_cookie
	cmp	r0, #0
	mov	r4, r5
	bne	.L7
.L8:
	add	r0, r5, #8
	bl	mutex_init
	add	r0, r5, #4
	bl	spin_lock_init
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mov	r4, r5
	b	.L8
.L7:
	mov	r0, r5
	bl	kfree
.L13:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	IOMMU_DOMAIN_UNMANAGED
	.word	IOMMU_DOMAIN_DMA
	.word	IOMMU_DOMAIN_IDENTITY
	.word	GFP_KERNEL
	.word	using_legacy_binding
	.size	arm_smmu_domain_alloc, .-arm_smmu_domain_alloc
	.comm	using_legacy_binding,4,4
	.comm	IOMMU_DOMAIN_UNMANAGED,4,4
	.comm	IOMMU_DOMAIN_IDENTITY,4,4
	.comm	IOMMU_DOMAIN_DMA,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
