	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_ioctl_reqbufs              ## -- Begin function vb2_ioctl_reqbufs
	.p2align	4, 0x90
_vb2_ioctl_reqbufs:                     ## @vb2_ioctl_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r14
	callq	_video_devdata
	movq	%rax, %r15
	movq	(%rax), %rdi
	movl	4(%r12), %esi
	movl	12(%r12), %edx
	callq	_vb2_verify_memory_type
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	8(%r12), %rsi
	callq	_fill_buf_caps
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vb2_queue_is_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	(%r15), %rdi
	movl	4(%r12), %esi
	movq	%r12, %rdx
	callq	_vb2_core_reqbufs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_ioctl_reqbufs              ; -- Begin function vb2_ioctl_reqbufs
	.p2align	2
_vb2_ioctl_reqbufs:                     ; @vb2_ioctl_reqbufs
	.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
	mov	x21, x2
	mov	x20, x0
	bl	_video_devdata
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w1, [x21, #4]
	ldr	w2, [x21, #12]
	bl	_vb2_verify_memory_type
	mov	x22, x0
	ldr	x0, [x19]
	add	x1, x21, #8
	bl	_fill_buf_caps
	cbnz	w22, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_vb2_queue_is_busy
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_3:
	ldr	x0, [x19]
	ldr	w1, [x21, #4]
	mov	x2, x21
	bl	_vb2_core_reqbufs
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	mov	w22, #0
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_8:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
