	.file	"extr_cmd_parser.c_scan_workload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scan_workload, @function
scan_workload:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	rdi, QWORD PTR [rdi]
	mov	esi, DWORD PTR I915_GTT_PAGE_SIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	IS_ALIGNED@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	r13, QWORD PTR 8[rbx]
	mov	r12, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 28[rbx]
	lea	r14, [rax+r13]
	lea	rbp, [rax+r12]
	call	_RING_CTL_BUF_SIZE@PLT
	mov	edx, DWORD PTR RING_BUFFER_INSTRUCTION[rip]
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 28[rbx]
	mov	DWORD PTR 72[rsp], edx
	mov	edx, DWORD PTR GTT_BUFFER[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	DWORD PTR 68[rsp], edx
	mov	edx, DWORD PTR 36[rbx]
	mov	DWORD PTR 64[rsp], edx
	mov	edx, DWORD PTR 24[rbx]
	mov	DWORD PTR [rsp], edx
	call	_RING_CTL_BUF_SIZE@PLT
	mov	ecx, DWORD PTR bypass_scan_mask[rip]
	mov	QWORD PTR 16[rsp], r14
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR 32[rbx]
	mov	QWORD PTR 24[rsp], rbp
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	QWORD PTR 40[rsp], rbx
	bt	ecx, eax
	mov	DWORD PTR 32[rsp], 0
	jc	.L5
	cmp	r13, r12
	je	.L5
	mov	rbp, rsp
	mov	rsi, r14
	mov	rdi, rbp
	call	ip_gma_set@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 28[rbx]
	call	_RING_CTL_BUF_SIZE@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	rcx, QWORD PTR [rbx]
	mov	r8, rax
	call	command_scan@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scan_workload, .-scan_workload
	.comm	bypass_scan_mask,4,4
	.comm	RING_BUFFER_INSTRUCTION,4,4
	.comm	I915_GTT_PAGE_SIZE,4,4
	.comm	GTT_BUFFER,4,4
	.comm	EINVAL,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_cmd_parser.c_scan_workload.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_workload, %function
scan_workload:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L8
	sub	sp, sp, #60
	ldr	r1, [r3]
	ldr	r3, .L8+4
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	IS_ALIGNED
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	subs	r5, r0, #0
	beq	.L2
	ldr	r3, .L8+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r7, [r4, #8]
	ldr	r0, [r4, #16]
	ldm	r4, {r2, r8}
	add	r9, r2, r8
	add	r6, r2, r7
	bl	_RING_CTL_BUF_SIZE
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [sp, #48]
	ldr	r3, [r4]
	str	r2, [sp, #44]
	str	r3, [sp, #12]
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #16]
	str	r2, [sp, #40]
	str	r3, [sp, #8]
	bl	_RING_CTL_BUF_SIZE
	ldr	r3, .L8+20
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	str	r9, [sp, #16]
	asr	r3, r3, r2
	cmp	r8, r7
	orreq	r3, r3, #1
	ldr	r2, [r4, #20]
	tst	r3, #1
	str	r6, [sp, #20]
	str	r0, [sp, #36]
	str	r4, [sp, #28]
	str	r5, [sp, #24]
	str	r2, [sp, #32]
	bne	.L1
	mov	r1, r9
	add	r0, sp, #8
	bl	ip_gma_set
	subs	r5, r0, #0
	bne	.L1
	ldr	r0, [r4, #16]
	ldm	r4, {r4, r5, r6}
	bl	_RING_CTL_BUF_SIZE
	mov	r1, r5
	str	r0, [sp]
	mov	r3, r4
	mov	r2, r6
	add	r0, sp, #8
	bl	command_scan
	mov	r5, r0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	I915_GTT_PAGE_SIZE
	.word	.LC0
	.word	EINVAL
	.word	RING_BUFFER_INSTRUCTION
	.word	GTT_BUFFER
	.word	bypass_scan_mask
	.size	scan_workload, .-scan_workload
	.comm	bypass_scan_mask,4,4
	.comm	RING_BUFFER_INSTRUCTION,4,4
	.comm	I915_GTT_PAGE_SIZE,4,4
	.comm	GTT_BUFFER,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
