	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableDialogTheme              ## -- Begin function EnableDialogTheme
	.p2align	4, 0x90
_EnableDialogTheme:                     ## @EnableDialogTheme
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_LoadLibraryA
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_GetProcAddress
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rcx
	movq	_ETDT_ENABLETAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	*%rcx
	movq	_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_5
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %r14
LBB0_5:
	movq	%rbx, %rdi
	callq	_FreeLibrary
LBB0_6:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uxtheme.dll"

L_.str.1:                               ## @.str.1
	.asciz	"EnableThemeDialogTexture"

	.comm	_ETDT_ENABLETAB,4,2             ## @ETDT_ENABLETAB
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableDialogTheme              ; -- Begin function EnableDialogTheme
	.p2align	2
_EnableDialogTheme:                     ; @EnableDialogTheme
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LoadLibraryA
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GetProcAddress
	cbz	x0, LBB0_4
; %bb.2:
	mov	x8, x0
Lloh4:
	adrp	x9, _ETDT_ENABLETAB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ETDT_ENABLETAB@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
Lloh7:
	adrp	x20, _TRUE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x20, _FALSE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x20, _FALSE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_5:
	mov	x0, x19
	bl	_FreeLibrary
LBB0_6:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uxtheme.dll"

l_.str.1:                               ; @.str.1
	.asciz	"EnableThemeDialogTexture"

	.comm	_ETDT_ENABLETAB,4,2             ; @ETDT_ENABLETAB
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
