	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_capture_buffer_prepare
_isp_video_capture_buffer_prepare:      ## @isp_video_capture_buffer_prepare
	.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	%rdi, %r15
	movl	(%rdi), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %r14
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vb2_plane_size
	cmpq	%r12, %rax
	jb	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_vb2_set_plane_payload
	incq	%rbx
	movq	40(%r14), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_7:
	movq	_ST_ISP_VID_CAP_BUF_PREP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	8(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.10:
	movq	%rax, %rcx
	movq	16(%r14), %rsi
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rbx
	movq	(%rbx), %rbx
	cmpq	%rcx, (%rbx)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_12
LBB0_13:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
	jmp	LBB0_14
LBB0_4:
	addq	$24, %r14
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vb2_plane_size
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_v4l2_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_8:
	xorl	%eax, %eax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"User buffer too small (%ld < %ld)\n"

	.comm	_ST_ISP_VID_CAP_BUF_PREP,4,2    ## @ST_ISP_VID_CAP_BUF_PREP
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_isp_video_capture_buffer_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_capture_buffer_prepare
_isp_video_capture_buffer_prepare:      ; @isp_video_capture_buffer_prepare
	.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	x20, x0
	ldr	w0, [x0]
	bl	_vb2_get_drv_priv
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x22, [x8, x21, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_vb2_plane_size
	cmp	x0, x22
	b.lo	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_vb2_set_plane_payload
	add	x21, x21, #1
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	x9, [x19, #16]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x10, [x10]
	ldr	x10, [x10]
	cmp	x10, x0
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_10:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	add	x19, x19, #24
	mov	x0, x20
	mov	x1, x21
	bl	_vb2_plane_size
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_v4l2_err
LBB0_12:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"User buffer too small (%ld < %ld)\n"

	.comm	_ST_ISP_VID_CAP_BUF_PREP,4,2    ; @ST_ISP_VID_CAP_BUF_PREP
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_isp_video_capture_buffer_prepare
.subsections_via_symbols
