	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___RtlImageDirectoryEntryToData ## -- Begin function __RtlImageDirectoryEntryToData
	.p2align	4, 0x90
___RtlImageDirectoryEntryToData:        ## @__RtlImageDirectoryEntryToData
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	testb	$1, %bl
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rbx
	andq	$-2, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r13
LBB0_3:
	movq	%rbx, %rdi
	callq	_RtlImageNtHeader
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r14
	movl	16(%rax), %edi
	callq	_SWAPD
	cmpq	%r12, %rax
	jbe	LBB0_11
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	4(%rax,%r12,8), %edi
	callq	_SWAPD
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %r15
	movq	8(%r14), %rax
	movl	(%rax,%r12,8), %edi
	callq	_SWAPD
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%r13, %r13
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_SWAPD
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_8:
	movslq	%ebx, %rax
	addq	%rax, %r15
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RtlImageRvaToVa                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___RtlImageDirectoryEntryToData ; -- Begin function __RtlImageDirectoryEntryToData
	.p2align	2
___RtlImageDirectoryEntryToData:        ; @__RtlImageDirectoryEntryToData
	.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	x21, x3
	mov	x22, x2
	sxtw	x8, w0
	and	x8, x8, #0xfffffffffffffffe
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	tst	x0, #0x1
	csel	x24, x1, x9, eq
	csel	x19, x0, x8, eq
	mov	x0, x19
	bl	_RtlImageNtHeader
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_SWAPD
	cmp	x0, x22
	b.ls	LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #3
	ldr	w0, [x8, #4]
	bl	_SWAPD
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	ldr	x8, [x20, #8]
	lsl	x9, x22, #3
	ldr	w0, [x8, x9]
	bl	_SWAPD
	str	x0, [x21]
	cbnz	x24, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	bl	_SWAPD
	cmp	x23, x0
	b.ge	LBB0_8
LBB0_5:
	add	x0, x23, w19, sxtw
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, #0
	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
	b	_RtlImageRvaToVa
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
