	.file	"extr_chip.c_driver_lstate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid host_link_state 0x%x\n"
	.text
	.p2align 4
	.globl	driver_lstate
	.type	driver_lstate, @function
driver_lstate:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jne	.L16
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR 4[rdi]
	lea	rsi, .LC0[rip]
	call	dd_dev_err@PLT
	mov	eax, -1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	test	DWORD PTR HLS_DOWN[rip], edx
	jne	.L17
	mov	ecx, DWORD PTR HLS_UP[rip]
	mov	eax, DWORD PTR IB_PORT_ARMED[rip]
	and	ecx, edx
	cmp	ecx, 129
	je	.L13
	mov	eax, DWORD PTR IB_PORT_ACTIVE[rip]
	cmp	ecx, 130
	jne	.L18
.L13:
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	ecx, 128
	jne	.L2
	mov	eax, DWORD PTR IB_PORT_INIT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR IB_PORT_DOWN[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	driver_lstate, .-driver_lstate
	.comm	IB_PORT_INIT,4,4
	.comm	IB_PORT_DOWN,4,4
	.comm	IB_PORT_ARMED,4,4
	.comm	IB_PORT_ACTIVE,4,4
	.comm	HLS_UP,4,4
	.comm	HLS_DOWN,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_chip.c_driver_lstate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid host_link_state 0x%x\012\000"
	.text
	.align	2
	.global	driver_lstate
	.syntax unified
	.arm
	.fpu softvfp
	.type	driver_lstate, %function
driver_lstate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bne	.L14
.L2:
	push	{r4, lr}
	ldr	r1, .L17
	ldr	r0, [r0, #4]
	bl	dd_dev_err
	mvn	r0, #0
	pop	{r4, pc}
.L14:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L15
	ldr	r3, .L17+8
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	bne	.L16
	ldr	r3, .L17+12
	ldr	r0, [r3]
	bx	lr
.L16:
	cmp	r3, #128
	bne	.L2
	ldr	r3, .L17+16
	ldr	r0, [r3]
	bx	lr
.L5:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	bx	lr
.L15:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	bx	lr
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	HLS_DOWN
	.word	HLS_UP
	.word	IB_PORT_ACTIVE
	.word	IB_PORT_INIT
	.word	IB_PORT_ARMED
	.word	IB_PORT_DOWN
	.size	driver_lstate, .-driver_lstate
	.comm	IB_PORT_INIT,4,4
	.comm	IB_PORT_DOWN,4,4
	.comm	IB_PORT_ARMED,4,4
	.comm	IB_PORT_ACTIVE,4,4
	.comm	HLS_UP,4,4
	.comm	HLS_DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
