	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Wow64QueryFlag                 ## -- Begin function Wow64QueryFlag
	.p2align	4, 0x90
_Wow64QueryFlag:                        ## @Wow64QueryFlag
	.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	_g_QueryFlag@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	cmpl	$-1, %ebx
	jne	LBB0_4
## %bb.1:
	movq	$0, -24(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NtCurrentProcess
	movq	_ProcessWow64Information@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_NtQueryInformationProcess
	movl	%eax, %edi
	callq	_NT_SUCCESS
	cmpq	$0, -24(%rbp)
	movl	$0, %ecx
	je	LBB0_3
## %bb.2:
	movq	_KEY_WOW64_64KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	movl	%ebx, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_QueryFlag,4,2                ## @g_QueryFlag
	.comm	_ProcessWow64Information,4,2    ## @ProcessWow64Information
	.comm	_KEY_WOW64_64KEY,4,2            ## @KEY_WOW64_64KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Wow64QueryFlag                 ; -- Begin function Wow64QueryFlag
	.p2align	2
_Wow64QueryFlag:                        ; @Wow64QueryFlag
	.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
Lloh0:
	adrp	x19, _g_QueryFlag@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_QueryFlag@GOTPAGEOFF]
	ldr	w0, [x19]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [sp, #8]
	bl	_NtCurrentProcess
Lloh2:
	adrp	x8, _ProcessWow64Information@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ProcessWow64Information@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #8
	mov	x4, #0
	bl	_NtQueryInformationProcess
	bl	_NT_SUCCESS
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
Lloh5:
	adrp	x8, _KEY_WOW64_64KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_WOW64_64KEY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	csel	w0, w8, wzr, ne
	str	w0, [x19]
LBB0_2:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_QueryFlag,4,2                ; @g_QueryFlag
	.comm	_ProcessWow64Information,4,2    ; @ProcessWow64Information
	.comm	_KEY_WOW64_64KEY,4,2            ; @KEY_WOW64_64KEY
.subsections_via_symbols
