	.file	"extr_command.c_get_executable_path.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/proc/self/exe"
.LC1:
	.string	"readlink"
	.text
	.p2align 4
	.globl	get_executable_path
	.type	get_executable_path, @function
get_executable_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	r8d, DWORD PTR PATH_MAX[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, rsp
	lea	eax, 1[r8]
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	edx, r8d
	mov	rsi, rsp
	lea	rdi, .LC0[rip]
	call	readlink@PLT
	cmp	eax, -1
	je	.L15
	cdqe
	mov	rdi, rsp
	mov	BYTE PTR [rsp+rax], 0
	call	SDL_strdup@PLT
.L1:
	mov	rsi, QWORD PTR -8[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L16
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	xor	eax, eax
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_executable_path, .-get_executable_path
	.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_command.c_get_executable_path.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/proc/self/exe\000"
	.align	2
.LC1:
	.ascii	"readlink\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_executable_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_executable_path, %function
get_executable_path:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L9
	ldr	r0, .L9+4
	ldr	r2, [r3]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, r2, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, sp
	bl	readlink
	cmn	r0, #1
	beq	.L7
	mov	r3, r0
	mov	r2, #0
	mov	r0, sp
	strb	r2, [sp, r3]
	bl	SDL_strdup
.L1:
	ldr	r3, .L9+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	ldr	r0, .L9+12
	bl	perror
	mov	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	PATH_MAX
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	get_executable_path, .-get_executable_path
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
