	.file	"extr_ima_api.c_ima_d_path.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ima_d_path
	.type	ima_d_path, @function
ima_d_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	__getname@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR PATH_MAX[rip]
	mov	rdi, rbp
	mov	rsi, rax
	call	d_absolute_path@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	test	r12, r12
	jne	.L1
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR NAME_MAX[rip]
	mov	rdi, r13
	mov	r12, r13
	mov	esi, DWORD PTR [rax]
	call	strlcpy@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	__putname@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ima_d_path, .-ima_d_path
	.comm	PATH_MAX,4,4
	.comm	NAME_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_ima_api.c_ima_d_path.c"
	.text
	.align	2
	.global	ima_d_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	ima_d_path, %function
ima_d_path:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r6, r2
	bl	__getname
	cmp	r0, #0
	str	r0, [r4]
	beq	.L3
	ldr	r3, .L13
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r5
	bl	d_absolute_path
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	cmp	r7, #0
	bne	.L1
.L3:
	ldr	r2, [r5]
	ldr	r3, .L13+4
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, [r3]
	bl	strlcpy
	mov	r7, r6
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r4]
	bl	__putname
	mov	r3, #0
	str	r3, [r4]
	b	.L3
.L14:
	.align	2
.L13:
	.word	PATH_MAX
	.word	NAME_MAX
	.size	ima_d_path, .-ima_d_path
	.comm	PATH_MAX,4,4
	.comm	NAME_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
