	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function offset_from_vma
_offset_from_vma:                       ## @offset_from_vma
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_get_program_headers
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_elf_header@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.3:
	movq	_program_headers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %rcx
	movq	_PT_LOAD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rbx, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$40, %rax
	cmpq	%rcx, %rax
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rsi
	xorl	%edi, %edi
	subq	16(%rax), %rdi
	andq	%rsi, %rdi
	cmpq	%rbx, %rdi
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rax), %rdi
	addq	%rsi, %rdi
	cmpq	%rdi, %r14
	jg	LBB0_8
## %bb.7:
	subq	%rsi, %rbx
	addq	32(%rax), %rbx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_warn
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot interpret virtual addresses without program headers.\n"

	.comm	_program_headers,8,3            ## @program_headers
	.comm	_elf_header,4,2                 ## @elf_header
	.comm	_PT_LOAD,8,3                    ## @PT_LOAD
L_.str.1:                               ## @.str.1
	.asciz	"Virtual address 0x%lx not located in any PT_LOAD segment.\n"

	.no_dead_strip	_offset_from_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function offset_from_vma
_offset_from_vma:                       ; @offset_from_vma
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_get_program_headers
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _elf_header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _elf_header@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _program_headers@GOTPAGE
Lloh4:
	ldr	x8, [x8, _program_headers@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w10, #40
	madd	x9, x9, x10, x8
Lloh6:
	adrp	x10, _PT_LOAD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PT_LOAD@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x11, x20, x19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #40
	cmp	x8, x9
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	cmp	x12, x10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x12, x13, [x8, #8]
	neg	x13, x13
	and	x13, x12, x13
	cmp	x13, x19
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x8, #24]
	add	x13, x13, x12
	cmp	x11, x13
	b.gt	LBB0_3
; %bb.7:
	ldr	x8, [x8, #32]
	sub	x9, x19, x12
	add	x19, x9, x8
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	str	x19, [sp]
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
LBB0_10:
	bl	_warn
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot interpret virtual addresses without program headers.\n"

	.comm	_program_headers,8,3            ; @program_headers
	.comm	_elf_header,4,2                 ; @elf_header
	.comm	_PT_LOAD,8,3                    ; @PT_LOAD
l_.str.1:                               ; @.str.1
	.asciz	"Virtual address 0x%lx not located in any PT_LOAD segment.\n"

	.no_dead_strip	_offset_from_vma
.subsections_via_symbols
