	.file	"extr_device_pgid.c_spid_do.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spid_do, @function
spid_do:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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	edi, DWORD PTR 8[rdi]
	call	to_subchannel@PLT
	mov	r12, QWORD PTR 0[rbp]
	mov	rbx, rax
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 12[r12]
	call	lpm_adjust@PLT
	mov	DWORD PTR 12[r12], eax
	test	eax, eax
	je	.L10
	test	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR SPID_FUNC_ESTABLISH[rip]
	cmove	esi, DWORD PTR SPID_FUNC_RESIGN[rip]
	cmp	QWORD PTR [rax], 0
	je	.L7
	or	esi, DWORD PTR SPID_FUNC_MULTI_PATH[rip]
.L7:
	mov	rdi, rbp
	call	spid_build_cp@PLT
	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	ccw_request_start@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	QWORD PTR 8[rbx], 0
	jne	.L4
	mov	eax, DWORD PTR EACCES[rip]
	neg	eax
.L4:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	verify_done@PLT
	.cfi_endproc
.LFE0:
	.size	spid_do, .-spid_do
	.comm	SPID_FUNC_RESIGN,4,4
	.comm	SPID_FUNC_MULTI_PATH,4,4
	.comm	SPID_FUNC_ESTABLISH,4,4
	.comm	EACCES,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_device_pgid.c_spid_do.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spid_do, %function
spid_do:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	to_subchannel
	ldr	r6, [r4]
	mov	r5, r0
	ldr	r1, [r6, #4]
	ldr	r0, [r6, #8]
	bl	lpm_adjust
	cmp	r0, #0
	str	r0, [r6, #8]
	beq	.L13
	ldr	r3, [r5]
	tst	r0, r3
	ldrne	r3, .L14
	ldreq	r3, .L14+4
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, .L14+8
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	bl	spid_build_cp
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ccw_request_start
.L13:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ldreq	r3, .L14+12
	ldreq	r1, [r3]
	rsbeq	r0, r1, #0
.L4:
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	verify_done
.L15:
	.align	2
.L14:
	.word	SPID_FUNC_ESTABLISH
	.word	SPID_FUNC_RESIGN
	.word	SPID_FUNC_MULTI_PATH
	.word	EACCES
	.size	spid_do, .-spid_do
	.comm	SPID_FUNC_RESIGN,4,4
	.comm	SPID_FUNC_MULTI_PATH,4,4
	.comm	SPID_FUNC_ESTABLISH,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
