	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_expbuf                ## -- Begin function vb2_core_expbuf
	.p2align	4, 0x90
_vb2_core_expbuf:                       ## @vb2_core_expbuf
	.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	%ecx, %r15d
	movq	(%rdi), %rax
	movq	_VB2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	24(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	%r9d, %ebx
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movq	_O_ACCMODE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%r9d, %ecx
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_6:
	cmpl	%edx, 8(%rdi)
	jne	LBB0_11
## %bb.7:
	cmpl	%r15d, 12(%rdi)
	jbe	LBB0_12
## %bb.8:
	movl	%r8d, %r14d
	movq	16(%rdi), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpl	%r8d, (%rax)
	jbe	LBB0_13
## %bb.9:
	movq	%rsi, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_vb2_fileio_is_active
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
LBB0_14:
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movl	%r14d, %ecx
	movq	_get_dmabuf@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rax,%rcx,4), %edx
	movl	(%r13), %ecx
	andl	%ebx, %ecx
	callq	_call_ptr_memop
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_15
LBB0_20:
	movl	(%r13), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_dma_buf_fd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	movl	$3, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movl	%ebx, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_22:
	leaq	L_.str.8(%rip), %rsi
	movl	$3, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r13, %rdi
	callq	_dma_buf_put
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.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,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"queue does not support DMA buffer exporting\n"

	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
L_.str.2:                               ## @.str.2
	.asciz	"queue does support only O_CLOEXEC and access mode flags\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid buffer type\n"

L_.str.4:                               ## @.str.4
	.asciz	"buffer index out of range\n"

L_.str.5:                               ## @.str.5
	.asciz	"buffer plane out of range\n"

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

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_get_dmabuf,4,2                 ## @get_dmabuf
L_.str.7:                               ## @.str.7
	.asciz	"failed to export buffer %d, plane %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"buffer %d, plane %d failed to export (%d)\n"

L_.str.9:                               ## @.str.9
	.asciz	"buffer %d, plane %d exported as %d descriptor\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_expbuf                ; -- Begin function vb2_core_expbuf
	.p2align	2
_vb2_core_expbuf:                       ; @vb2_core_expbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	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_4
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, x5
Lloh3:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x24, _O_ACCMODE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _O_ACCMODE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bics	wzr, w5, w8
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	w8, [x0, #8]
	cmp	w8, w2
	b.ne	LBB0_11
; %bb.7:
	mov	x19, x3
	ldr	w8, [x0, #12]
	cmp	w8, w3
	b.ls	LBB0_12
; %bb.8:
	mov	x20, x4
	ldr	x8, [x0, #16]
	ldr	x23, [x8, w19, uxtw #3]
	ldr	w8, [x23]
	cmp	w8, w4
	b.ls	LBB0_13
; %bb.9:
	mov	x21, x1
	bl	_vb2_fileio_is_active
	cbz	x0, LBB0_17
; %bb.10:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	w0, #1
	bl	_dprintk
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
Lloh26:
	adrp	x8, _get_dmabuf@GOTPAGE
Lloh27:
	ldr	x8, [x8, _get_dmabuf@GOTPAGEOFF]
	ldr	x9, [x23, #8]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x9, w20, uxtw #2]
	ldr	w8, [x24]
	and	w3, w8, w22
	mov	x0, x23
	bl	_call_ptr_memop
	mov	x23, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_19
; %bb.18:
	stp	x19, x20, [sp]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_19:
	ldr	w8, [x24]
	bic	w1, w22, w8
	mov	x0, x23
	bl	_dma_buf_fd
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.20:
	mov	x8, x22
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x20, x8, [sp, #8]
	str	x19, [sp]
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	str	w22, [x21]
	mov	w22, #0
	b	LBB0_16
LBB0_21:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x20, x22, [sp, #8]
	str	x19, [sp]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	mov	x0, x23
	bl	_dma_buf_put
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.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,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"queue does not support DMA buffer exporting\n"

	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
l_.str.2:                               ; @.str.2
	.asciz	"queue does support only O_CLOEXEC and access mode flags\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid buffer type\n"

l_.str.4:                               ; @.str.4
	.asciz	"buffer index out of range\n"

l_.str.5:                               ; @.str.5
	.asciz	"buffer plane out of range\n"

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

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_get_dmabuf,4,2                 ; @get_dmabuf
l_.str.7:                               ; @.str.7
	.asciz	"failed to export buffer %d, plane %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"buffer %d, plane %d failed to export (%d)\n"

l_.str.9:                               ; @.str.9
	.asciz	"buffer %d, plane %d exported as %d descriptor\n"

.subsections_via_symbols
