	.file	"extr_ztest.c_ztest_get_zdb_bin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ZDB_PATH"
.LC1:
	.string	"invalid ZDB_PATH '%s'"
.LC2:
	.string	"/ztest/"
.LC3:
	.string	"zdb"
.LC4:
	.string	"/zdb/zdb"
	.text
	.p2align 4
	.type	ztest_get_zdb_bin, @function
ztest_get_zdb_bin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	getenv@PLT
	test	rax, rax
	je	.L2
	mov	rdi, rbp
	mov	rsi, rax
	mov	edx, r12d
	call	strlcpy@PLT
	mov	rdi, rbp
	call	ztest_check_path@PLT
	test	rax, rax
	je	.L10
.L1:
	add	rsp, 8
	.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
	xor	eax, eax
	call	getexecname@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	realpath@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	VERIFY@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	strstr@PLT
	test	rax, rax
	je	.L7
	mov	BYTE PTR [rax], 0
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	strcat@PLT
	mov	rdi, rbp
	call	ztest_check_path@PLT
	test	rax, rax
	jne	.L1
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	strcpy@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, rbp
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	QWORD PTR ztest_dump_core[rip], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fatal@PLT
	.cfi_endproc
.LFE0:
	.size	ztest_get_zdb_bin, .-ztest_get_zdb_bin
	.comm	ztest_dump_core,8,8
	.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_ztest.c_ztest_get_zdb_bin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ZDB_PATH\000"
	.align	2
.LC1:
	.ascii	"invalid ZDB_PATH '%s'\000"
	.align	2
.LC2:
	.ascii	"/ztest/\000"
	.align	2
.LC3:
	.ascii	"zdb\000"
	.align	2
.LC4:
	.ascii	"/zdb/zdb\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ztest_get_zdb_bin, %function
ztest_get_zdb_bin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L10
	mov	r6, r1
	bl	getenv
	subs	r5, r0, #0
	beq	.L2
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	strlcpy
	mov	r0, r4
	bl	ztest_check_path
	subs	r3, r0, #0
	popne	{r4, r5, r6, pc}
	ldr	ip, .L10+4
	mov	r2, r4
	pop	{r4, r5, r6, lr}
	mov	r0, #1
	ldr	r1, .L10+8
	str	r3, [ip]
	b	fatal
.L2:
	bl	getexecname
	mov	r1, r4
	bl	realpath
	subs	r0, r0, #0
	movne	r0, #1
	bl	VERIFY
	mov	r0, r4
	ldr	r1, .L10+12
	bl	strstr
	cmp	r0, #0
	beq	.L7
	strb	r5, [r0]
	mov	r0, r4
	bl	strlen
	mov	r2, #9
	ldr	r1, .L10+16
	add	r0, r4, r0
	bl	memcpy
	mov	r0, r4
	bl	ztest_check_path
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #4
	ldr	r1, .L10+20
	b	memcpy
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	ztest_dump_core
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	ztest_get_zdb_bin, .-ztest_get_zdb_bin
	.comm	ztest_dump_core,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
