	.file	"extr_ses.c_ses_match_to_enclosure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ses_match_to_enclosure, @function
ses_match_to_enclosure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_scsi_device@PLT
	pxor	xmm0, xmm0
	movaps	XMMWORD PTR [rsp], xmm0
	test	r12d, r12d
	jne	.L15
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	scsi_is_sas_rphy@PLT
	test	rax, rax
	jne	.L3
.L18:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L15:
	.cfi_restore_state
	xor	edx, edx
	mov	rdi, rbp
	mov	rsi, rax
	call	ses_enclosure_data_process@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	scsi_is_sas_rphy@PLT
	test	rax, rax
	je	.L18
.L3:
	mov	rdi, rbx
	call	sas_get_address@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L1
.L16:
	mov	edi, DWORD PTR ses_enclosure_find_by_addr[rip]
	mov	rsi, rsp
	mov	QWORD PTR [rsp], rbx
	call	enclosure_for_each_device@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ses_match_to_enclosure, .-ses_match_to_enclosure
	.comm	ses_enclosure_find_by_addr,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_ses.c_ses_match_to_enclosure.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ses_match_to_enclosure, %function
ses_match_to_enclosure:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	to_scsi_device
	mov	r2, #0
	cmp	r6, r2
	str	r2, [sp, #4]
	str	r2, [sp, #8]
	bne	.L15
.L2:
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	scsi_is_sas_rphy
	cmp	r0, #0
	bne	.L3
	ldr	r0, [sp, #8]
.L4:
	cmp	r0, #0
	bne	.L16
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r1, r0
	mov	r0, r5
	bl	ses_enclosure_data_process
	b	.L2
.L16:
	ldr	r3, .L18+4
	add	r1, sp, #4
	ldr	r0, [r3]
	str	r4, [sp, #4]
	bl	enclosure_for_each_device
	b	.L1
.L3:
	mov	r0, r4
	bl	sas_get_address
	str	r0, [sp, #8]
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	ses_enclosure_find_by_addr
	.size	ses_match_to_enclosure, .-ses_match_to_enclosure
	.comm	ses_enclosure_find_by_addr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
