	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_open
_video_open:                            ## @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, %r13
	callq	_video_devdata
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_video_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	xorl	%r12d, %r12d
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.3:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_5:
	movl	$1, %r12d
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_video_device_node_name
	movq	_v4l2_type_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	movl	(%rcx,%rdx,4), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, (%r13)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 24(%rax)
	movl	%r12d, (%rax)
	movl	%r14d, 4(%rax)
	movabsq	$1030792151360, %rax            ## imm = 0xF000000140
	movq	%rax, 8(%rbx)
	movq	_V4L2_PIX_FMT_BGR24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_format_by_fourcc
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	8(%r13), %rdx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	_cx23885_video_qops@GOTPCREL(%rip), %rsi
	movq	%r13, %rcx
	pushq	$0
	pushq	%rbx
	pushq	$4
	callq	_videobuf_queue_sg_init
	addq	$32, %rsp
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open dev=%s radio=%d type=%s\n"

	.comm	_v4l2_type_names,8,3            ## @v4l2_type_names
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_V4L2_PIX_FMT_BGR24,4,2         ## @V4L2_PIX_FMT_BGR24
	.comm	_cx23885_video_qops,4,2         ## @cx23885_video_qops
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
L_.str.1:                               ## @.str.1
	.asciz	"post videobuf_queue_init()\n"

	.no_dead_strip	_video_open
.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 video_open
lCPI0_0:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_video_open:                            ; @video_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	bl	_video_devdata
	mov	x21, x0
	mov	x0, x20
	bl	_video_drvdata
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_4:
	mov	w22, #0
Lloh3:
	adrp	x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_5:
	mov	w23, #0
	mov	w22, #1
	b	LBB0_7
LBB0_6:
	mov	w23, #0
	mov	w22, #0
LBB0_7:
	mov	x0, x21
	bl	_video_device_node_name
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x8, _v4l2_type_names@GOTPAGE
Lloh7:
	ldr	x8, [x8, _v4l2_type_names@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, w23, uxtw #2]
	stp	x22, x8, [sp, #8]
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.8:
	mov	x21, x0
	str	x0, [x20]
	str	x19, [x0, #24]
	stp	w22, w23, [x0]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
Lloh16:
	adrp	x8, _V4L2_PIX_FMT_BGR24@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_format_by_fourcc
	str	w0, [x21, #20]
	add	x0, x21, #16
	ldr	x2, [x19, #8]
Lloh19:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	str	xzr, [sp]
Lloh25:
	adrp	x1, _cx23885_video_qops@GOTPAGE
Lloh26:
	ldr	x1, [x1, _cx23885_video_qops@GOTPAGEOFF]
	mov	x3, x19
	mov	w6, #4
	mov	x7, x21
	bl	_videobuf_queue_sg_init
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open dev=%s radio=%d type=%s\n"

	.comm	_v4l2_type_names,8,3            ; @v4l2_type_names
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_V4L2_PIX_FMT_BGR24,4,2         ; @V4L2_PIX_FMT_BGR24
	.comm	_cx23885_video_qops,4,2         ; @cx23885_video_qops
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
l_.str.1:                               ; @.str.1
	.asciz	"post videobuf_queue_init()\n"

	.no_dead_strip	_video_open
.subsections_via_symbols
