	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zc0301_request_buffers
_zc0301_request_buffers:                ## @zc0301_request_buffers
	.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
	cmpq	$0, 16(%rdi)
	setne	%al
	movq	_IO_READ@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	28(%rdi,%rax,8), %ecx
	imull	24(%rdi,%rax,8), %ecx
	imull	40(%rdi), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	%rsi, %rbx
	movq	_ZC0301_MAX_FRAMES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rsi, %rcx
	cmovlq	%rcx, %rbx
	movq	%rbx, (%rdi)
	testq	%rbx, %rbx
	jle	LBB0_7
## %bb.1:
	sarl	$3, %eax
	cltq
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PAGE_ALIGN
	imulq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_vmalloc_32_user
	movq	%rax, %r12
	movq	(%r14), %rax
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rax), %rbx
	movq	%rbx, (%r14)
	cmpq	$1, %rax
	movq	%r15, %rax
	jg	LBB0_2
	jmp	LBB0_7
LBB0_4:
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:
	movq	%r14, %rax
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rax, %rbx
	callq	_PAGE_ALIGN
	imulq	%r14, %rax
	addq	%r12, %rax
	movq	8(%rbx), %rcx
	movq	%rax, 56(%rcx,%r13)
	movq	%r14, 48(%rcx,%r13)
	movq	%r15, %rdi
	callq	_PAGE_ALIGN
	movq	%r15, %rdx
	imulq	%r14, %rax
	movq	8(%rbx), %rcx
	movq	%rax, 40(%rcx,%r13)
	movq	%r15, (%rcx,%r13)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx,%r13)
	movq	$0, 24(%rcx,%r13)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx,%r13)
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx,%r13)
	movq	%rbx, %rax
	movq	$0, 8(%rcx,%r13)
	incq	%r14
	movq	(%rbx), %rbx
	addq	$64, %r13
	cmpq	%rbx, %r14
	jl	LBB0_6
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_READ,4,2                    ## @IO_READ
	.comm	_ZC0301_MAX_FRAMES,8,3          ## @ZC0301_MAX_FRAMES
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_MEMORY_MMAP,4,2           ## @V4L2_MEMORY_MMAP
	.no_dead_strip	_zc0301_request_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zc0301_request_buffers
_zc0301_request_buffers:                ; @zc0301_request_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #16]
	cmp	x8, #0
Lloh0:
	adrp	x8, _IO_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IO_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w2, #4, eq
	mov	w8, #28
	mov	w9, #36
	csel	x8, x9, x8, eq
	mov	w9, #24
	mov	w10, #32
	csel	x9, x10, x9, eq
	ldr	w9, [x0, x9]
	ldr	w8, [x0, x8]
	mul	w8, w8, w9
	ldr	w9, [x0, #40]
	mul	w8, w8, w9
	add	w9, w8, #7
Lloh3:
	adrp	x10, _ZC0301_MAX_FRAMES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ZC0301_MAX_FRAMES@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh5:
	ldr	x9, [x10]
	cmp	x9, x1
	csel	x22, x9, x1, lt
	str	x22, [x0]
	cmp	x22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	sbfx	x20, x8, #3, #29
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PAGE_ALIGN
	mul	x0, x0, x22
	bl	_vmalloc_32_user
	ldr	x22, [x19]
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x22, x22, #1
	str	x22, [x19]
	b.gt	LBB0_2
	b	LBB0_7
LBB0_4:
	cmp	x22, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, x0
	mov	x23, #0
	mov	w24, #56
Lloh6:
	adrp	x25, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _V4L2_FIELD_NONE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh11:
	ldr	x27, [x27, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PAGE_ALIGN
	madd	x8, x0, x23, x21
	ldr	x9, [x19, #8]
	add	x9, x9, x24
	stp	x23, x8, [x9, #-8]
	mov	x0, x20
	bl	_PAGE_ALIGN
	mul	x8, x0, x23
	ldp	x22, x9, [x19]
	add	x9, x9, x24
	stur	x8, [x9, #-16]
	ldr	w8, [x25]
	stur	w8, [x9, #-24]
	ldr	w8, [x26]
	stur	w8, [x9, #-36]
	ldr	w8, [x27]
	stur	w8, [x9, #-40]
	stur	xzr, [x9, #-32]
	stp	x20, xzr, [x9, #-56]
	add	x23, x23, #1
	add	x24, x24, #64
	cmp	x23, x22
	b.lt	LBB0_6
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_READ,4,2                    ; @IO_READ
	.comm	_ZC0301_MAX_FRAMES,8,3          ; @ZC0301_MAX_FRAMES
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_MEMORY_MMAP,4,2           ; @V4L2_MEMORY_MMAP
	.no_dead_strip	_zc0301_request_buffers
.subsections_via_symbols
