	.file	"extr_umass.c_umass_cam_cb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fetching %d bytes of sense data\n"
	.text
	.p2align 4
	.type	umass_cam_cb, @function
umass_cam_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	DWORD PTR 24[rsi], edx
	cmp	ecx, 129
	je	.L2
	and	ecx, -3
	cmp	ecx, 128
	je	.L29
	mov	edi, DWORD PTR 4[rsi]
	mov	esi, 1
	call	xpt_freeze_devq@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	or	eax, DWORD PTR CAM_DEV_QFRZN[rip]
	mov	DWORD PTR 0[rbp], eax
.L27:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	xpt_done@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR CAM_REQ_CMP[rip]
	mov	edx, DWORD PTR [rdi]
	mov	DWORD PTR [rsi], eax
	mov	eax, DWORD PTR 12[rsi]
	test	DWORD PTR READ_CAPACITY_OFFBY1[rip], edx
	je	.L5
	cmp	DWORD PTR XPT_SCSI_IO[rip], eax
	jne	.L27
	mov	rax, QWORD PTR 16[rsi]
	mov	ebx, DWORD PTR READ_CAPACITY[rip]
	cmp	DWORD PTR [rax], ebx
	jne	.L11
	mov	rbx, QWORD PTR 8[rsi]
	mov	edi, DWORD PTR [rbx]
	call	scsi_4btoul@PLT
	mov	esi, DWORD PTR [rbx]
	lea	edi, -1[rax]
	call	scsi_ulto4b@PLT
	mov	eax, DWORD PTR 12[rbp]
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	DWORD PTR XPT_SCSI_IO[rip], eax
	jne	.L27
.L11:
	mov	rax, QWORD PTR 8[r12]
	mov	ebx, DWORD PTR INQUIRY[rip]
	cmp	DWORD PTR [rax], ebx
	jne	.L27
	mov	edx, DWORD PTR 4[rax]
	test	DWORD PTR SI_EVPD[rip], edx
	je	.L27
	mov	ebx, DWORD PTR SVPD_SUPPORTED_PAGE_LIST[rip]
	cmp	DWORD PTR 8[rax], ebx
	jne	.L27
	mov	edi, DWORD PTR 24[r12]
	call	usb_get_serial@PLT
	cmp	BYTE PTR [rax], 0
	je	.L27
	mov	rax, QWORD PTR 8[rbp]
	movsx	rsi, DWORD PTR SVPD_SUPPORTED_PAGES_SIZE[rip]
	mov	rcx, QWORD PTR [rax]
	lea	rdx, 1[rcx]
	cmp	rdx, rsi
	jnb	.L27
	mov	edi, DWORD PTR SVPD_UNIT_SERIAL_NUMBER[rip]
	mov	rsi, QWORD PTR 8[rax]
	mov	DWORD PTR [rsi+rcx*4], edi
	mov	QWORD PTR [rax], rdx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L29:
	mov	ecx, DWORD PTR [rsi]
	mov	esi, DWORD PTR UDMASS_SCSI[rip]
	lea	rdx, .LC0[rip]
	mov	DWORD PTR 20[rdi], ecx
	call	DPRINTF@PLT
	lea	rdx, 16[r12]
	mov	rsi, rbp
	mov	rdi, r12
	mov	ecx, 8
	call	umass_std_transform@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR FORCE_SHORT_INQUIRY[rip], eax
	je	.L15
	mov	rax, QWORD PTR 8[r12]
	mov	ebx, DWORD PTR INQUIRY[rip]
	cmp	DWORD PTR [rax], ebx
	je	.L30
.L15:
	mov	ecx, DWORD PTR 0[rbp]
.L14:
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r8d, DWORD PTR 8[rbp]
	lea	rdx, 4[rbp]
	mov	rdi, r12
	push	rbp
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR DIR_IN[rip]
	lea	r9, umass_cam_sense_cb[rip]
	call	umass_command_start@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
.L1:
	pop	rbx
	.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
.L30:
	.cfi_restore_state
	mov	ecx, DWORD PTR SHORT_INQUIRY_LENGTH[rip]
	mov	DWORD PTR 0[rbp], ecx
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	umass_cam_cb, .-umass_cam_cb
	.comm	umass_cam_sense_cb,4,4
	.comm	XPT_SCSI_IO,4,4
	.comm	UDMASS_SCSI,4,4
	.comm	SVPD_UNIT_SERIAL_NUMBER,4,4
	.comm	SVPD_SUPPORTED_PAGE_LIST,4,4
	.comm	SVPD_SUPPORTED_PAGES_SIZE,4,4
	.comm	SI_EVPD,4,4
	.comm	SHORT_INQUIRY_LENGTH,4,4
	.comm	READ_CAPACITY_OFFBY1,4,4
	.comm	READ_CAPACITY,4,4
	.comm	INQUIRY,4,4
	.comm	FORCE_SHORT_INQUIRY,4,4
	.comm	DIR_IN,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_DEV_QFRZN,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_umass.c_umass_cam_cb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fetching %d bytes of sense data\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	umass_cam_cb, %function
