	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spu_elf_check_vma              ## -- Begin function spu_elf_check_vma
	.p2align	4, 0x90
_spu_elf_check_vma:                     ## @spu_elf_check_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_elf_tdata
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	_PT_LOAD@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpq	%r8, (%rcx)
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %r9d
	testq	%r9, %r9
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rcx), %rdi
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rdx
	cmpq	%rdx, %r9
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rdx,8), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	4(%rax), %esi
	cmpl	%r14d, %esi
	jl	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r15d, %esi
	jg	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	addl	%ebx, %esi
	decl	%esi
	cmpl	%r15d, %esi
	jle	LBB0_9
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_LOAD,8,3                    ## @PT_LOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spu_elf_check_vma              ; -- Begin function spu_elf_check_vma
	.p2align	2
_spu_elf_check_vma:                     ; @spu_elf_check_vma
	.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, x2
	mov	x20, x1
	bl	_elf_tdata
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, _PT_LOAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PT_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x10, [x8]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x8, #8]
	cbz	w10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x8, #16]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x11]
	ldr	w12, [x0]
	cbz	w12, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w13, [x0, #4]
	cmp	w13, w20
	ccmp	w13, w19, #0, ge
	b.gt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w12, w12, w13
	sub	w12, w12, #1
	cmp	w12, w19
	b.le	LBB0_6
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_LOAD,8,3                    ; @PT_LOAD
.subsections_via_symbols
