	.file	"extr_kld.c_find_kld_path.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/%s"
.LC1:
	.string	";"
	.text
	.p2align 4
	.type	find_kld_path, @function
find_kld_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR exec_bfd[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	jne	.L2
.L5:
	mov	rdi, QWORD PTR module_path_addr[rip]
	test	rdi, rdi
	jne	.L19
.L4:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, DWORD PTR PATH_MAX[rip]
	lea	rcx, 4[rsp]
	lea	rsi, 8[rsp]
	call	target_read_string@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L4
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR xfree[rip]
	lea	r14, 16[rsp]
	lea	r13, .LC1[rip]
	call	make_cleanup@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rbp
	mov	rdi, rbx
	lea	rdx, .LC0[rip]
	mov	r8, r12
	call	snprintf@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	check_kld_path@PLT
	test	rax, rax
	jne	.L8
.L7:
	mov	rsi, r13
	mov	rdi, r14
	call	strsep@PLT
	mov	rcx, rax
	test	rax, rax
	jne	.L9
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	call	bfd_get_filename@PLT
	mov	edi, eax
	call	dirname@PLT
	mov	rcx, rax
	test	rax, rax
	je	.L5
	mov	rsi, rbp
	mov	rdi, rbx
	lea	rdx, .LC0[rip]
	mov	r8, r12
	call	snprintf@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	check_kld_path@PLT
	test	rax, rax
	je	.L5
.L8:
	mov	eax, 1
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_kld_path, .-find_kld_path
	.comm	xfree,4,4
	.comm	module_path_addr,8,8
	.comm	exec_bfd,8,8
	.comm	PATH_MAX,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_kld.c_find_kld_path.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	";\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_kld_path, %function
find_kld_path:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L21
	mov	r6, r0
	ldr	r0, [r3]
	ldr	r3, .L21+4
	sub	sp, sp, #24
	cmp	r0, #0
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L2
.L5:
	ldr	r3, .L21+8
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L19
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	bfd_get_filename
	bl	dirname
	subs	r3, r0, #0
	beq	.L5
	mov	r1, r5
	ldr	r2, .L21+12
	mov	r0, r4
	str	r6, [sp]
	bl	snprintf
	mov	r1, r5
	mov	r0, r4
	bl	check_kld_path
	cmp	r0, #0
	beq	.L5
.L8:
	mov	r0, #1
	b	.L1
.L19:
	ldr	r3, .L21+16
	add	r1, sp, #8
	ldr	r2, [r3]
	add	r3, sp, #16
	bl	target_read_string
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L21+20
	ldr	r1, [sp, #8]
	ldr	r0, [r3]
	bl	make_cleanup
	ldr	r3, [sp, #8]
	ldr	r7, .L21+24
	ldr	r8, .L21+12
	str	r3, [sp, #12]
	b	.L7
.L9:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	str	r6, [sp]
	bl	snprintf
	mov	r1, r5
	mov	r0, r4
	bl	check_kld_path
	cmp	r0, #0
	bne	.L8
.L7:
	mov	r1, r7
	add	r0, sp, #12
	bl	strsep
	subs	r3, r0, #0
	bne	.L9
	b	.L4
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	exec_bfd
	.word	.LC2
	.word	module_path_addr
	.word	.LC0
	.word	PATH_MAX
	.word	xfree
	.word	.LC1
	.size	find_kld_path, .-find_kld_path
	.comm	xfree,4,4
	.comm	module_path_addr,4,4
	.comm	exec_bfd,4,4
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
