	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_init_v4l2
_cx231xx_init_v4l2:                     ## @cx231xx_init_v4l2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	40(%rdi), %rax
	movslq	(%rax), %rax
	leal	1(%rax), %edx
	cmpl	(%rdi), %edx
	jge	LBB0_21
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%rax,8), %r15
	movq	8(%r15), %rax
	cmpl	%r14d, 8(%rax)
	jle	LBB0_23
## %bb.2:
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 88(%r13)
	movl	(%r15), %ecx
	movl	%ecx, 72(%r13)
	movl	32(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	72(%r13), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kmalloc_array
	movq	%rax, 80(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	$0, 72(%r13)
	jle	LBB0_7
## %bb.4:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax,%r14)
	jle	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-8(%rax,%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %edx
	andl	$2047, %edx                     ## imm = 0x7FF
	shrl	$11, %eax
	andl	$3, %eax
	leal	1(%rax), %ecx
	imull	%edx, %ecx
	movq	80(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	movl	32(%r13), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	incq	%rbx
	movslq	72(%r13), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_7:
	movq	40(%r13), %rax
	movslq	4(%rax), %rax
	leal	1(%rax), %edx
	cmpl	(%r13), %edx
	jge	LBB0_27
## %bb.8:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%rax,8), %r15
	movq	8(%r15), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 8(%rax)
	jle	LBB0_23
## %bb.9:
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 64(%r13)
	movl	(%r15), %ecx
	movl	%ecx, 48(%r13)
	movl	32(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	movl	48(%r13), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kmalloc_array
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.10:
	cmpl	$0, 48(%r13)
	jle	LBB0_14
## %bb.11:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r12
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax,%r14)
	jle	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-8(%rax,%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %edx
	andl	$2047, %edx                     ## imm = 0x7FF
	shrl	$11, %eax
	andl	$3, %eax
	leal	1(%rax), %ecx
	imull	%edx, %ecx
	movq	56(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	movl	32(%r13), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	incq	%rbx
	movslq	48(%r13), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_14:
	movq	40(%r13), %rax
	movslq	8(%rax), %rax
	leal	1(%rax), %edx
	cmpl	(%r13), %edx
	jge	LBB0_28
## %bb.15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%rax,8), %r15
	movq	8(%r15), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, 8(%rax)
	jle	LBB0_23
## %bb.16:
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 24(%r13)
	movl	(%r15), %ecx
	movl	%ecx, 8(%r13)
	movl	32(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_info
	movl	8(%r13), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kmalloc_array
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	cmpl	$0, 8(%r13)
	jle	LBB0_29
## %bb.18:
	movl	$8, %r12d
	xorl	%ebx, %ebx
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	cmpl	%r14d, (%rax,%r12)
	jle	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-8(%rax,%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %edx
	andl	$2047, %edx                     ## imm = 0x7FF
	shrl	$11, %eax
	andl	$3, %eax
	leal	1(%rax), %ecx
	imull	%edx, %ecx
	movq	16(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	movl	32(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	incq	%rbx
	movslq	8(%r13), %rcx
	addq	$16, %r12
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jl	LBB0_19
	jmp	LBB0_25
LBB0_21:
	movl	32(%r13), %edi
	leaq	L_.str(%rip), %rsi
LBB0_22:
	callq	_dev_err
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_24:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_27:
	movl	32(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_22
LBB0_28:
	movl	32(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_22
LBB0_29:
	xorl	%eax, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Video PCB interface #%d doesn't exist\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"video EndPoint Addr 0x%x, Alternate settings: %i\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Alternate setting %i, max size= %i\n"

L_.str.3:                               ## @.str.3
	.asciz	"VBI PCB interface #%d doesn't exist\n"

L_.str.4:                               ## @.str.4
	.asciz	"VBI EndPoint Addr 0x%x, Alternate settings: %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"Sliced CC PCB interface #%d doesn't exist\n"

L_.str.6:                               ## @.str.6
	.asciz	"sliced CC EndPoint Addr 0x%x, Alternate settings: %i\n"

	.no_dead_strip	_cx231xx_init_v4l2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx231xx_init_v4l2
_cx231xx_init_v4l2:                     ; @cx231xx_init_v4l2
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldrsw	x8, [x8]
	add	x2, x8, #1
	ldr	w8, [x0]
	cmp	w2, w8
	b.ge	LBB0_21
; %bb.1:
	mov	x20, x3
	mov	x21, x1
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x26, [x8, x2, lsl #3]
	ldr	x8, [x26, #8]
	ldr	w9, [x8, #8]
	cmp	w9, w3
	b.le	LBB0_23
; %bb.2:
	ldr	x8, [x8]
	add	x8, x8, w20, sxtw #3
	ldr	w2, [x8, #4]
	str	w2, [x19, #88]
	ldr	w3, [x26]
	str	w3, [x19, #72]
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	w2, [x19, #72]
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kmalloc_array
	str	x0, [x19, #80]
	cbz	x0, LBB0_26
; %bb.3:
	sxtw	x24, w20
	ldr	w8, [x19, #72]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x27, #0
	mov	x22, #0
	lsl	x28, x24, #3
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	add	x9, x8, x27
	ldr	w9, [x9, #8]
	cmp	w9, w20
	b.le	LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, x27]
	ldr	w0, [x8, x28]
	bl	_le16_to_cpu
	and	w8, w0, #0x7ff
	ubfx	w9, w0, #11, #2
	madd	w3, w8, w9, w8
	ldr	x8, [x19, #80]
	str	w3, [x8, x22, lsl #2]
	ldr	w0, [x19, #32]
	mov	x1, x23
	mov	x2, x22
	bl	_dev_dbg
	add	x22, x22, #1
	ldrsw	x8, [x19, #72]
	add	x27, x27, #16
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8, #4]
	add	x2, x8, #1
	ldr	w8, [x19]
	cmp	w2, w8
	b.ge	LBB0_27
; %bb.8:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x26, [x8, x2, lsl #3]
	ldr	x8, [x26, #8]
	ldr	w9, [x8, #8]
	cmp	w9, w20
	b.le	LBB0_23
; %bb.9:
	ldr	x8, [x8]
	add	x8, x8, x24, lsl #3
	ldr	w2, [x8, #4]
	str	w2, [x19, #64]
	ldr	w3, [x26]
	str	w3, [x19, #48]
	ldr	w0, [x19, #32]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	ldr	w2, [x19, #48]
	ldr	w3, [x25]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kmalloc_array
	str	x0, [x19, #56]
	cbz	x0, LBB0_26
; %bb.10:
	ldr	w8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x27, #0
	mov	x22, #0
	lsl	x28, x24, #3
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	add	x9, x8, x27
	ldr	w9, [x9, #8]
	cmp	w9, w20
	b.le	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x8, x27]
	ldr	w0, [x8, x28]
	bl	_le16_to_cpu
	and	w8, w0, #0x7ff
	ubfx	w9, w0, #11, #2
	madd	w3, w8, w9, w8
	ldr	x8, [x19, #56]
	str	w3, [x8, x22, lsl #2]
	ldr	w0, [x19, #32]
	mov	x1, x23
	mov	x2, x22
	bl	_dev_dbg
	add	x22, x22, #1
	ldrsw	x8, [x19, #48]
	add	x27, x27, #16
	cmp	x22, x8
	b.lt	LBB0_12
LBB0_14:
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8, #8]
	add	x2, x8, #1
	ldr	w8, [x19]
	cmp	w2, w8
	b.ge	LBB0_28
; %bb.15:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x23, [x8, x2, lsl #3]
	ldr	x8, [x23, #8]
	ldr	w9, [x8, #8]
	cmp	w9, w20
	b.le	LBB0_23
; %bb.16:
	ldr	x8, [x8]
	add	x8, x8, x24, lsl #3
	ldr	w2, [x8, #4]
	str	w2, [x19, #24]
	ldr	w3, [x23]
	str	w3, [x19, #8]
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_info
	ldr	w2, [x19, #8]
	ldr	w3, [x25]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kmalloc_array
	str	x0, [x19, #16]
	cbz	x0, LBB0_26
; %bb.17:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.18:
	mov	x25, #0
	mov	x21, #0
	lsl	x24, x24, #3
Lloh12:
	adrp	x22, l_.str.2@PAGE
Lloh13:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x9, x8, x25
	ldr	w9, [x9, #8]
	cmp	w9, w20
	b.le	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x8, x25]
	ldr	w0, [x8, x24]
	bl	_le16_to_cpu
	and	w8, w0, #0x7ff
	ubfx	w9, w0, #11, #2
	madd	w3, w8, w9, w8
	ldr	x8, [x19, #16]
	str	w3, [x8, x21, lsl #2]
	ldr	w0, [x19, #32]
	mov	x1, x22
	mov	x2, x21
	bl	_dev_dbg
	mov	w0, #0
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x25, x25, #16
	cmp	x21, x8
	b.lt	LBB0_19
	b	LBB0_25
LBB0_21:
	ldr	w0, [x19, #32]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_22:
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
LBB0_23:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_24
LBB0_27:
	ldr	w0, [x19, #32]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_28:
	ldr	w0, [x19, #32]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_29:
	mov	w0, #0
	b	LBB0_25
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Video PCB interface #%d doesn't exist\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"video EndPoint Addr 0x%x, Alternate settings: %i\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Alternate setting %i, max size= %i\n"

l_.str.3:                               ; @.str.3
	.asciz	"VBI PCB interface #%d doesn't exist\n"

l_.str.4:                               ; @.str.4
	.asciz	"VBI EndPoint Addr 0x%x, Alternate settings: %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"Sliced CC PCB interface #%d doesn't exist\n"

l_.str.6:                               ; @.str.6
	.asciz	"sliced CC EndPoint Addr 0x%x, Alternate settings: %i\n"

	.no_dead_strip	_cx231xx_init_v4l2
.subsections_via_symbols
