	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_get_unmapped_area          ## -- Begin function vb2_get_unmapped_area
	.p2align	4, 0x90
_vb2_get_unmapped_area:                 ## @vb2_get_unmapped_area
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rsi
	movq	(%rdi), %rax
	movq	_VB2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	___find_plane_by_offset
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movslq	%eax, %rcx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subq	(%rax), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %rax
	movl	-16(%rbp), %ecx
	movq	(%rax,%rcx,8), %rdi
	movl	-12(%rbp), %esi
	callq	_vb2_plane_vaddr
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subq	(%rdx), %rcx
	testq	%rax, %rax
	cmovneq	%rax, %rcx
LBB0_5:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VB2_MEMORY_MMAP,8,3            ## @VB2_MEMORY_MMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue is not currently set up for mmap\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_get_unmapped_area          ; -- Begin function vb2_get_unmapped_area
	.p2align	2
_vb2_get_unmapped_area:                 ; @vb2_get_unmapped_area
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VB2_MEMORY_MMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VB2_MEMORY_MMAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x1, x3, x8
	add	x2, sp, #12
	add	x3, sp, #8
	bl	___find_plane_by_offset
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.2:
	sxtw	x0, w0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldp	w1, w9, [sp, #8]
	ldr	x0, [x8, x9, lsl #3]
	bl	_vb2_plane_vaddr
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, #0
	csneg	x0, x0, x8, ne
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VB2_MEMORY_MMAP,8,3            ; @VB2_MEMORY_MMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue is not currently set up for mmap\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
.subsections_via_symbols
