	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pCDevSettings_GetMonitorDevice
_pCDevSettings_GetMonitorDevice:        ## @pCDevSettings_GetMonitorDevice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$8, -16(%rbp)
	leaq	-16(%rbp), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_EnumDisplayDevicesW
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_LMEM_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-12(%rbp), %edi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %esi
	movl	%ebx, %edi
	callq	_LocalAlloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	-12(%rbp), %esi
	movq	%rax, %rdi
	callq	_wcscpy
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LMEM_FIXED,4,2                 ## @LMEM_FIXED
	.no_dead_strip	_pCDevSettings_GetMonitorDevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pCDevSettings_GetMonitorDevice
_pCDevSettings_GetMonitorDevice:        ; @pCDevSettings_GetMonitorDevice
	.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	w8, #8
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	w1, #0
	mov	w3, #0
	bl	_EnumDisplayDevicesW
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _LMEM_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LMEM_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [sp, #12]
	bl	_wcslen
	lsl	w8, w0, #2
	add	w1, w8, #4
	mov	x0, x19
	bl	_LocalAlloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_wcscpy
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LMEM_FIXED,4,2                 ; @LMEM_FIXED
	.no_dead_strip	_pCDevSettings_GetMonitorDevice
.subsections_via_symbols
