	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw68_video_init2               ## -- Begin function tw68_video_init2
	.p2align	4, 0x90
_tw68_video_init2:                      ## @tw68_video_init2
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_set_tvnorm
	movq	_V4L2_PIX_FMT_BGR24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_format_by_fourcc
	movl	%eax, 120(%rbx)
	movabsq	$2473901163216, %rax            ## imm = 0x240000002D0
	movq	%rax, (%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	leaq	112(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movq	_tw68_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 80(%rbx)
	movq	_vb2_dma_sg_memops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%rbx)
	movq	%rbx, 64(%rbx)
	movq	___GFP_DMA32@GOTPCREL(%rip), %rax
	movq	___GFP_KSWAPD_RECLAIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	32(%rbx), %r15
	movl	%ecx, 36(%rbx)
	movabsq	$8589934596, %rax               ## imm = 0x200000004
	movq	%rax, 40(%rbx)
	leaq	96(%rbx), %r13
	movq	%r13, 56(%rbx)
	movq	104(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	%r15, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%rbx), %r12
	leaq	100(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%r13, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_video_register_device          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tvnorms,8,3                    ## @tvnorms
	.comm	_V4L2_PIX_FMT_BGR24,4,2         ## @V4L2_PIX_FMT_BGR24
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_tw68_video_qops,4,2            ## @tw68_video_qops
	.comm	_vb2_dma_sg_memops,4,2          ## @vb2_dma_sg_memops
	.comm	___GFP_DMA32,4,2                ## @__GFP_DMA32
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ## @__GFP_KSWAPD_RECLAIM
	.comm	_tw68_video_template,24,3       ## @tw68_video_template
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tw68_video_init2
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	576                             ; 0x240
lCPI0_1:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tw68_video_init2
	.p2align	2
_tw68_video_init2:                      ; @tw68_video_init2
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _tvnorms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tvnorms@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_set_tvnorm
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_BGR24@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_format_by_fourcc
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh8:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #116]
	add	x0, x20, #112
	bl	_INIT_LIST_HEAD
Lloh11:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _VB2_USERPTR@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VB2_USERPTR@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh20:
	adrp	x10, _VB2_READ@GOTPAGE
Lloh21:
	ldr	x10, [x10, _VB2_READ@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _VB2_DMABUF@GOTPAGE
Lloh24:
	ldr	x10, [x10, _VB2_DMABUF@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x21, x20
	str	w9, [x21, #32]!
Lloh26:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #88]
Lloh29:
	adrp	x8, _tw68_video_qops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tw68_video_qops@GOTPAGEOFF]
Lloh31:
	adrp	x9, _vb2_dma_sg_memops@GOTPAGE
Lloh32:
	ldr	x9, [x9, _vb2_dma_sg_memops@GOTPAGEOFF]
	stp	x9, x8, [x20, #72]
	str	x20, [x20, #64]
Lloh33:
	adrp	x8, ___GFP_DMA32@GOTPAGE
Lloh34:
	ldr	x8, [x8, ___GFP_DMA32@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, ___GFP_KSWAPD_RECLAIM@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___GFP_KSWAPD_RECLAIM@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #36]
	add	x22, x20, #96
Lloh39:
	adrp	x8, lCPI0_1@PAGE
Lloh40:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x20, #40]
	ldr	x8, [x20, #104]
	stp	x8, x22, [x20, #48]
	mov	x0, x21
	bl	_vb2_queue_init
	cbz	w0, LBB0_2
; %bb.1:
	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_2:
	add	x8, x20, #100
	stp	x22, x8, [x20, #16]
	mov	x22, x20
	str	x21, [x22, #8]!
	mov	x0, x22
	mov	x1, x20
	bl	_video_set_drvdata
Lloh41:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	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
	b	_video_register_device
	.loh AdrpLdr	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_tvnorms,8,3                    ; @tvnorms
	.comm	_V4L2_PIX_FMT_BGR24,4,2         ; @V4L2_PIX_FMT_BGR24
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_tw68_video_qops,4,2            ; @tw68_video_qops
	.comm	_vb2_dma_sg_memops,4,2          ; @vb2_dma_sg_memops
	.comm	___GFP_DMA32,4,2                ; @__GFP_DMA32
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ; @__GFP_KSWAPD_RECLAIM
	.comm	_tw68_video_template,24,3       ; @tw68_video_template
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
.subsections_via_symbols
