	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_open
_isp_video_open:                        ## @isp_video_open
	.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
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_fh_init
	movq	%r13, %rdi
	callq	_v4l2_fh_add
	movq	8(%r14), %rdi
	callq	_omap3isp_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_v4l2_pipeline_pm_use
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	leaq	24(%r13), %rdi
	movl	(%r14), %eax
	movl	%eax, 64(%r13)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%r13)
	movq	%r13, 56(%r13)
	movq	_isp_video_queue_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r13)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movl	$4, 28(%r13)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	callq	_vb2_queue_init
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	%r13, %rdi
	addq	$20, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, 20(%r13)
	movl	$1, 16(%r13)
	movq	%r14, 8(%r13)
	movq	%r13, (%r15)
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r12d
	negl	%r12d
	testl	%eax, %eax
	jg	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r12d
LBB0_5:
	movq	8(%r14), %rdi
	callq	_omap3isp_put
LBB0_9:
	movq	%r13, %rdi
	callq	_v4l2_fh_del
	movq	%r13, %rdi
	callq	_v4l2_fh_exit
	movq	%r13, %rdi
	callq	_kfree
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_isp_video_queue_ops,4,2        ## @isp_video_queue_ops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.no_dead_strip	_isp_video_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_open
_isp_video_open:                        ; @isp_video_open
	.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, x0
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x22, x20, #16
	mov	x1, x22
	bl	_v4l2_fh_init
	mov	x0, x19
	bl	_v4l2_fh_add
	ldr	x0, [x20, #8]
	bl	_omap3isp_get
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x22
	mov	w1, #1
	bl	_v4l2_pipeline_pm_use
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	str	w8, [x19, #64]
Lloh3:
	adrp	x8, _VB2_MMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_MMAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VB2_USERPTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VB2_USERPTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x0, x19
	str	w8, [x0, #24]!
Lloh9:
	adrp	x8, _isp_video_queue_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _isp_video_queue_ops@GOTPAGEOFF]
Lloh11:
	adrp	x9, _vb2_dma_contig_memops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _vb2_dma_contig_memops@GOTPAGEOFF]
	stp	x8, x19, [x19, #48]
	str	x9, [x19, #40]
	mov	w8, #4
Lloh13:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x19, #36]
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	stp	w8, w9, [x19, #28]
	bl	_vb2_queue_init
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	add	x0, x19, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20]
	mov	w9, #1
	stp	w9, w8, [x19, #16]
	str	x20, [x19, #8]
	str	x19, [x21]
	b	LBB0_10
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	cmp	w8, #0
	b.gt	LBB0_9
	b	LBB0_10
LBB0_7:
	mov	x22, x0
LBB0_8:
	ldr	x0, [x20, #8]
	bl	_omap3isp_put
LBB0_9:
	mov	x0, x19
	bl	_v4l2_fh_del
	mov	x0, x19
	bl	_v4l2_fh_exit
	mov	x0, x19
	bl	_kfree
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_isp_video_queue_ops,4,2        ; @isp_video_queue_ops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.no_dead_strip	_isp_video_open
.subsections_via_symbols
