	.file	"extr_habanalabs_ioctl.c__hl_info_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in_reset"
.LC1:
	.string	"disabled"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Device is %s. Can't execute INFO IOCTL\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Invalid request %d\n"
	.text
	.p2align 4
	.type	_hl_info_ioctl, @function
_hl_info_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rsi]
	mov	r12, QWORD PTR [rdi]
	cmp	eax, 128
	je	.L2
	cmp	eax, 134
	je	.L3
	mov	r14, rdi
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rsi
	mov	r13, rdx
	call	hl_device_disabled_or_in_reset@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L20
	mov	edx, DWORD PTR [rsi]
	lea	eax, -129[rdx]
	cmp	eax, 4
	ja	.L8
	lea	rdx, .L10[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L10:
	.long	.L14-.L10
	.long	.L13-.L10
	.long	.L12-.L10
	.long	.L11-.L10
	.long	.L9-.L10
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hw_ip_info@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	device_status_info@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r12
	call	atomic_read@PLT
	lea	rdx, .LC0[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	test	rax, rax
	lea	rax, .LC1[rip]
	cmove	rdx, rax
	call	dev_warn_ratelimited@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	dram_usage_info@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	device_utilization@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hw_idle@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdx, rsi
	mov	esi, 1
.L18:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hw_events_info@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, rsi
	xor	esi, esi
	jmp	.L18
.L8:
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOTTY[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_hl_info_ioctl, .-_hl_info_ioctl
	.comm	ENOTTY,4,4
	.comm	EBUSY,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_habanalabs_ioctl.c__hl_info_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in_reset\000"
	.align	2
.LC1:
	.ascii	"disabled\000"
	.align	2
.LC2:
	.ascii	"Device is %s. Can't execute INFO IOCTL\012\000"
	.align	2
.LC3:
	.ascii	"Invalid request %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_hl_info_ioctl, %function
_hl_info_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #128
	ldr	r6, [r0]
	beq	.L2
	cmp	r3, #134
	beq	.L3
	mov	r5, r0
	mov	r0, r6
	mov	r4, r1
	mov	r7, r2
	bl	hl_device_disabled_or_in_reset
	cmp	r0, #0
	bne	.L19
	ldr	r2, [r4]
	sub	r3, r2, #129
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L9
.L2:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	hw_ip_info
.L3:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	device_status_info
.L19:
	mov	r0, r6
	bl	atomic_read
	mov	r1, r0
	ldr	r3, .L20
	cmp	r1, #0
	ldr	r2, .L20+4
	mov	r0, r7
	moveq	r2, r3
	ldr	r1, .L20+8
	bl	dev_warn_ratelimited
	ldr	r3, .L20+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	device_utilization
.L14:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	hw_idle
.L13:
	mov	r2, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	b	hw_events_info
.L12:
	mov	r2, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	hw_events_info
.L11:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	dram_usage_info
.L8:
	mov	r0, r7
	ldr	r1, .L20+16
	bl	dev_err
	ldr	r3, .L20+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	EBUSY
	.word	.LC3
	.word	ENOTTY
	.size	_hl_info_ioctl, .-_hl_info_ioctl
	.comm	ENOTTY,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
