	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___RtlImageRvaToVa              ## -- Begin function __RtlImageRvaToVa
	.p2align	4, 0x90
___RtlImageRvaToVa:                     ## @__RtlImageRvaToVa
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r12
	movq	(%rcx), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	movl	(%r13), %edi
	callq	_SWAPD
	cmpq	%r14, %rax
	jg	LBB0_4
## %bb.3:
	movl	(%r13), %edi
	callq	_SWAPD
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %edi
	callq	_SWAPD
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%r14, %rax
	jg	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_RtlImageRvaToSection
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r13
	movq	%rax, (%r12)
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_RtlImageRvaToSection
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	addq	%r14, %r15
	movl	4(%r13), %edi
	callq	_SWAPD
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	(%r13), %edi
	callq	_SWAPD
	subq	%rax, %rbx
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___RtlImageRvaToVa              ; -- Begin function __RtlImageRvaToVa
	.p2align	2
___RtlImageRvaToVa:                     ; @__RtlImageRvaToVa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	cbz	x3, LBB0_6
; %bb.1:
	mov	x22, x3
	ldr	x21, [x3]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	w0, [x21]
	bl	_SWAPD
	cmp	x0, x19
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_SWAPD
	mov	x24, x0
	ldr	w0, [x21, #8]
	bl	_SWAPD
	add	x8, x0, x24
	cmp	x8, x19
	b.gt	LBB0_7
LBB0_4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_RtlImageRvaToSection
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	str	x0, [x22]
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_RtlImageRvaToSection
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_7:
	add	x19, x20, x19
	ldr	w0, [x21, #4]
	bl	_SWAPD
	add	x19, x19, x0
	ldr	w0, [x21]
	bl	_SWAPD
	sub	x0, x19, x0
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
