	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vaddr
_get_vaddr:                             ## @get_vaddr
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_to_msm_bo
	movq	%rax, %r12
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_DRM_DEV_ERROR
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	incl	20(%r12)
	cmpq	$0, 8(%r12)
	je	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	8(%r12), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_get_pages
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_7:
	decl	20(%r12)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %edi
	jmp	LBB0_8
LBB0_5:
	movl	(%r15), %r15d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_VM_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgprot_writecombine
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_vmap
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid madv state: %u vs %u\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_VM_MAP,4,2                     ## @VM_MAP
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_vaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vaddr
_get_vaddr:                             ; @get_vaddr
	.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	x22, x1
	mov	x21, x0
	bl	_to_msm_bo
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, w22
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	bl	_DRM_DEV_ERROR
	mov	x0, x19
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x0, [x20, #8]
	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
LBB0_5:
	mov	x0, x21
	bl	_get_pages
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
LBB0_7:
	ldr	w8, [x20, #20]
	sub	w8, w8, #1
	str	w8, [x20, #20]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	b	LBB0_2
LBB0_8:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w21, w8, w9
Lloh8:
	adrp	x8, _VM_MAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_MAP@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_pgprot_writecombine
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_vmap
	str	x0, [x20, #8]
	cbnz	x0, LBB0_4
; %bb.9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid madv state: %u vs %u\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_VM_MAP,4,2                     ; @VM_MAP
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_vaddr
.subsections_via_symbols
