	.file	"extr_scsi_common.c_scsi_set_sense_information.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scsi_set_sense_information
	.type	scsi_set_sense_information, @function
scsi_set_sense_information:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rdi]
	mov	eax, edx
	and	eax, 127
	cmp	eax, 114
	je	.L11
	xor	r12d, r12d
	cmp	eax, 112
	jne	.L1
	or	dl, -128
	test	ebp, ebp
	lea	rsi, 12[rdi]
	cmovns	eax, edx
	mov	DWORD PTR [rdi], eax
	mov	edi, ebp
	call	put_unaligned_be32@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	r13d, DWORD PTR 28[rdi]
	mov	r12d, esi
	xor	edx, edx
	lea	esi, 8[r13]
	call	scsi_sense_desc_find@PLT
	test	rax, rax
	jne	.L4
	lea	eax, 12[r13]
	mov	DWORD PTR 28[rbx], eax
	movsx	rax, r13d
	lea	rax, 32[rbx+rax*4]
.L4:
	add	r13d, 11
	cmp	r13d, r12d
	jl	.L5
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movabs	rcx, 42949672960
	mov	QWORD PTR 8[rax], 128
	lea	rsi, 16[rax]
	mov	edi, ebp
	mov	QWORD PTR [rax], rcx
	xor	r12d, r12d
	call	put_unaligned_be64@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	scsi_set_sense_information, .-scsi_set_sense_information
	.comm	EINVAL,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_scsi_common.c_scsi_set_sense_information.c"
	.text
	.align	2
	.global	scsi_set_sense_information
	.syntax unified
	.arm
	.fpu softvfp
	.type	scsi_set_sense_information, %function
scsi_set_sense_information:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	and	r3, ip, #127
	cmp	r3, #114
	mov	r4, r0
	mov	r6, r2
	beq	.L10
	cmp	r3, #112
	beq	.L11
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r7, [r0, #28]
	mov	r5, r1
	add	r8, r7, #8
	mov	r1, r8
	mov	r2, #0
	bl	scsi_sense_desc_find
	cmp	r0, #0
	addeq	r3, r7, #12
	add	r7, r7, #11
	movne	r1, r0
	addeq	r1, r4, r8, lsl #2
	streq	r3, [r4, #28]
	cmp	r7, r5
	blt	.L5
	ldr	r3, .L12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r4, #0
	mov	r2, #10
	mov	r3, #128
	str	r4, [r1]
	stmib	r1, {r2, r3, r4}
	mov	r0, r6
	add	r1, r1, #16
	bl	put_unaligned_be64
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, r0
	orr	ip, ip, #128
	mov	r0, r2
	str	ip, [r1], #12
	bl	put_unaligned_be32
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	EINVAL
	.size	scsi_set_sense_information, .-scsi_set_sense_information
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
