	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cal_complete_ctx
_cal_complete_ctx:                      ## @cal_complete_ctx
	.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, %rbx
	movq	_tpf_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rdi)
	movl	$192000000, (%rdi)              ## imm = 0xB71B000
	addq	$112, %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	leaq	48(%rbx), %r15
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movq	%rbx, 96(%rbx)
	movl	$4, 52(%rbx)
	movq	_cal_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 88(%rbx)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 80(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	%r14, 64(%rbx)
	movl	$3, 56(%rbx)
	movl	4(%rbx), %eax
	movl	%eax, 60(%rbx)
	movq	%r15, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	4(%rbx), %r12
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%rbx), %r13
	movq	%r12, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_video_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_video_device_node_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_v4l2_info
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tpf_default,4,2                ## @tpf_default
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_cal_video_qops,4,2             ## @cal_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_cal_videodev,24,3              ## @cal_videodev
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.comm	_video_nr,4,2                   ## @video_nr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2 device registered as %s\n"

	.no_dead_strip	_cal_complete_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cal_complete_ctx
_cal_complete_ctx:                      ; @cal_complete_ctx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _tpf_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tpf_default@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #116]
	mov	w8, #45056
	movk	w8, #2929, lsl #16
	str	w8, [x0], #112
	bl	_spin_lock_init
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_init
Lloh3:
	adrp	x8, _VB2_MMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_MMAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VB2_DMABUF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VB2_DMABUF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _VB2_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VB2_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x22, x19
	str	w8, [x22, #48]!
Lloh12:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #104]
	mov	x8, #4
	movk	x8, #3, lsl #32
	stur	x8, [x19, #52]
Lloh15:
	adrp	x8, _cal_video_qops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cal_video_qops@GOTPAGEOFF]
Lloh17:
	adrp	x9, _vb2_dma_contig_memops@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vb2_dma_contig_memops@GOTPAGEOFF]
	stp	x8, x19, [x19, #88]
	str	x9, [x19, #80]
Lloh19:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	str	x20, [x19, #64]
	mov	x21, x19
	ldr	w8, [x21, #4]!
	str	w8, [x19, #60]
	mov	x0, x22
	bl	_vb2_queue_init
	cbnz	w0, LBB0_3
; %bb.1:
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	mov	x23, x19
	str	x20, [x23, #16]!
	stp	x22, x21, [x19, #24]
	mov	x0, x23
	mov	x1, x19
	bl	_video_set_drvdata
Lloh22:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _video_nr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _video_nr@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_video_register_device
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_video_device_node_name
	mov	x2, x0
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l2_info
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_tpf_default,4,2                ; @tpf_default
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_cal_video_qops,4,2             ; @cal_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_cal_videodev,24,3              ; @cal_videodev
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.comm	_video_nr,4,2                   ; @video_nr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2 device registered as %s\n"

	.no_dead_strip	_cal_complete_ctx
.subsections_via_symbols
