	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pCDevSettings_GetDeviceInstanceId
_pCDevSettings_GetDeviceInstanceId:     ## @pCDevSettings_GetDeviceInstanceId
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DPRINT1
	movq	_CM_LOCATE_DEVNODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movl	%ebx, %esi
	callq	_CM_Locate_DevNodeW
	movq	_CR_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DPRINT1
	movl	-24(%rbp), %esi
	leaq	-20(%rbp), %rdi
	xorl	%edx, %edx
	callq	_CM_Get_Device_ID_Size
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT1
	movq	_LMEM_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %eax
	leal	4(,%rax,4), %esi
	callq	_LocalAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT1
	movl	-24(%rbp), %edi
	movl	-20(%rbp), %edx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_CM_Get_Device_IDW
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_LocalFree
	xorl	%r14d, %r14d
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_DPRINT1
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CDevSettings::GetDeviceInstanceId(%ws) UNIMPLEMENTED!\n"

	.comm	_CM_LOCATE_DEVNODE_NORMAL,4,2   ## @CM_LOCATE_DEVNODE_NORMAL
	.comm	_CR_SUCCESS,8,3                 ## @CR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Success1\n"

L_.str.2:                               ## @.str.2
	.asciz	"Success2\n"

	.comm	_LMEM_FIXED,4,2                 ## @LMEM_FIXED
L_.str.3:                               ## @.str.3
	.asciz	"Success3\n"

L_.str.4:                               ## @.str.4
	.asciz	"instance id: %ws\n"

	.no_dead_strip	_pCDevSettings_GetDeviceInstanceId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pCDevSettings_GetDeviceInstanceId
_pCDevSettings_GetDeviceInstanceId:     ; @pCDevSettings_GetDeviceInstanceId
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
Lloh2:
	adrp	x8, _CM_LOCATE_DEVNODE_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CM_LOCATE_DEVNODE_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, x19
	bl	_CM_Locate_DevNodeW
Lloh5:
	adrp	x20, _CR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _CR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT1
	ldr	w1, [sp, #12]
	add	x0, sp, #8
	mov	w2, #0
	bl	_CM_Get_Device_ID_Size
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT1
Lloh11:
	adrp	x8, _LMEM_FIXED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LMEM_FIXED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w8, [sp, #8]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_LocalAlloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.3:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINT1
	ldp	w2, w0, [sp, #8]
	mov	x1, x19
	mov	w3, #0
	bl	_CM_Get_Device_IDW
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_LocalFree
	mov	x19, #0
LBB0_5:
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINT1
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CDevSettings::GetDeviceInstanceId(%ws) UNIMPLEMENTED!\n"

	.comm	_CM_LOCATE_DEVNODE_NORMAL,4,2   ; @CM_LOCATE_DEVNODE_NORMAL
	.comm	_CR_SUCCESS,8,3                 ; @CR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Success1\n"

l_.str.2:                               ; @.str.2
	.asciz	"Success2\n"

	.comm	_LMEM_FIXED,4,2                 ; @LMEM_FIXED
l_.str.3:                               ; @.str.3
	.asciz	"Success3\n"

l_.str.4:                               ; @.str.4
	.asciz	"instance id: %ws\n"

	.no_dead_strip	_pCDevSettings_GetDeviceInstanceId
.subsections_via_symbols
