	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EtGetDevice                    ## -- Begin function EtGetDevice
	.p2align	4, 0x90
_EtGetDevice:                           ## @EtGetDevice
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ERR_CAPTURE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	callq	_LockList
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_Zero
	movl	-40(%rbp), %edi
	movl	8(%r15), %edx
	movl	$4, %esi
	callq	_StrCpy
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	4(%r15), %rdi
	movq	%rbx, %rsi
	addq	$4, %rsi
	movl	$4, %edx
	callq	_Copy
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_2:
	movl	(%r12), %edi
	callq	_UnlockList
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_CAPTURE_NOT_FOUND,4,2      ## @ERR_CAPTURE_NOT_FOUND
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EtGetDevice                    ; -- Begin function EtGetDevice
	.p2align	2
_EtGetDevice:                           ; @EtGetDevice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _ERR_CAPTURE_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_CAPTURE_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0]
	bl	_LockList
	mov	x0, sp
	mov	w1, #12
	bl	_Zero
	ldr	w0, [sp, #8]
	ldr	w2, [x21, #8]
	mov	w1, #4
	bl	_StrCpy
	ldr	w0, [x19]
	mov	x1, sp
	bl	_Search
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	add	x0, x21, #4
	add	x1, x22, #4
	mov	w2, #4
	bl	_Copy
	ldr	w8, [x22]
	str	w8, [x21]
LBB0_2:
	ldr	w0, [x19]
	bl	_UnlockList
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_CAPTURE_NOT_FOUND,4,2      ; @ERR_CAPTURE_NOT_FOUND
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
