	.file	"extr_sati_mode_sense.c_sati_mode_sense_informational_excp_control_translate_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sati_mode_sense_informational_excp_control_translate_data
	.type	sati_mode_sense_informational_excp_control_translate_data, @function
sati_mode_sense_informational_excp_control_translate_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	sati_cb_get_cdb_address@PLT
	mov	esi, 2
	mov	rdi, rax
	call	sati_get_cdb_byte@PLT
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	mov	rcx, QWORD PTR SCSI_MODE_SENSE_PC_SHIFT[rip]
	mov	r8d, DWORD PTR SCSI_MODE_PAGE_INFORMATIONAL_EXCP_CONTROL[rip]
	sar	rax, cl
	mov	rcx, rax
	mov	rbx, rax
	call	sati_mode_sense_copy_initial_data@PLT
	cmp	QWORD PTR SCSI_MODE_SENSE_PC_CURRENT[rip], rbx
	mov	r15, rax
	je	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	r13, 2
	mov	rcx, rsp
	mov	rsi, rbp
	mov	rdi, r12
	mov	rdx, r13
	call	sati_get_data_byte@PLT
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR ATA_IDENTIFY_COMMAND_SET_SUPPORTED0_SMART_ENABLE[rip], eax
	mov	rcx, QWORD PTR [rsp]
	mov	rax, QWORD PTR SCSI_MODE_PAGE_INFORMATIONAL_EXCP_DXCPT_ENABLE[rip]
	je	.L4
	mov	edx, DWORD PTR 4[r14]
	test	DWORD PTR ATA_IDENTIFY_COMMAND_SET_ENABLED0_SMART_ENABLE[rip], edx
	je	.L4
	not	rax
	and	rcx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	or	rcx, rax
.L5:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR [rsp], rcx
	call	sati_set_data_byte@PLT
	sub	DWORD PTR [r12], 1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sati_mode_sense_informational_excp_control_translate_data, .-sati_mode_sense_informational_excp_control_translate_data
	.comm	SCSI_MODE_SENSE_PC_SHIFT,8,8
	.comm	SCSI_MODE_SENSE_PC_CURRENT,8,8
	.comm	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_DXCPT_ENABLE,8,8
	.comm	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_CONTROL,4,4
	.comm	ATA_IDENTIFY_COMMAND_SET_SUPPORTED0_SMART_ENABLE,4,4
	.comm	ATA_IDENTIFY_COMMAND_SET_ENABLED0_SMART_ENABLE,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_sati_mode_sense.c_sati_mode_sense_informational_excp_control_translate_data.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sati_mode_sense_informational_excp_control_translate_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	sati_mode_sense_informational_excp_control_translate_data, %function
sati_mode_sense_informational_excp_control_translate_data:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L15
	sub	sp, sp, #20
	mov	r6, r0
	mov	r0, r1
	mov	r4, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	sati_cb_get_cdb_address
	mov	r1, #2
	bl	sati_get_cdb_byte
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r3, [r3]
	ldr	ip, [r2]
	asr	r5, r0, r3
	mov	r3, r5
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	str	ip, [sp]
	bl	sati_mode_sense_copy_initial_data
	ldr	r3, .L15+12
	mov	r9, r0
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L12
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	add	r7, r7, #2
	mov	r2, r7
	add	r3, sp, #8
	mov	r1, r4
	mov	r0, r6
	bl	sati_get_data_byte
	ldr	r3, .L15+16
	ldr	r2, [r8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
	ldr	r2, .L15+20
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
.L4:
	orr	r3, r3, r2
.L5:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	str	r3, [sp, #8]
	bl	sati_set_data_byte
	ldr	r3, [r6]
	sub	r3, r3, #1
	str	r3, [r6]
	b	.L1
.L14:
	ldr	r3, .L15+24
	ldr	r1, [r8, #4]
	ldr	r2, [r3]
	ldr	r3, .L15+20
	tst	r1, r2
	ldr	r2, [r3]
	ldr	r3, [sp, #8]
	bicne	r3, r3, r2
	bne	.L5
	b	.L4
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	SCSI_MODE_SENSE_PC_SHIFT
	.word	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_CONTROL
	.word	SCSI_MODE_SENSE_PC_CURRENT
	.word	ATA_IDENTIFY_COMMAND_SET_SUPPORTED0_SMART_ENABLE
	.word	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_DXCPT_ENABLE
	.word	ATA_IDENTIFY_COMMAND_SET_ENABLED0_SMART_ENABLE
	.size	sati_mode_sense_informational_excp_control_translate_data, .-sati_mode_sense_informational_excp_control_translate_data
	.comm	SCSI_MODE_SENSE_PC_SHIFT,4,4
	.comm	SCSI_MODE_SENSE_PC_CURRENT,4,4
	.comm	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_DXCPT_ENABLE,4,4
	.comm	SCSI_MODE_PAGE_INFORMATIONAL_EXCP_CONTROL,4,4
	.comm	ATA_IDENTIFY_COMMAND_SET_SUPPORTED0_SMART_ENABLE,4,4
	.comm	ATA_IDENTIFY_COMMAND_SET_ENABLED0_SMART_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
