	.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), %rax
	movl	(%rax), %esi
	leaq	32(%r12), %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	(%r15), %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movl	4(%r15), %eax
	movl	%eax, 28(%r12)
	leaq	8(%r12), %r14
	movl	16(%r12), %r9d
	movl	24(%r12), %edx
	leaq	20(%r12), %rcx
	movl	(%r15), %r8d
	subq	$8, %rsp
	movq	_vpfe_videobuf_qops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	pushq	$0
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	$4
	callq	_videobuf_queue_dma_contig_init
	addq	$32, %rsp
	movl	$1, (%rbx)
	movl	$1, (%r12)
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_videobuf_reqbufs
	movl	%eax, %ebx
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
L_.str.2:                               ## @.str.2
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x23, x0, #32
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_v4l2_dbg
Lloh5:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock_interruptible
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_v4l2_err
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_v4l2_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_5:
	ldp	w4, w8, [x19]
	str	w8, [x21, #28]
	add	x23, x21, #8
	ldr	w2, [x21, #24]
	add	x3, x21, #20
	ldr	w5, [x21, #16]
	str	xzr, [sp]
Lloh18:
	adrp	x1, _vpfe_videobuf_qops@GOTPAGE
Lloh19:
	ldr	x1, [x1, _vpfe_videobuf_qops@GOTPAGEOFF]
	mov	x0, x23
	mov	w6, #4
	mov	x7, x22
	bl	_videobuf_queue_dma_contig_init
	mov	w8, #1
	str	w8, [x22]
	str	w8, [x21]
	add	x0, x21, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	mov	x1, x19
	bl	_videobuf_reqbufs
	mov	x24, x0
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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
l_.str.2:                               ; @.str.2
	.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
