	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ElAddCaptureDevice             ## -- Begin function ElAddCaptureDevice
	.p2align	4, 0x90
_ElAddCaptureDevice:                    ## @ElAddCaptureDevice
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_Zero
	movl	-52(%rbp), %edi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_StrCpy
	movl	(%rbx), %edi
	callq	_LockList
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_UnlockList
	jmp	LBB0_6
LBB0_5:
	movl	$24, %edi
	callq	_ZeroMalloc
	movq	%rax, %r12
	movl	20(%rax), %edi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_StrCpy
	leaq	16(%r12), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_Copy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	%rbx, 8(%r12)
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_Insert
	movq	_ElCaptureThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_NewThread
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_WaitThreadInit
	movl	(%rbx), %edi
	callq	_UnlockList
	movq	%rbx, %rdi
	callq	_ElSaveConfig
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ElCaptureThread,4,2            ## @ElCaptureThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ElAddCaptureDevice             ; -- Begin function ElAddCaptureDevice
	.p2align	2
_ElAddCaptureDevice:                    ; @ElAddCaptureDevice
	.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	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_6
; %bb.3:
	mov	x20, x3
	add	x0, sp, #8
	mov	w1, #24
	bl	_Zero
	ldr	w0, [sp, #28]
	mov	w1, #4
	mov	x2, x22
	bl	_StrCpy
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_Search
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_UnlockList
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #24
	bl	_ZeroMalloc
	mov	x23, x0
	ldr	w0, [x0, #20]
	mov	w1, #4
	mov	x2, x22
	bl	_StrCpy
	add	x0, x23, #16
	mov	x1, x21
	mov	w2, #4
	bl	_Copy
	str	w20, [x23]
	str	x19, [x23, #8]
	ldr	w0, [x19]
	mov	x1, x23
	bl	_Insert
Lloh0:
	adrp	x8, _ElCaptureThread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ElCaptureThread@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_NewThread
	str	w0, [x23, #4]
	bl	_WaitThreadInit
	ldr	w0, [x19]
	bl	_UnlockList
	mov	x0, x19
	bl	_ElSaveConfig
	mov	w0, #1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ElCaptureThread,4,2            ; @ElCaptureThread
.subsections_via_symbols