umass_cam_cb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	cmp	r3, #129
	mov	r4, r1
	mov	r5, r0
	sub	sp, sp, #20
	str	r2, [r1, #16]
	beq	.L2
	bic	r3, r3, #2
	cmp	r3, #128
	beq	.L32
	mov	r1, #1
	ldr	r0, [r4, #4]
	bl	xpt_freeze_devq
	mov	r0, r4
	ldr	r3, .L34
	ldr	r2, .L34+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	xpt_done
.L2:
	ldr	r2, .L34+8
	ldr	r3, .L34+12
	ldr	r2, [r2]
	ldr	r1, [r0]
	str	r2, [r4]
	ldr	r2, [r3]
	ldr	r6, .L34+16
	tst	r1, r2
	ldr	r3, [r4, #12]
	beq	.L5
	ldr	r2, [r6]
	cmp	r2, r3
	bne	.L7
	ldr	r1, .L34+20
	ldr	r2, [r3]
	ldr	r3, [r1]
	cmp	r2, r3
	beq	.L8
.L11:
	ldr	r3, [r5, #4]
	ldr	r2, .L34+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L7
	ldr	r2, .L34+28
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L7
	ldr	r1, .L34+32
	ldr	r2, [r3, #8]
	ldr	r3, [r1]
	cmp	r2, r3
	bne	.L7
	ldr	r0, [r5, #16]
	bl	usb_get_serial
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r4, #8]
	ldr	r2, .L34+36
	ldr	r1, [r3]
	ldr	r0, [r2]
	add	r2, r1, #1
	cmp	r2, r0
	ldrcc	ip, .L34+40
	ldrcc	r0, [r3, #4]
	ldrcc	ip, [ip]
	strcc	ip, [r0, r1, lsl #2]
	strcc	r2, [r3]
	b	.L7
.L32:
	ldr	r3, [r1]
	ldr	r2, .L34+44
	str	r3, [r0, #12]
	ldr	r1, [r2]
	ldr	r2, .L34+48
	bl	DPRINTF
	mov	r3, #8
	mov	r1, r4
	mov	r0, r5
	add	r2, r5, r3
	bl	umass_std_transform
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L34+52
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L15
	ldr	r2, [r5, #4]
	ldr	r3, .L34+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L33
.L15:
	ldr	r3, [r4]
.L14:
	ldr	r2, [r4, #8]
	ldr	r1, .L34+56
	ldr	ip, .L34+60
	str	r4, [sp, #8]
	ldr	r1, [r1]
	mov	r0, r5
	stm	sp, {r2, ip}
	add	r2, r4, #4
	bl	umass_command_start
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r7, [r4, #8]
	ldr	r0, [r7]
	bl	scsi_4btoul
	ldr	r1, [r7]
	sub	r0, r0, #1
	bl	scsi_ulto4b
	ldr	r3, [r4, #12]
.L5:
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L11
.L7:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	xpt_done
.L33:
	ldr	r3, .L34+64
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L14
.L35:
	.align	2
.L34:
	.word	CAM_REQ_CMP_ERR
	.word	CAM_DEV_QFRZN
	.word	CAM_REQ_CMP
	.word	READ_CAPACITY_OFFBY1
	.word	XPT_SCSI_IO
	.word	READ_CAPACITY
	.word	INQUIRY
	.word	SI_EVPD
	.word	SVPD_SUPPORTED_PAGE_LIST
	.word	SVPD_SUPPORTED_PAGES_SIZE
	.word	SVPD_UNIT_SERIAL_NUMBER
	.word	UDMASS_SCSI
	.word	.LC0
	.word	FORCE_SHORT_INQUIRY
	.word	DIR_IN
	.word	umass_cam_sense_cb
	.word	SHORT_INQUIRY_LENGTH
	.size	umass_cam_cb, .-umass_cam_cb
	.comm	umass_cam_sense_cb,4,4
	.comm	XPT_SCSI_IO,4,4
	.comm	UDMASS_SCSI,4,4
	.comm	SVPD_UNIT_SERIAL_NUMBER,4,4
	.comm	SVPD_SUPPORTED_PAGE_LIST,4,4
	.comm	SVPD_SUPPORTED_PAGES_SIZE,4,4
	.comm	SI_EVPD,4,4
	.comm	SHORT_INQUIRY_LENGTH,4,4
	.comm	READ_CAPACITY_OFFBY1,4,4
	.comm	READ_CAPACITY,4,4
	.comm	INQUIRY,4,4
	.comm	FORCE_SHORT_INQUIRY,4,4
	.comm	DIR_IN,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_DEV_QFRZN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
