	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _module_name_from_addr
__module_name_from_addr:                ## @_module_name_from_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	_MAXDWORD@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jb	LBB0_3
## %bb.1:
	movq	%rcx, %rbx
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	callq	_VirtualQuery
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.2:
	movl	-40(%rbp), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_GetModuleFileNameA
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	$92, %esi
	callq	_strrchr
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_6:
	cmpq	%rax, %rbx
	movq	%rbx, %rcx
	cmovbq	%rax, %rcx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	testq	%rbx, %rbx
	cmoveq	%rbx, %rcx
	movq	%rcx, %rax
LBB0_7:
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%r12, %rcx
	movq	%rcx, (%r15)
	movq	-40(%rbp), %rax
	jmp	LBB0_8
LBB0_3:
	movb	$0, (%r12)
	movq	%r12, (%r15)
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, (%r14)
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDWORD,8,3                   ## @MAXDWORD
	.no_dead_strip	__module_name_from_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _module_name_from_addr
__module_name_from_addr:                ; @_module_name_from_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _MAXDWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXDWORD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.lo	LBB0_7
; %bb.1:
	mov	x22, x3
	add	x1, sp, #8
	mov	w2, #8
	bl	_VirtualQuery
	cmp	w0, #8
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	x2, x22
	bl	_GetModuleFileNameA
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #92
	bl	_strrchr
	mov	x22, x0
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.4:
	cbz	x22, LBB0_6
LBB0_5:
	cmp	x22, x0
	ccmp	x0, #0, #4, lo
	ccmp	x22, #0, #4, ne
	csel	x0, x0, x22, ne
LBB0_6:
	cmp	x0, #0
	csinc	x8, x19, x0, eq
	str	x8, [x21]
	ldr	x8, [sp, #8]
	b	LBB0_8
LBB0_7:
	mov	x8, #0
	strb	wzr, [x19]
	str	x19, [x21]
LBB0_8:
	str	x8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDWORD,8,3                   ; @MAXDWORD
	.no_dead_strip	__module_name_from_addr
.subsections_via_symbols
