	.file	"extr_viohs.c_process_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_attr, @function
process_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR VIO_HS_GOTVERS[rip], eax
	je	.L12
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L1
	call	[QWORD PTR [rax]]
	test	eax, eax
	js	.L12
	mov	eax, DWORD PTR 0[rbp]
	or	eax, DWORD PTR VIO_HS_GOT_ATTR[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	edx, DWORD PTR 4[rbp]
	test	DWORD PTR VIO_DR_STATE_TXREQ[rip], edx
	je	.L1
	test	DWORD PTR VIO_HS_SENT_DREG[rip], eax
	je	.L14
.L1:
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	handshake_failure@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	send_dreg@PLT
	test	rax, rax
	js	.L12
	mov	eax, DWORD PTR VIO_HS_SENT_DREG[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	process_attr, .-process_attr
	.comm	VIO_HS_SENT_DREG,4,4
	.comm	VIO_HS_GOT_ATTR,4,4
	.comm	VIO_HS_GOTVERS,4,4
	.comm	VIO_DR_STATE_TXREQ,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_viohs.c_process_attr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_attr, %function
process_attr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L13
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L1
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	blt	.L14
	ldr	r3, .L17+4
	ldr	r2, .L17+8
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	orr	r3, r3, r0
	tst	r1, r2
	str	r3, [r4]
	beq	.L1
	ldr	r5, .L17+12
	ldr	r2, [r5]
	tst	r3, r2
	beq	.L16
.L1:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
.L13:
	b	handshake_failure
.L16:
	mov	r0, r4
	bl	send_dreg
	cmp	r0, #0
	blt	.L14
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L18:
	.align	2
.L17:
	.word	VIO_HS_GOTVERS
	.word	VIO_HS_GOT_ATTR
	.word	VIO_DR_STATE_TXREQ
	.word	VIO_HS_SENT_DREG
	.size	process_attr, .-process_attr
	.comm	VIO_HS_SENT_DREG,4,4
	.comm	VIO_HS_GOT_ATTR,4,4
	.comm	VIO_HS_GOTVERS,4,4
	.comm	VIO_DR_STATE_TXREQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
