	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_entry_num_slots
_get_entry_num_slots:                   ## @get_entry_num_slots
	.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	(%rdi), %rax
	movq	_EFI_CONVENTIONAL_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	$1, %r12d
	movl	%r14d, %ecx
	shlq	%cl, %r12
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	16(%r13), %rax
	movslq	8(%r13), %rcx
	movq	_EFI_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx), %rsi
	decq	%rsi
	callq	_min
	movq	%rax, %rbx
	movq	16(%r13), %rdi
	movq	%r12, %rsi
	callq	_round_up
	movq	%rax, %r13
	subq	%r15, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_round_down
	subq	%r13, %rax
	jae	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %ecx
	shrq	%cl, %rax
	incq	%rax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_CONVENTIONAL_MEMORY,8,3    ## @EFI_CONVENTIONAL_MEMORY
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_EFI_PAGE_SIZE,4,2              ## @EFI_PAGE_SIZE
	.no_dead_strip	_get_entry_num_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_entry_num_slots
_get_entry_num_slots:                   ; @get_entry_num_slots
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EFI_CONVENTIONAL_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFI_CONVENTIONAL_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #1
	lsl	x22, x8, x2
Lloh3:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21, #8]
Lloh6:
	adrp	x10, _EFI_PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EFI_PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x10, [x10]
	madd	x8, x10, x9, x8
	sub	x1, x8, #1
	bl	_min
	mov	x23, x0
	ldr	x0, [x21, #16]
	mov	x1, x22
	bl	_round_up
	mov	x21, x0
	sub	x8, x23, x20
	add	x0, x8, #1
	mov	x1, x22
	bl	_round_down
	subs	x8, x0, x21
	b.hs	LBB0_3
LBB0_2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	lsr	x8, x8, x19
	add	x0, x8, #1
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_CONVENTIONAL_MEMORY,8,3    ; @EFI_CONVENTIONAL_MEMORY
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_EFI_PAGE_SIZE,4,2              ; @EFI_PAGE_SIZE
	.no_dead_strip	_get_entry_num_slots
.subsections_via_symbols
