	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_find_by_addr            ## -- Begin function module_find_by_addr
	.p2align	4, 0x90
_module_find_by_addr:                   ## @module_find_by_addr
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DMT_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	_DMT_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_module_find_by_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_DMT_ELF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_module_find_by_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_DMT_MACHO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_module_find_by_addr
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movq	_ERROR_MOD_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%rax), %rax
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%edx, (%rax)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax), %rcx
	cmpq	%rbx, %rcx
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	16(%rax), %rcx
	cmpq	%rbx, %rcx
	jle	LBB0_11
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DMT_UNKNOWN,4,2                ## @DMT_UNKNOWN
	.comm	_DMT_PE,4,2                     ## @DMT_PE
	.comm	_DMT_ELF,4,2                    ## @DMT_ELF
	.comm	_DMT_MACHO,4,2                  ## @DMT_MACHO
	.comm	_ERROR_MOD_NOT_FOUND,4,2        ## @ERROR_MOD_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_find_by_addr            ; -- Begin function module_find_by_addr
	.p2align	2
_module_find_by_addr:                   ; @module_find_by_addr
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DMT_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMT_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _DMT_PE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMT_PE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_module_find_by_addr
	cbnz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _DMT_ELF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMT_ELF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_module_find_by_addr
	cbnz	x0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _DMT_MACHO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMT_MACHO@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_module_find_by_addr
	cbnz	x0, LBB0_6
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20]
	cbnz	x0, LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _ERROR_MOD_NOT_FOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR_MOD_NOT_FOUND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_SetLastError
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0, #8]
	cmp	x8, x19
	b.gt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x0, #16]
	add	x8, x9, x8
	cmp	x8, x19
	b.le	LBB0_7
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMT_UNKNOWN,4,2                ; @DMT_UNKNOWN
	.comm	_DMT_PE,4,2                     ; @DMT_PE
	.comm	_DMT_ELF,4,2                    ; @DMT_ELF
	.comm	_DMT_MACHO,4,2                  ; @DMT_MACHO
	.comm	_ERROR_MOD_NOT_FOUND,4,2        ; @ERROR_MOD_NOT_FOUND
.subsections_via_symbols
