	.file	"extr_kxld_kext.c_kxld_kext_relocate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kxld_kext_relocate
	.type	kxld_kext_relocate, @function
kxld_kext_relocate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	check@PLT
	mov	rdi, rbp
	call	check@PLT
	mov	rdi, r12
	call	check@PLT
	mov	rdi, r13
	call	check@PLT
	mov	edi, DWORD PTR [rbx]
	call	kxld_object_index_cxx_symbols_by_value@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	edi, DWORD PTR [rbx]
	call	kxld_object_index_symbols_by_name@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, r15d
	call	kxld_object_relocate@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbx
	call	resolve_symbols@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, rbx
	call	create_vtables@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	rax, QWORD PTR FALSE[rip]
	cmp	QWORD PTR isSplitKext[rip], rax
	je	.L5
.L2:
	mov	rdi, rbx
	call	validate_symbols@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	call	kxld_object_process_relocations@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	mov	eax, DWORD PTR KERN_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, rbx
	mov	rdx, r12
	call	patch_vtables@PLT
	mov	esi, DWORD PTR finish[rip]
	mov	edi, eax
	call	require_noerr@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	kxld_kext_relocate, .-kxld_kext_relocate
	.comm	isSplitKext,8,8
	.comm	finish,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_FAILURE,4,4
	.comm	FALSE,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_kxld_kext.c_kxld_kext_relocate.c"
	.text
	.align	2
	.global	kxld_kext_relocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	kxld_kext_relocate, %function
kxld_kext_relocate:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	mov	r7, r3
	mov	r4, r0
	mov	r8, r1
	ldr	r9, [sp, #32]
	bl	check
	mov	r0, r6
	bl	check
	mov	r0, r7
	bl	check
	ldr	r5, .L6
	mov	r0, r9
	bl	check
	ldr	r0, [r4]
	bl	kxld_object_index_cxx_symbols_by_value
	ldr	r1, [r5]
	bl	require_noerr
	ldr	r0, [r4]
	bl	kxld_object_index_symbols_by_name
	ldr	r1, [r5]
	bl	require_noerr
	mov	r1, r8
	ldr	r0, [r4]
	bl	kxld_object_relocate
	ldr	r1, [r5]
	bl	require_noerr
	mov	r2, r9
	mov	r1, r7
	mov	r0, r4
	bl	resolve_symbols
	ldr	r1, [r5]
	bl	require_noerr
	mov	r2, #0
	ldr	r1, [sp, #36]
	mov	r0, r4
	bl	create_vtables
	ldr	r1, [r5]
	bl	require_noerr
	ldr	r2, .L6+4
	ldr	r3, .L6+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L2:
	mov	r0, r4
	bl	validate_symbols
	ldr	r1, [r5]
	bl	require_noerr
	mov	r1, r6
	ldr	r0, [r4]
	bl	kxld_object_process_relocations
	ldr	r1, [r5]
	bl	require_noerr
	ldr	r3, .L6+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, r6
	mov	r2, r7
	mov	r0, r4
	bl	patch_vtables
	ldr	r1, [r5]
	bl	require_noerr
	b	.L2
.L7:
	.align	2
.L6:
	.word	finish
	.word	isSplitKext
	.word	FALSE
	.word	KERN_SUCCESS
	.size	kxld_kext_relocate, .-kxld_kext_relocate
	.comm	isSplitKext,4,4
	.comm	finish,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_FAILURE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
