	.file	"extr_target_core_pr.c_target_scsi2_reservation_check.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	target_scsi2_reservation_check, @function
target_scsi2_reservation_check:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	add	edx, -128
	cmp	edx, 2
	jbe	.L1
	mov	rcx, QWORD PTR 16[rdi]
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rcx]
	test	rax, rax
	je	.L6
	test	rdx, rdx
	je	.L6
	mov	rsi, QWORD PTR [rdx]
	cmp	QWORD PTR [rax], rsi
	jne	.L4
	mov	eax, DWORD PTR [rcx]
	and	eax, DWORD PTR DRF_SPC2_RESERVATIONS_WITH_ISID[rip]
	je	.L1
	mov	rax, QWORD PTR 8[rdx]
	cmp	QWORD PTR 8[rcx], rax
	je	.L6
.L4:
	mov	eax, DWORD PTR TCM_RESERVATION_CONFLICT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	target_scsi2_reservation_check, .-target_scsi2_reservation_check
	.comm	TCM_RESERVATION_CONFLICT,4,4
	.comm	DRF_SPC2_RESERVATIONS_WITH_ISID,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_target_core_pr.c_target_scsi2_reservation_check.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	target_scsi2_reservation_check, %function
target_scsi2_reservation_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #2
	bls	.L6
	ldmib	r0, {r2, ip}
	clz	r3, r2
	ldr	r1, [ip, #8]
	lsr	r3, r3, #5
	cmp	r1, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L6
	ldr	r0, [r1]
	ldr	r1, [r2]
	cmp	r0, r1
	bne	.L4
	ldr	r1, .L11
	ldr	r0, [ip]
	ldr	r1, [r1]
	ands	r0, r0, r1
	bxeq	lr
	ldr	r1, [ip, #4]
	ldr	r2, [r2, #4]
	cmp	r1, r2
	beq	.L6
.L4:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	bx	lr
.L6:
	mov	r0, #0
	bx	lr
.L12:
	.align	2
.L11:
	.word	DRF_SPC2_RESERVATIONS_WITH_ISID
	.word	TCM_RESERVATION_CONFLICT
	.size	target_scsi2_reservation_check, .-target_scsi2_reservation_check
	.comm	TCM_RESERVATION_CONFLICT,4,4
	.comm	DRF_SPC2_RESERVATIONS_WITH_ISID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
