	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rva_to_offset
_rva_to_offset:                         ## @rva_to_offset
	.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
	callq	_IMAGE_FIRST_SECTION
	cmpq	%rbx, (%rax)
	jg	LBB0_10
## %bb.1:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.2:
	addq	$24, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rax
	decq	%rcx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rax), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rdx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rax), %rsi
	cmpq	%rbx, %rsi
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rsi, %rdx
	cmpq	%rbx, %rdx
	jle	LBB0_8
## %bb.7:
	movq	-24(%rax), %rax
	movq	%rbx, %rcx
	subq	%rsi, %rcx
	addq	%rax, %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rva_to_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rva_to_offset
_rva_to_offset:                         ; @rva_to_offset
	.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
	bl	_IMAGE_FIRST_SECTION
	ldr	x8, [x0]
	cmp	x8, x19
	b.gt	LBB0_9
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.2:
	add	x9, x0, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cbnz	x10, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x9, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x9]
	add	x10, x11, x10
	cmp	x11, x19
	ccmp	x10, x19, #4, le
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_7:
	mov	x19, #0
	b	LBB0_9
LBB0_8:
	ldur	x8, [x9, #-16]
	sub	x9, x19, x11
	add	x9, x9, x8
	cmp	x8, #0
	csel	x19, x19, x9, eq
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rva_to_offset
.subsections_via_symbols
