	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_load_dll
_handle_load_dll:                       ## @handle_load_dll
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movb	$0, -1(%r15,%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	movq	_current_event@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_21
## %bb.1:
	testq	%r15, %r15
	je	LBB0_21
## %bb.2:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %r15
	xorl	%ebx, %ebx
	movq	_current_process_handle@GOTPCREL(%rip), %rax
	leaq	-52(%rbp), %r8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	$0, -52(%rbp)
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	$16, %ecx
	movq	%r8, %r13
	callq	_read_process_memory
	movslq	-52(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%rax), %rcx
	xorl	%edx, %edx
	movq	_current_event@GOTPCREL(%rip), %rsi
	cmpq	$0, 16(%rsi)
	setne	%dl
	movq	%r14, %rsi
	movq	%r13, %r8
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rsi)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	addq	%rdx, %rsi
	incq	%rsi
	incl	%ebx
	cmpq	%rcx, %rsi
	jb	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r14
	addq	$16, %r12
	cmpq	%r15, %r14
	movq	_current_process_handle@GOTPCREL(%rip), %rax
	jb	LBB0_3
	jmp	LBB0_13
LBB0_12:
	incl	%ebx
LBB0_13:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.14:
	movl	%ebx, %edi
	callq	_alloca
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%rax, %r14
	movq	_current_event@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_16
## %bb.17:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	movq	%r14, %r8
	movl	%ebx, %r9d
	pushq	$0
	pushq	$0
	callq	_WideCharToMultiByte
	addq	$16, %rsp
	jmp	LBB0_19
LBB0_16:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movb	$47, (%rax)
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$92, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_18
## %bb.20:
	movq	_current_event@GOTPCREL(%rip), %rax
	movl	8(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf_unfiltered
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	$1, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_current_event,24,3             ## @current_event
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_current_process_handle,4,2     ## @current_process_handle
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x:%s"

L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_handle_load_dll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_load_dll
_handle_load_dll:                       ; @handle_load_dll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x19, x9, x10
	mov	sp, x19
	add	x9, x8, x19
	sturb	wzr, [x9, #-1]
	strb	wzr, [x19]
Lloh8:
	adrp	x23, _current_event@GOTPAGE
Lloh9:
	ldr	x23, [x23, _current_event@GOTPAGEOFF]
	ldr	x21, [x23]
	cmp	x21, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_3
LBB0_1:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.2:
	mov	w0, #1
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w20, #0
	add	x24, x19, x8
Lloh13:
	adrp	x25, _current_process_handle@GOTPAGE
Lloh14:
	ldr	x25, [x25, _current_process_handle@GOTPAGEOFF]
	mov	x22, x19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	stur	wzr, [x29, #-76]
	ldr	w0, [x25]
	sub	x4, x29, #76
	mov	x1, x21
	mov	x2, x22
	mov	w3, #16
	bl	_read_process_memory
	ldursw	x8, [x29, #-76]
	cmp	w8, #0
	ccmp	x22, x19, #0, eq
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x22, x8
	ldr	x10, [x23, #16]
	cmp	x10, #0
	cset	w10, ne
	mov	x11, x22
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x11]
	cbz	w12, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x11, x11, x10
	add	x11, x11, #1
	add	w20, w20, #1
	cmp	x11, x9
	b.lo	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	add	x21, x21, #16
	cmp	x22, x24
	b.lo	LBB0_4
	b	LBB0_12
LBB0_11:
	add	w20, w20, #1
LBB0_12:
	cbz	w20, LBB0_1
; %bb.13:
	mov	x0, x20
	bl	_alloca
	cbz	x0, LBB0_1
; %bb.14:
	mov	x21, x0
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_16
; %bb.15:
Lloh15:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x19
	mov	x3, x20
	mov	x4, x21
	mov	x5, x20
	mov	w6, #0
	mov	w7, #0
	bl	_WideCharToMultiByte
	b	LBB0_17
LBB0_16:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
LBB0_17:
	mov	x0, x21
	mov	w1, #92
	bl	_strchr
	cbz	x0, LBB0_20
; %bb.18:
	mov	w19, #47
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	strb	w19, [x0]
	mov	x0, x21
	mov	w1, #92
	bl	_strchr
	cbnz	x0, LBB0_19
LBB0_20:
	ldr	w8, [x23, #8]
	stp	x8, x21, [sp, #-16]!
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_unfiltered
	add	sp, sp, #16
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf_unfiltered
	b	LBB0_1
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_current_event,24,3             ; @current_event
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_current_process_handle,4,2     ; @current_process_handle
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x:%s"

l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_handle_load_dll
.subsections_via_symbols
