	.file	"extr_kern_linker.c_sys_kldnext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sys_kldnext
	.type	sys_kldnext, @function
sys_kldnext:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, kld_sx[rip]
	call	sx_xlock@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L2
	lea	rdi, linker_files[rip]
	call	TAILQ_FIRST@PLT
	mov	rdi, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR LINKER_FILE_LINKED[rip], eax
	jne	.L19
.L8:
	mov	esi, DWORD PTR link[rip]
	call	TAILQ_NEXT@PLT
	mov	rdi, rax
.L17:
	test	rdi, rdi
	jne	.L20
	mov	rax, QWORD PTR [rbx]
	xor	r12d, r12d
	mov	DWORD PTR [rax], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR [rbx]
	xor	r12d, r12d
	mov	DWORD PTR [rax], edx
.L5:
	lea	rdi, kld_sx[rip]
	call	sx_xunlock@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	linker_find_file_by_id@PLT
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	rdi, rax
	test	rax, rax
	jne	.L8
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sys_kldnext, .-sys_kldnext
	.comm	linker_files,4,4
	.comm	link,4,4
	.comm	kld_sx,4,4
	.comm	LINKER_FILE_LINKED,4,4
	.comm	ENOENT,4,4
	.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_kern_linker.c_sys_kldnext.c"
	.text
	.align	2
	.global	sys_kldnext
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_kldnext, %function
sys_kldnext:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r0, .L19
	bl	sx_xlock
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L2
	ldr	r0, .L19+4
	bl	TAILQ_FIRST
.L3:
	cmp	r0, #0
	beq	.L7
	ldr	r4, .L19+8
	ldr	r6, .L19+12
	b	.L6
.L8:
	ldr	r1, [r6]
	bl	TAILQ_NEXT
	cmp	r0, #0
	beq	.L7
.L6:
	ldr	r2, [r0]
	ldr	r3, [r4]
	tst	r2, r3
	beq	.L8
	mov	r4, #0
	ldr	r2, [r0, #4]
	ldr	r3, [r5]
	str	r2, [r3]
.L5:
	ldr	r0, .L19
	bl	sx_xunlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	bl	linker_find_file_by_id
	cmp	r0, #0
	beq	.L18
	ldr	r3, .L19+12
	ldr	r1, [r3]
	bl	TAILQ_NEXT
	b	.L3
.L7:
	mov	r3, #0
	ldr	r2, [r5]
	mov	r4, r3
	str	r3, [r2]
	b	.L5
.L18:
	ldr	r3, .L19+16
	ldr	r4, [r3]
	b	.L5
.L20:
	.align	2
.L19:
	.word	kld_sx
	.word	linker_files
	.word	LINKER_FILE_LINKED
	.word	link
	.word	ENOENT
	.size	sys_kldnext, .-sys_kldnext
	.comm	linker_files,4,4
	.comm	link,4,4
	.comm	kld_sx,4,4
	.comm	LINKER_FILE_LINKED,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
