	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_iommuv1_unmap
_etnaviv_iommuv1_unmap:                 ## @etnaviv_iommuv1_unmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_to_v1_context
	movq	%rax, %rcx
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_GPU_MEM_START@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movq	%r15, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_6
LBB0_3:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movq	(%r14), %rdx
	movl	(%rdx), %edx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	%edx, (%rcx,%rax,4)
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPU_MEM_START,8,3              ## @GPU_MEM_START
	.comm	_SZ_4K,8,3                      ## @SZ_4K
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_etnaviv_iommuv1_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_iommuv1_unmap
_etnaviv_iommuv1_unmap:                 ; @etnaviv_iommuv1_unmap
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_to_v1_context
Lloh0:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GPU_MEM_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPU_MEM_START@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x8, x21, x8
	udiv	x8, x8, x19
	ldr	x9, [x20]
	ldr	w9, [x9]
	ldr	x10, [x0]
	str	w9, [x10, w8, uxtw #2]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GPU_MEM_START,8,3              ; @GPU_MEM_START
	.comm	_SZ_4K,8,3                      ; @SZ_4K
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_etnaviv_iommuv1_unmap
.subsections_via_symbols
