	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_gpu_create_address_space
_msm_gpu_create_address_space:          ## @msm_gpu_create_address_space
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_to_adreno_gpu
	movl	%eax, %edi
	callq	_adreno_is_a2xx
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_msm_gem_address_space_create_a2xx
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	callq	_iommu_domain_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	movq	%r13, (%rax)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_INFO
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_msm_gem_address_space_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_iommu_domain_free
	jmp	LBB0_6
LBB0_7:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_msm_gem_address_space_put
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: using IOMMU\n"

L_.str.1:                               ## @.str.1
	.asciz	"gpu"

L_.str.2:                               ## @.str.2
	.asciz	"failed to init mmu: %ld\n"

	.no_dead_strip	_msm_gpu_create_address_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_gpu_create_address_space
_msm_gpu_create_address_space:          ; @msm_gpu_create_address_space
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_to_adreno_gpu
	bl	_adreno_is_a2xx
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	mov	x4, x21
	bl	_msm_gem_address_space_create_a2xx
	mov	x20, x0
LBB0_2:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	w19, [x8]
	mov	x0, x20
	bl	_PTR_ERR
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_4:
Lloh4:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh5:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
	bl	_iommu_domain_alloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x22, x0
	stp	x21, x23, [x0]
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_INFO
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_msm_gem_address_space_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.6:
	mov	x0, x22
	bl	_iommu_domain_free
	b	LBB0_2
LBB0_7:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, #0
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_10
; %bb.8:
	mov	x19, x0
	mov	x0, x20
	bl	_msm_gem_address_space_put
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: using IOMMU\n"

l_.str.1:                               ; @.str.1
	.asciz	"gpu"

l_.str.2:                               ; @.str.2
	.asciz	"failed to init mmu: %ld\n"

	.no_dead_strip	_msm_gpu_create_address_space
.subsections_via_symbols
