	.file	"extr_ctl.c_ctl_inquiry_evpd_block_limits.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unmap_max_lba"
.LC1:
	.string	"unmap_max_descr"
.LC2:
	.string	"write_same_max_lba"
	.text
	.p2align 4
	.type	ctl_inquiry_evpd_block_limits, @function
ctl_inquiry_evpd_block_limits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	CTL_LUN@PLT
	mov	esi, DWORD PTR M_CTL[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	edi, 68
	or	edx, DWORD PTR M_ZERO[rip]
	mov	r12, rax
	call	malloc@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	esi, r13d
	mov	edi, 68
	mov	QWORD PTR 32[rbp], rax
	mov	rbx, rax
	mov	QWORD PTR 24[rbp], 0
	call	min@PLT
	mov	DWORD PTR 8[rbp], eax
	mov	DWORD PTR 12[rbp], eax
	test	r12, r12
	je	.L2
	mov	rdx, QWORD PTR [r12]
	mov	eax, DWORD PTR SID_QUAL_LU_CONNECTED[rip]
	mov	edi, 64
	mov	esi, DWORD PTR 60[rbx]
	sal	eax, 5
	or	eax, DWORD PTR [rdx]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR SVPD_BLOCK_LIMITS[rip]
	mov	DWORD PTR 64[rbx], eax
	call	scsi_ulto2b@PLT
	mov	DWORD PTR 4[rbx], 255
	mov	esi, DWORD PTR 56[rbx]
	mov	edi, -1
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR 52[rbx]
	mov	edi, DWORD PTR 4[rax]
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR 8[rax]
	test	DWORD PTR CTL_LUN_FLAG_UNMAP[rip], edx
	jne	.L24
.L4:
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 20[rax]
	call	scsi_ulto4b@PLT
	mov	esi, DWORD PTR 28[rbx]
	xor	edi, edi
	call	scsi_ulto4b@PLT
	mov	esi, DWORD PTR 24[rbx]
	xor	edi, edi
	call	scsi_ulto4b@PLT
	mov	esi, DWORD PTR 20[rbx]
	xor	edi, edi
	call	scsi_ulto4b@PLT
	mov	esi, DWORD PTR 16[rbx]
	xor	edi, edi
	call	scsi_ulto4b@PLT
	mov	eax, DWORD PTR UINT64_MAX[rip]
	xor	edx, edx
	lea	rsi, .LC2[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR 28[rax]
	call	dnvlist_get_string@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L8
	lea	rsi, 4[rsp]
	call	ctl_expand_number@PLT
.L8:
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 4[rsp]
	call	scsi_u64to8b@PLT
	mov	rax, QWORD PTR [r12]
	mov	ecx, DWORD PTR 4[rsp]
	cmp	DWORD PTR 24[rax], ecx
	jge	.L25
.L5:
	mov	rdi, rbp
	call	ctl_set_success@PLT
	mov	eax, DWORD PTR CTL_FLAG_ALLOCATED[rip]
	or	DWORD PTR 4[rbp], eax
	mov	rdi, rbp
	mov	eax, DWORD PTR ctl_config_move_done[rip]
	mov	DWORD PTR 0[rbp], eax
	call	ctl_datamove@PLT
	mov	eax, DWORD PTR CTL_RETVAL_COMPLETE[rip]
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L25:
	.cfi_restore_state
	mov	eax, DWORD PTR SVPD_BL_WSNZ[rip]
	or	DWORD PTR 8[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR SID_QUAL_LU_OFFLINE[rip]
	mov	esi, DWORD PTR 60[rbx]
	mov	edi, 64
	sal	eax, 5
	or	eax, DWORD PTR T_DIRECT[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR SVPD_BLOCK_LIMITS[rip]
	mov	DWORD PTR 64[rbx], eax
	call	scsi_ulto2b@PLT
	mov	DWORD PTR 4[rbx], 255
	mov	esi, DWORD PTR 56[rbx]
	mov	edi, -1
	call	scsi_ulto4b@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 28[rax]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 4[rsp], -1
	call	dnvlist_get_string@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L6
	lea	rsi, 4[rsp]
	call	ctl_expand_number@PLT
.L6:
	mov	esi, DWORD PTR 48[rbx]
	mov	edi, DWORD PTR 4[rsp]
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 4[rsp], -1
	mov	edi, DWORD PTR 28[rax]
	call	dnvlist_get_string@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L7
	lea	rsi, 4[rsp]
	call	ctl_expand_number@PLT
.L7:
	mov	esi, DWORD PTR 44[rbx]
	mov	edi, DWORD PTR 4[rsp]
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	mov	ecx, DWORD PTR 12[rax]
	test	ecx, ecx
	je	.L4
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, 1
	sal	edi, cl
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR 36[rbx]
	mov	edi, DWORD PTR 16[rax]
	or	edi, -2147483648
	call	scsi_ulto4b@PLT
	mov	rax, QWORD PTR [r12]
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctl_inquiry_evpd_block_limits, .-ctl_inquiry_evpd_block_limits
	.comm	ctl_config_move_done,4,4
	.comm	UINT64_MAX,4,4
	.comm	T_DIRECT,4,4
	.comm	SVPD_BL_WSNZ,4,4
	.comm	SVPD_BLOCK_LIMITS,4,4
	.comm	SID_QUAL_LU_OFFLINE,4,4
	.comm	SID_QUAL_LU_CONNECTED,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_CTL,4,4
	.comm	CTL_RETVAL_COMPLETE,4,4
	.comm	CTL_LUN_FLAG_UNMAP,4,4
	.comm	CTL_FLAG_ALLOCATED,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_ctl.c_ctl_inquiry_evpd_block_limits.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unmap_max_lba\000"
	.align	2
.LC1:
	.ascii	"unmap_max_descr\000"
	.align	2
.LC2:
	.ascii	"write_same_max_lba\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctl_inquiry_evpd_block_limits, %function
ctl_inquiry_evpd_block_limits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L26
	sub	sp, sp, #8
	mov	r5, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	CTL_LUN
	ldr	r2, .L26+4
	ldr	r3, .L26+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L26+12
	orr	r2, r1, r2
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, #68
	bl	malloc
	mov	r8, #0
	str	r0, [r5, #24]
	mov	r4, r0
	mov	r1, r7
	mov	r0, #68
	str	r8, [r5, #16]
	str	r8, [r5, #20]
	bl	min
	cmp	r6, r8
	str	r0, [r5, #8]
	str	r0, [r5, #12]
	beq	.L2
	ldr	r3, [r6]
	ldr	r1, .L26+16
	ldr	r2, .L26+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1, lsl #5
	str	r2, [r4, #64]
	ldr	r1, [r4, #60]
	str	r3, [r4]
	mov	r0, #64
	bl	scsi_ulto2b
	mov	r3, #255
	ldr	r1, [r4, #56]
	str	r3, [r4, #4]
	mvn	r0, #0
	bl	scsi_ulto4b
	ldr	r3, [r6]
	ldr	r1, [r4, #52]
	ldr	r0, [r3, #4]
	bl	scsi_ulto4b
	ldr	r3, [r6]
	ldr	r2, .L26+24
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L24
.L4:
	ldr	r0, [r3, #20]
	ldr	r1, [r4, #32]
	bl	scsi_ulto4b
	ldr	r1, [r4, #28]
	mov	r0, #0
	bl	scsi_ulto4b
	ldr	r1, [r4, #24]
	mov	r0, #0
	bl	scsi_ulto4b
	ldr	r1, [r4, #20]
	mov	r0, #0
	bl	scsi_ulto4b
	ldr	r1, [r4, #16]
	mov	r0, #0
	bl	scsi_ulto4b
	ldr	r3, .L26+28
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r0, [r2, #28]
	ldr	r1, .L26+32
	mov	r2, #0
	str	r3, [sp]
	bl	dnvlist_get_string
	cmp	r0, #0
	beq	.L8
	mov	r1, sp
	bl	ctl_expand_number
.L8:
	ldr	r1, [r4, #12]
	ldr	r0, [sp]
	bl	scsi_u64to8b
	ldr	r2, [r6]
	ldr	r3, [sp]
	ldr	r2, [r2, #24]
	cmp	r2, r3
	ldrge	r2, .L26+36
	ldrge	r3, [r4, #8]
	ldrge	r2, [r2]
	orrge	r3, r3, r2
	strge	r3, [r4, #8]
.L5:
	mov	r0, r5
	bl	ctl_set_success
	ldr	r3, .L26+40
	ldr	r2, .L26+44
	ldr	r1, [r3]
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	orr	r3, r3, r1
	stm	r5, {r2, r3}
	mov	r0, r5
	bl	ctl_datamove
	ldr	r3, .L26+48
	ldr	r0, [r3]
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L26+52
	ldr	r3, .L26+56
	ldr	r2, .L26+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1, lsl #5
	str	r3, [r4]
	ldr	r1, [r4, #60]
	str	r2, [r4, #64]
	mov	r0, #64
	bl	scsi_ulto2b
	mov	r3, #255
	ldr	r1, [r4, #56]
	str	r3, [r4, #4]
	mvn	r0, #0
	bl	scsi_ulto4b
	b	.L5
.L24:
	mvn	ip, #0
	mov	r2, r8
	ldr	r0, [r3, #28]
	ldr	r1, .L26+60
	str	ip, [sp]
	bl	dnvlist_get_string
	cmp	r0, #0
	beq	.L6
	mov	r1, sp
	bl	ctl_expand_number
.L6:
	ldr	r1, [r4, #48]
	ldr	r0, [sp]
	bl	scsi_ulto4b
	mvn	r3, #0
	ldr	r1, [r6]
	mov	r2, #0
	ldr	r0, [r1, #28]
	ldr	r1, .L26+64
	str	r3, [sp]
	bl	dnvlist_get_string
	cmp	r0, #0
	beq	.L7
	mov	r1, sp
	bl	ctl_expand_number
.L7:
	ldr	r1, [r4, #44]
	ldr	r0, [sp]
	bl	scsi_ulto4b
	ldr	r3, [r6]
	ldr	r2, [r3, #12]
	cmp	r2, #0
	beq	.L4
	mov	r0, #1
	ldr	r1, [r4, #40]
	lsl	r0, r0, r2
	bl	scsi_ulto4b
	ldr	r3, [r6]
	ldr	r1, [r4, #36]
	ldr	r0, [r3, #16]
	orr	r0, r0, #-2147483648
	bl	scsi_ulto4b
	ldr	r3, [r6]
	b	.L4
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_CTL
	.word	SID_QUAL_LU_CONNECTED
	.word	SVPD_BLOCK_LIMITS
	.word	CTL_LUN_FLAG_UNMAP
	.word	UINT64_MAX
	.word	.LC2
	.word	SVPD_BL_WSNZ
	.word	CTL_FLAG_ALLOCATED
	.word	ctl_config_move_done
	.word	CTL_RETVAL_COMPLETE
	.word	SID_QUAL_LU_OFFLINE
	.word	T_DIRECT
	.word	.LC0
	.word	.LC1
	.size	ctl_inquiry_evpd_block_limits, .-ctl_inquiry_evpd_block_limits
	.comm	ctl_config_move_done,4,4
	.comm	UINT64_MAX,4,4
	.comm	T_DIRECT,4,4
	.comm	SVPD_BL_WSNZ,4,4
	.comm	SVPD_BLOCK_LIMITS,4,4
	.comm	SID_QUAL_LU_OFFLINE,4,4
	.comm	SID_QUAL_LU_CONNECTED,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_CTL,4,4
	.comm	CTL_RETVAL_COMPLETE,4,4
	.comm	CTL_LUN_FLAG_UNMAP,4,4
	.comm	CTL_FLAG_ALLOCATED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
