	.file	"extr_hook.c_IntLoadHookModule.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IntLoadHookModule. Client PID: %p\n"
	.align 8
.LC1:
	.string	"co_IntClientLoadLibrary returned %d\n"
	.text
	.p2align 4
	.globl	IntLoadHookModule
	.type	IntLoadHookModule, @function
IntLoadHookModule:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	PsGetCurrentProcessWin32Process@PLT
	mov	edi, DWORD PTR 4[rax]
	mov	rbx, rax
	call	PsGetProcessId@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	TRACE@PLT
	cmp	DWORD PTR WH_APIHOOK[rip], ebp
	mov	r13, QWORD PTR FALSE[rip]
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR W32PF_APIHOOKLOADED[rip]
	mov	r13, QWORD PTR TRUE[rip]
	mov	ecx, eax
	and	ecx, edx
	test	r12, r12
	jne	.L3
	test	ecx, ecx
	jne	.L1
	or	eax, edx
	mov	rcx, r13
	xor	edx, edx
	mov	DWORD PTR [rbx], eax
	lea	rsi, strUahInitFunc[rip]
	lea	rdi, strUahModule[rip]
	call	co_IntClientLoadLibrary@PLT
	lea	rdi, .LC1[rip]
	mov	r13, rax
	mov	rsi, rax
	call	TRACE@PLT
	test	r13, r13
	jne	.L1
.L12:
	mov	eax, DWORD PTR W32PF_APIHOOKLOADED[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	test	ecx, ecx
	je	.L1
	mov	rcx, r13
	mov	rdx, r12
	xor	esi, esi
	xor	edi, edi
	call	co_IntClientLoadLibrary@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	IntLoadHookModule, .-IntLoadHookModule
	.comm	strUahModule,4,4
	.comm	strUahInitFunc,4,4
	.comm	WH_APIHOOK,4,4
	.comm	W32PF_APIHOOKLOADED,4,4
	.comm	TRUE,8,8
	.comm	STUB,4,4
	.comm	FALSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hook.c_IntLoadHookModule.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IntLoadHookModule. Client PID: %p\012\000"
	.align	2
.LC1:
	.ascii	"co_IntClientLoadLibrary returned %d\012\000"
	.text
	.align	2
	.global	IntLoadHookModule
	.syntax unified
	.arm
	.fpu softvfp
	.type	IntLoadHookModule, %function
IntLoadHookModule:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r0
	bl	PsGetCurrentProcessWin32Process
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	PsGetProcessId
	mov	r1, r0
	ldr	r0, .L15
	bl	TRACE
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L14
	ldr	r3, .L15+8
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r7, .L15+12
	ldr	r3, [r4]
	ldr	r1, [r7]
	ldr	r0, .L15+16
	cmp	r6, #0
	ldr	r5, [r0]
	and	r2, r3, r1
	bne	.L3
	cmp	r2, #0
	bne	.L1
	orr	r3, r3, r1
	str	r3, [r4]
	ldr	r1, .L15+20
	mov	r3, r5
	ldr	r0, .L15+24
	bl	co_IntClientLoadLibrary
	mov	r5, r0
	ldr	r0, .L15+28
	mov	r1, r5
	bl	TRACE
	cmp	r5, #0
	bne	.L1
.L12:
	ldr	r2, [r7]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L3:
	cmp	r2, #0
	beq	.L1
	mov	r1, #0
	mov	r3, r5
	mov	r2, r6
	mov	r0, r1
	bl	co_IntClientLoadLibrary
	subs	r5, r0, #0
	beq	.L1
	b	.L12
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	WH_APIHOOK
	.word	FALSE
	.word	W32PF_APIHOOKLOADED
	.word	TRUE
	.word	strUahInitFunc
	.word	strUahModule
	.word	.LC1
	.size	IntLoadHookModule, .-IntLoadHookModule
	.comm	strUahModule,4,4
	.comm	strUahInitFunc,4,4
	.comm	WH_APIHOOK,4,4
	.comm	W32PF_APIHOOKLOADED,4,4
	.comm	TRUE,4,4
	.comm	STUB,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
