	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_verify_memory_type         ## -- Begin function vb2_verify_memory_type
	.p2align	4, 0x90
_vb2_verify_memory_type:                ## @vb2_verify_memory_type
	.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, %r14
	movq	_VB2_MEMORY_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VB2_MEMORY_USERPTR@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_VB2_MEMORY_DMABUF@GOTPCREL(%rip), %r12
	movq	_EINVAL@GOTPCREL(%rip), %r15
	cmpl	%esi, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.2:
	cmpl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_18
LBB0_4:
	cmpl	%edx, (%r14)
	jne	LBB0_5
## %bb.6:
	cmpl	%ebx, %ecx
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	___verify_mmap_ops
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_18:
	movl	$1, %edi
	callq	_dprintk
	xorl	%eax, %eax
	subl	(%r15), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r13), %eax
LBB0_10:
	cmpl	%ebx, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	___verify_userptr_ops
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_18
LBB0_13:
	cmpl	%ebx, (%r12)
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	___verify_dmabuf_ops
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_vb2_fileio_is_active
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	_EBUSY@GOTPCREL(%rip), %r15
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_18
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_MEMORY_MMAP,4,2            ## @VB2_MEMORY_MMAP
	.comm	_VB2_MEMORY_USERPTR,4,2         ## @VB2_MEMORY_USERPTR
	.comm	_VB2_MEMORY_DMABUF,4,2          ## @VB2_MEMORY_DMABUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported memory type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"requested type is incorrect\n"

L_.str.2:                               ## @.str.2
	.asciz	"MMAP for current setup unsupported\n"

L_.str.3:                               ## @.str.3
	.asciz	"USERPTR for current setup unsupported\n"

L_.str.4:                               ## @.str.4
	.asciz	"DMABUF for current setup unsupported\n"

L_.str.5:                               ## @.str.5
	.asciz	"file io in progress\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_verify_memory_type         ; -- Begin function vb2_verify_memory_type
	.p2align	2
_vb2_verify_memory_type:                ; @vb2_verify_memory_type
	.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
Lloh0:
	adrp	x8, _VB2_MEMORY_MMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB2_MEMORY_MMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x22, _VB2_MEMORY_USERPTR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VB2_MEMORY_USERPTR@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x21, _VB2_MEMORY_DMABUF@GOTPAGE
Lloh6:
	ldr	x21, [x21, _VB2_MEMORY_DMABUF@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
	ccmp	w10, w1, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w10, [x0]
	cmp	w10, w2
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x1
	cmp	w9, w1
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x19
	bl	___verify_mmap_ops
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x19, _EINVAL@GOTPAGE
Lloh8:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x19, _EINVAL@GOTPAGE
Lloh12:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x19, _EINVAL@GOTPAGE
Lloh16:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	w0, #1
	bl	_dprintk
	ldr	w8, [x19]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	w8, [x22]
LBB0_10:
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	___verify_userptr_ops
	cbz	x0, LBB0_13
; %bb.12:
Lloh19:
	adrp	x19, _EINVAL@GOTPAGE
Lloh20:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_13:
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	___verify_dmabuf_ops
	cbz	x0, LBB0_16
; %bb.15:
Lloh23:
	adrp	x19, _EINVAL@GOTPAGE
Lloh24:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_16:
	mov	x0, x19
	bl	_vb2_fileio_is_active
	cbz	x0, LBB0_8
; %bb.17:
Lloh27:
	adrp	x19, _EBUSY@GOTPAGE
Lloh28:
	ldr	x19, [x19, _EBUSY@GOTPAGEOFF]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_MEMORY_MMAP,4,2            ; @VB2_MEMORY_MMAP
	.comm	_VB2_MEMORY_USERPTR,4,2         ; @VB2_MEMORY_USERPTR
	.comm	_VB2_MEMORY_DMABUF,4,2          ; @VB2_MEMORY_DMABUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported memory type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"requested type is incorrect\n"

l_.str.2:                               ; @.str.2
	.asciz	"MMAP for current setup unsupported\n"

l_.str.3:                               ; @.str.3
	.asciz	"USERPTR for current setup unsupported\n"

l_.str.4:                               ; @.str.4
	.asciz	"DMABUF for current setup unsupported\n"

l_.str.5:                               ; @.str.5
	.asciz	"file io in progress\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
