	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_enc_v4l2_init             ## -- Begin function solo_enc_v4l2_init
	.p2align	4, 0x90
_solo_enc_v4l2_init:                    ## @solo_enc_v4l2_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	addq	$52, %rdi
	callq	_init_waitqueue_head
	movl	$4, (%r14)
	movq	32(%r14), %rdi
	leaq	48(%r14), %rdx
	movl	$4, %esi
	callq	_pci_alloc_consistent
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	4(%r14), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_solo_enc_alloc
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	24(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	4(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_5:
	cmpl	%eax, %r12d
	jne	LBB0_6
LBB0_9:
	movq	8(%r14), %rcx
	movq	_SOLO_DEV_6010@GOTPCREL(%rip), %rdx
	movl	20(%r14), %esi
	movl	%esi, %edi
	shll	$4, %edi
	shll	$2, %esi
	cmpq	(%rdx), %rcx
	leal	(%rsi,%rsi,4), %ecx
	cmovel	%edi, %ecx
	movl	%ecx, 16(%r14)
	movq	32(%r14), %rdi
	movq	24(%r14), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	cltq
	movq	-8(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_solo_ring_start                ## TAILCALL
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_3:
	movl	4(%r14), %eax
	cmpl	%eax, %r12d
	je	LBB0_9
LBB0_6:
	movq	24(%r14), %rax
	movl	%r12d, %ebx
	movq	(%rax,%rbx,8), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	testl	%r12d, %r12d
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	-8(%rax,%rbx,8), %rdi
	callq	_solo_enc_free
	decq	%rbx
	jne	LBB0_7
LBB0_8:
	movq	32(%r14), %rdi
	movl	(%r14), %esi
	movq	40(%r14), %rdx
	movl	48(%r14), %ecx
	callq	_pci_free_consistent
	movq	$0, 40(%r14)
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SOLO_DEV_6010,8,3              ## @SOLO_DEV_6010
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encoders as /dev/video%d-%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_enc_v4l2_init             ; -- Begin function solo_enc_v4l2_init
	.p2align	2
_solo_enc_v4l2_init:                    ; @solo_enc_v4l2_init
	.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, x1
	mov	x19, x0
	add	x0, x0, #52
	bl	_init_waitqueue_head
	mov	w8, #4
	str	w8, [x19]
	ldr	x0, [x19, #32]
	add	x2, x19, #48
	mov	w1, #4
	bl	_pci_alloc_consistent
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_solo_enc_alloc
	ldr	x8, [x19, #24]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_6:
	mov	w20, #0
LBB0_7:
	cmp	w20, w8
	b.ne	LBB0_10
LBB0_8:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _SOLO_DEV_6010@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOLO_DEV_6010@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w11, [x19, #20]
	lsl	w12, w11, #4
	add	w11, w11, w11, lsl #2
	lsl	w11, w11, #2
	cmp	x9, x10
	csel	w9, w12, w11, eq
	str	w9, [x19, #16]
	ldp	x9, x0, [x19, #24]
	ldr	x10, [x9]
	ldr	x10, [x10]
	ldr	w2, [x10]
	sub	w8, w8, #1
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x8, [x8]
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, 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	_solo_ring_start
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.eq	LBB0_8
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, w20, uxtw #3]
	bl	_PTR_ERR
	mov	x21, x0
	cbz	w20, LBB0_13
; %bb.11:
	mov	w8, w20
	lsl	x8, x8, #3
	sub	x20, x8, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x20]
	bl	_solo_enc_free
	sub	x20, x20, #8
	cmn	x20, #8
	b.ne	LBB0_12
LBB0_13:
	ldr	w1, [x19]
	ldp	x0, x2, [x19, #32]
	ldr	w3, [x19, #48]
	bl	_pci_free_consistent
	str	xzr, [x19, #40]
LBB0_14:
	mov	x0, x21
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SOLO_DEV_6010,8,3              ; @SOLO_DEV_6010
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encoders as /dev/video%d-%d\n"

.subsections_via_symbols
