	.file	"335703.c"
	.intel_syntax noprefix
	.text
	.globl	path_def_len
	.section	.rodata
	.align 4
	.type	path_def_len, @object
	.size	path_def_len, 4
path_def_len:
	.long	5
.LC0:
	.string	"PATH"
.LC1:
	.string	"PATH="
	.text
	.globl	path_val
	.type	path_val, @function
path_val:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	jmp	.L4
.L3:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 5
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, 5
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	jmp	.L4
.L6:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	path_val, .-path_val
	.section	.rodata
.LC2:
	.string	"pfind(): Null argument.\n"
.LC3:
	.string	"Unable to get $PATH.\n"
.LC4:
	.string	":"
.LC5:
	.string	"%s/%s"
	.text
	.globl	pfind
	.type	pfind, @function
pfind:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -4152[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L19
.L9:
	mov	rax, QWORD PTR -4152[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L11
	mov	rax, QWORD PTR -4152[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L12
.L11:
	mov	rax, QWORD PTR -4152[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	strdup@PLT
	jmp	.L19
.L13:
	mov	eax, 0
	jmp	.L19
.L12:
	mov	rax, QWORD PTR -4160[rbp]
	mov	rdi, rax
	call	path_val
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -4120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L19
.L15:
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -4120[rbp], rax
	lea	rdx, -4136[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -4128[rbp], rax
	jmp	.L16
.L18:
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rdx, QWORD PTR -4128[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strdup@PLT
	jmp	.L19
.L17:
	lea	rax, -4136[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -4128[rbp], rax
.L16:
	cmp	QWORD PTR -4128[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pfind, .-pfind
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"335703.c"
	.text
	.global	path_def_len
	.section	.rodata
	.align	2
	.type	path_def_len, %object
	.size	path_def_len, 4
path_def_len:
	.word	5
	.align	2
.LC0:
	.ascii	"PATH\000"
	.align	2
.LC1:
	.ascii	"PATH=\000"
	.text
	.align	2
	.global	path_val
	.syntax unified
	.arm
	.fpu softvfp
	.type	path_val, %function
path_val:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r0, .L8
	bl	getenv
	mov	r3, r0
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #5
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+4
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	path_val, .-path_val
	.section	.rodata
	.align	2
.LC2:
	.ascii	"pfind(): Null argument.\012\000"
	.align	2
.LC3:
	.ascii	"Unable to get $PATH.\012\000"
	.align	2
.LC4:
	.ascii	":\000"
	.align	2
.LC5:
	.ascii	"%s/%s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pfind
	.syntax unified
	.arm
	.fpu softvfp
	.type	pfind, %function
pfind:
	@ args = 0, pretend = 0, frame = 4128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L23+8
	bl	fwrite
	mov	r3, #0
	b	.L21
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L14
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-28]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	strdup
	mov	r3, r0
	b	.L21
.L15:
	mov	r3, #0
	b	.L21
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	path_val
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
.L16:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L23+12
	bl	fwrite
	mov	r3, #0
	b	.L21
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	strdup
	mov	r3, r0
	str	r3, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L23+16
	ldr	r0, [r0, #-12]
	bl	strtok_r
	str	r0, [r4, #-16]
	b	.L18
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	str	r3, [sp]
	ldr	r3, [r2, #-16]
	ldr	r2, .L23+20
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #1
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	b	.L21
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r1, .L23+16
	mov	r0, #0
	bl	strtok_r
	str	r0, [r4, #-16]
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	free
	mov	r3, #0
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC6
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	pfind, .-pfind
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
