	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_register_dma        ## -- Begin function exynos_drm_register_dma
	.p2align	4, 0x90
_exynos_drm_register_dma:               ## @exynos_drm_register_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_INFO
LBB0_2:
	movq	_CONFIG_EXYNOS_IOMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_4
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_iommu_attach_device        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CONFIG_ARM_DMA_USE_IOMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EXYNOS_DEV_ADDR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXYNOS_DEV_ADDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	callq	_arm_iommu_create_mapping
	jmp	LBB0_9
LBB0_6:
	movq	_CONFIG_IOMMU_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	8(%rbx), %rdi
	callq	_iommu_get_domain_for_dev
LBB0_9:
	movq	%rax, %r15
LBB0_10:
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	%r15, (%rbx)
	jmp	LBB0_12
LBB0_7:
                                        ## implicit-def: $r15
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exynos DRM: using %s device for DMA mapping operations\n"

	.comm	_CONFIG_EXYNOS_IOMMU,4,2        ## @CONFIG_EXYNOS_IOMMU
	.comm	_CONFIG_ARM_DMA_USE_IOMMU,4,2   ## @CONFIG_ARM_DMA_USE_IOMMU
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.comm	_EXYNOS_DEV_ADDR_START,4,2      ## @EXYNOS_DEV_ADDR_START
	.comm	_EXYNOS_DEV_ADDR_SIZE,4,2       ## @EXYNOS_DEV_ADDR_SIZE
	.comm	_CONFIG_IOMMU_DMA,4,2           ## @CONFIG_IOMMU_DMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_register_dma        ; -- Begin function exynos_drm_register_dma
	.p2align	2
_exynos_drm_register_dma:               ; @exynos_drm_register_dma
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	str	x19, [x22, #8]
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
LBB0_2:
Lloh2:
	adrp	x8, _CONFIG_EXYNOS_IOMMU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_EXYNOS_IOMMU@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_iommu_attach_device
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x8, _CONFIG_ARM_DMA_USE_IOMMU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_ARM_DMA_USE_IOMMU@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _EXYNOS_DEV_ADDR_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXYNOS_DEV_ADDR_START@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _EXYNOS_DEV_ADDR_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXYNOS_DEV_ADDR_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh15:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
	bl	_arm_iommu_create_mapping
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _CONFIG_IOMMU_DMA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONFIG_IOMMU_DMA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x0, [x22, #8]
	bl	_iommu_get_domain_for_dev
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_13:
	str	x21, [x22]
	b	LBB0_4
LBB0_14:
                                        ; implicit-def: $x21
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exynos DRM: using %s device for DMA mapping operations\n"

	.comm	_CONFIG_EXYNOS_IOMMU,4,2        ; @CONFIG_EXYNOS_IOMMU
	.comm	_CONFIG_ARM_DMA_USE_IOMMU,4,2   ; @CONFIG_ARM_DMA_USE_IOMMU
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.comm	_EXYNOS_DEV_ADDR_START,4,2      ; @EXYNOS_DEV_ADDR_START
	.comm	_EXYNOS_DEV_ADDR_SIZE,4,2       ; @EXYNOS_DEV_ADDR_SIZE
	.comm	_CONFIG_IOMMU_DMA,4,2           ; @CONFIG_IOMMU_DMA
.subsections_via_symbols
