	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetDriverName
_GetDriverName:                         ## @GetDriverName
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rsi
	addq	$18, %rsi
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-44(%rbp), %r8
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_RegOpenKeyExA
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.1:
	movq	_MAX_DEVICE_IDENTIFIER_STRING@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	addq	$-4, %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r12), %rbx
	movl	-44(%rbp), %edi
	movl	(%r14), %r8d
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	callq	_RegQueryValueExA
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx
	movb	$0, (%rax,%rcx)
	movq	(%r14), %rdi
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_SafeAppendString
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_3:
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_MAX_DEVICE_IDENTIFIER_STRING,8,3 ## @MAX_DEVICE_IDENTIFIER_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	".dll"

L_.str.2:                               ## @.str.2
	.asciz	"InstalledDisplayDrivers"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_GetDriverName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetDriverName
_GetDriverName:                         ; @GetDriverName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh5:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x0]
	add	x1, x9, #18
Lloh8:
	adrp	x9, _KEY_QUERY_VALUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	add	x4, sp, #28
	mov	x0, x8
	mov	w2, #0
	bl	_RegOpenKeyExA
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.1:
Lloh11:
	adrp	x21, _MAX_DEVICE_IDENTIFIER_STRING@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MAX_DEVICE_IDENTIFIER_STRING@GOTPAGEOFF]
	ldr	x8, [x21]
	sub	x8, x8, #4
	stp	xzr, x8, [sp, #8]
	ldr	x22, [x22]
	ldr	w0, [sp, #28]
	ldr	w4, [x20]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #8
	add	x5, sp, #16
	mov	w2, #0
	bl	_RegQueryValueExA
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	strb	wzr, [x8, x9]
	ldr	x0, [x20]
	ldr	x1, [x21]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_SafeAppendString
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
LBB0_3:
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_MAX_DEVICE_IDENTIFIER_STRING,8,3 ; @MAX_DEVICE_IDENTIFIER_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	".dll"

l_.str.2:                               ; @.str.2
	.asciz	"InstalledDisplayDrivers"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_GetDriverName
.subsections_via_symbols
