	.file	"extr_ch.c_ch_find_errno.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ch_find_errno, @function
ch_find_errno:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	scsi_sense_valid@PLT
	test	rax, rax
	je	.L2
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	je	.L2
	mov	rdx, QWORD PTR ch_err[rip]
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	je	.L2
	mov	rcx, QWORD PTR 8[rbx]
	add	rdx, 32
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdx]
	add	rdx, 32
	test	eax, eax
	je	.L2
.L5:
	cmp	QWORD PTR -24[rdx], rcx
	jne	.L3
	cmp	rsi, QWORD PTR -16[rdx]
	jne	.L3
	mov	rdi, QWORD PTR 16[rbx]
	cmp	QWORD PTR -8[rdx], rdi
	je	.L17
	mov	eax, DWORD PTR [rdx]
	add	rdx, 32
	test	eax, eax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EIO[rip]
.L17:
	neg	eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ch_find_errno, .-ch_find_errno
	.comm	ch_err,8,8
	.comm	EIO,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_ch.c_ch_find_errno.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ch_find_errno, %function
ch_find_errno:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	scsi_sense_valid
	cmp	r0, #0
	beq	.L2
	ldr	ip, [r4]
	cmp	ip, #0
	beq	.L2
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L2
	ldr	r0, [r4, #4]
	b	.L5
.L3:
	ldr	r2, [r3, #16]!
	cmp	r2, #0
	beq	.L2
.L5:
	ldr	r1, [r3, #4]
	cmp	r1, r0
	bne	.L3
	ldr	r1, [r3, #8]
	cmp	ip, r1
	bne	.L3
	ldr	lr, [r3, #12]
	ldr	r1, [r4, #8]
	cmp	lr, r1
	bne	.L3
	rsb	r0, r2, #0
	pop	{r4, pc}
.L2:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L19:
	.align	2
.L18:
	.word	ch_err
	.word	EIO
	.size	ch_find_errno, .-ch_find_errno
	.comm	ch_err,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
