	.file	"extr_kernel_mach_header.c_getlastaddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	getlastaddr
	.type	getlastaddr, @function
getlastaddr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR _mh_execute_header[rip]
	lea	rax, _mh_execute_header[rip+8]
	test	rsi, rsi
	je	.L5
	mov	rdi, QWORD PTR LC_SEGMENT_KERNEL[rip]
	xor	edx, edx
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR [rax], rdi
	jne	.L3
	mov	rcx, QWORD PTR 16[rax]
	add	rcx, QWORD PTR 8[rax]
	cmp	r8, rcx
	cmovl	r8, rcx
.L3:
	add	rdx, 1
	add	rax, QWORD PTR 24[rax]
	cmp	rdx, rsi
	jne	.L4
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r8d, r8d
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	getlastaddr, .-getlastaddr
	.comm	_mh_execute_header,8,8
	.comm	LC_SEGMENT_KERNEL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kernel_mach_header.c_getlastaddr.c"
	.text
	.align	2
	.global	getlastaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	getlastaddr, %function
getlastaddr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	ip, [r3], #4
	cmp	ip, #0
	beq	.L5
	mov	r2, #0
	mov	r0, r2
	ldr	r1, .L13+4
	push	{r4, lr}
	ldr	lr, [r1]
.L4:
	ldr	r1, [r3]
	add	r2, r2, #1
	cmp	r1, lr
	bne	.L3
	ldmib	r3, {r1, r4}
	add	r1, r1, r4
	cmp	r0, r1
	movlt	r0, r1
.L3:
	ldr	r1, [r3, #12]
	cmp	r2, ip
	add	r3, r3, r1
	bne	.L4
	pop	{r4, pc}
.L5:
	mov	r0, ip
	bx	lr
.L14:
	.align	2
.L13:
	.word	_mh_execute_header
	.word	LC_SEGMENT_KERNEL
	.size	getlastaddr, .-getlastaddr
	.comm	_mh_execute_header,4,4
	.comm	LC_SEGMENT_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
