	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_reqbufs
_vpfe_reqbufs:                          ## @vpfe_reqbufs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r12
	movq	(%rbx), %rbx
	movq	_debug@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	36(%rax), %r13
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_v4l2_dbg
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	8(%r15), %eax
	jne	LBB0_1
## %bb.3:
	movq	_V4L2_MEMORY_USERPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_v4l2_dbg
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	movq	%rax, 8(%r12)
	leaq	20(%r12), %r14
	leaq	32(%r12), %rcx
	movl	8(%r15), %r8d
	movl	28(%r12), %r9d
	movq	_vpfe_videobuf_qops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	$4
	callq	_videobuf_queue_dma_contig_init
	addq	$16, %rsp
	movl	$1, (%rbx)
	movl	$1, (%r12)
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_videobuf_reqbufs
	movl	%eax, %ebx
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_reqbufs\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid buffer type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_MEMORY_USERPTR,8,3        ## @V4L2_MEMORY_USERPTR
L_.str.2:                               ## @.str.2
	.asciz	"vpfe_reqbufs: USERPTR IO not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"Only one IO user allowed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_vpfe_videobuf_qops,4,2         ## @vpfe_videobuf_qops
	.no_dead_strip	_vpfe_reqbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_reqbufs
_vpfe_reqbufs:                          ; @vpfe_reqbufs
	.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	x19, x2
	mov	x20, x0
	bl	_video_drvdata
	mov	x21, x0
	ldr	x22, [x20]
Lloh0:
	adrp	x20, _debug@GOTPAGE
Lloh1:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x23, x0, #36
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_v4l2_dbg
Lloh4:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _V4L2_MEMORY_USERPTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w1, [x20]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_v4l2_dbg
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_v4l2_err
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	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_6:
	add	x20, x21, #16
	mov	x0, x20
	bl	_mutex_lock_interruptible
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_v4l2_err
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	str	x8, [x21, #8]
	add	x23, x21, #20
	add	x3, x21, #32
	ldr	w4, [x19, #8]
	ldr	w5, [x21, #28]
Lloh22:
	adrp	x1, _vpfe_videobuf_qops@GOTPAGE
Lloh23:
	ldr	x1, [x1, _vpfe_videobuf_qops@GOTPAGEOFF]
	mov	x0, x23
	mov	x2, #0
	mov	w6, #4
	mov	x7, x22
	bl	_videobuf_queue_dma_contig_init
	mov	w8, #1
	str	w8, [x22]
	str	w8, [x21]
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	mov	x1, x19
	bl	_videobuf_reqbufs
	mov	x24, x0
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_reqbufs\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid buffer type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_MEMORY_USERPTR,8,3        ; @V4L2_MEMORY_USERPTR
l_.str.2:                               ; @.str.2
	.asciz	"vpfe_reqbufs: USERPTR IO not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"Only one IO user allowed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_vpfe_videobuf_qops,4,2         ; @vpfe_videobuf_qops
	.no_dead_strip	_vpfe_reqbufs
.subsections_via_symbols
