	.file	"extr_kld.c_kld_current_sos.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"kld_current_sos: Can't read filename: %s\n"
	.align 8
.LC1:
	.string	"kld_current_sos: Can't read pathname for \"%s\": %s\n"
	.align 8
.LC2:
	.string	"kld_current_sos: Invalid address for kld \"%s\""
	.text
	.p2align 4
	.type	kld_current_sos, @function
kld_current_sos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR linker_files_addr[rip], 0
	je	.L14
	mov	rdi, QWORD PTR kernel_file_addr[rip]
	test	rdi, rdi
	je	.L14
	cmp	QWORD PTR off_address[rip], 0
	je	.L14
	xor	r13d, r13d
	cmp	QWORD PTR off_filename[rip], 0
	je	.L1
	cmp	QWORD PTR off_next[rip], 0
	je	.L1
	mov	QWORD PTR 8[rsp], 0
	call	read_pointer@PLT
	mov	rdi, QWORD PTR linker_files_addr[rip]
	mov	r12, rax
	call	read_pointer@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L1
	lea	r14, 8[rsp]
	lea	r13, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	r12, rbx
	je	.L4
	mov	edi, 32
	lea	r15, 16[rsp]
	call	xmalloc@PLT
	mov	edx, 32
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	call	memset@PLT
	mov	edi, 8
	call	xmalloc@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	QWORD PTR [rax], 0
	mov	rdi, QWORD PTR off_filename[rip]
	add	rdi, rbx
	call	read_pointer@PLT
	mov	rcx, r13
	mov	edx, 8
	mov	rsi, r15
	mov	rdi, rax
	call	target_read_string@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	edi, edi
	jne	.L21
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, 8
	call	strlcpy@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	xfree@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, 8
	call	find_kld_path@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, QWORD PTR off_pathname[rip]
	test	rdi, rdi
	je	.L7
	add	rdi, rbx
	call	read_pointer@PLT
	mov	rcx, r13
	mov	edx, 8
	mov	rsi, r15
	mov	rdi, rax
	call	target_read_string@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	edi, edi
	je	.L8
	call	safe_strerror@PLT
	mov	rsi, QWORD PTR 0[rbp]
	lea	rdi, .LC1[rip]
	mov	rdx, rax
	xor	eax, eax
	call	warning@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, 8
	call	strlcpy@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR off_address[rip]
	mov	r15, QWORD PTR 24[rbp]
	add	rdi, rbx
	call	read_pointer@PLT
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L22
	mov	QWORD PTR [r14], rbp
	lea	r14, 16[rbp]
.L4:
	add	rbx, QWORD PTR off_next[rip]
	mov	rdi, rbx
	call	read_pointer@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L10
	mov	r13, QWORD PTR 8[rsp]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L21:
	.cfi_restore_state
	call	safe_strerror@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	xor	eax, eax
	call	warning@PLT
	mov	rdi, rbp
	call	free_so@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, 8
	call	strlcpy@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, QWORD PTR 0[rbp]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	warning@PLT
	mov	rdi, rbp
	call	free_so@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, 8
	call	strlcpy@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	xfree@PLT
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kld_current_sos, .-kld_current_sos
	.comm	off_pathname,8,8
	.comm	off_next,8,8
	.comm	off_filename,8,8
	.comm	off_address,8,8
	.comm	linker_files_addr,8,8
	.comm	kernel_file_addr,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_kld.c_kld_current_sos.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kld_current_sos: Can't read filename: %s\012\000"
	.align	2
.LC1:
	.ascii	"kld_current_sos: Can't read pathname for \"%s\": %s"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"kld_current_sos: Invalid address for kld \"%s\"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kld_current_sos, %function
kld_current_sos:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L24
	ldr	r3, .L24+4
	ldr	r0, [r5]
	sub	sp, sp, #28
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L1
	ldr	r3, .L24+8
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L1
	ldr	r10, .L24+12
	ldr	r4, [r10]
	cmp	r4, #0
	beq	.L16
	ldr	r9, .L24+16
	ldr	r4, [r9]
	cmp	r4, #0
	beq	.L16
	ldr	r7, .L24+20
	ldr	r4, [r7]
	cmp	r4, #0
	beq	.L16
	mov	r8, #0
	str	r8, [sp, #8]
	bl	read_pointer
	mov	r6, r0
	ldr	r0, [r5]
	bl	read_pointer
	subs	r4, r0, #0
	beq	.L16
	str	r8, [sp, #4]
	add	fp, sp, #8
.L10:
	cmp	r6, r4
	beq	.L4
	mov	r0, #16
	bl	xmalloc
	mov	r2, #16
	mov	r1, #0
	mov	r5, r0
	bl	memset
	mov	r0, #4
	bl	xmalloc
	ldr	r3, [sp, #4]
	str	r0, [r5, #12]
	str	r3, [r0]
	ldr	r0, [r9]
	add	r0, r4, r0
	bl	read_pointer
	mov	r2, #4
	add	r3, sp, #16
	add	r1, sp, #12
	bl	target_read_string
	ldr	r0, [sp, #16]
	cmp	r0, #0
	bne	.L21
	mov	r2, #4
	ldr	r1, [sp, #12]
	ldr	r0, [r5]
	bl	strlcpy
	ldr	r0, [sp, #12]
	bl	xfree
	ldm	r5, {r0, r1}
	mov	r2, #4
	bl	find_kld_path
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L24+24
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L7
	add	r0, r0, r4
	bl	read_pointer
	mov	r2, #4
	add	r3, sp, #16
	add	r1, sp, #12
	bl	target_read_string
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L8
	ldr	r8, [r5]
	bl	safe_strerror
	mov	r1, r8
	mov	r2, r0
	ldr	r0, .L24+28
	bl	warning
	mov	r2, #4
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	strlcpy
.L6:
	ldr	r0, [r10]
	ldr	r8, [r5, #12]
	add	r0, r4, r0
	bl	read_pointer
	ldr	r3, [r5, #12]
	str	r0, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	strne	r5, [fp]
	addne	fp, r5, #8
	beq	.L22
.L4:
	ldr	r0, [r7]
	add	r0, r4, r0
	bl	read_pointer
	subs	r4, r0, #0
	bne	.L10
	ldr	r0, [sp, #8]
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r4
	b	.L1
.L22:
	ldr	r1, [r5]
	ldr	r0, .L24+32
	bl	warning
	mov	r0, r5
	bl	free_so
	b	.L4
.L21:
	bl	safe_strerror
	mov	r1, r0
	ldr	r0, .L24+36
	bl	warning
	mov	r0, r5
	bl	free_so
	b	.L4
.L7:
	mov	r2, #4
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	strlcpy
	b	.L6
.L8:
	mov	r2, #4
	ldr	r1, [sp, #12]
	ldr	r0, [r5, #4]
	bl	strlcpy
	ldr	r0, [sp, #12]
	bl	xfree
	b	.L6
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	linker_files_addr
	.word	.LC3
	.word	kernel_file_addr
	.word	off_address
	.word	off_filename
	.word	off_next
	.word	off_pathname
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	kld_current_sos, .-kld_current_sos
	.comm	off_pathname,4,4
	.comm	off_next,4,4
	.comm	off_filename,4,4
	.comm	off_address,4,4
	.comm	linker_files_addr,4,4
	.comm	kernel_file_addr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
