// File: /workspace/github_c_makefile_star2_O2/michaelforney[P]wld/intel/batch.c
// Function: intel_batch_initialize
bool
intel_batch_initialize(struct intel_batch *batch,
                       drm_intel_bufmgr *bufmgr)
{
	int device_id = drm_intel_bufmgr_gem_get_devid(bufmgr);

	batch->command_count = 0;
	batch->device_info = device_info(device_id);

	if (!batch->device_info)
		return false;

	/* Alignment argument (4096) is not used */
	batch->bo = drm_intel_bo_alloc(bufmgr, "batchbuffer", sizeof batch->commands, 4096);

	if (!batch->bo)
		return false;

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x9620
andl $0x0, 0x8010(%rbx)
leal -0x1902(%rax), %ecx
cmpl $0x3b, %ecx
jbe 0xb8f4
leal -0x5902(%rax), %ecx
cmpl $0x25, %ecx
jbe 0xb910
leal -0x1602(%rax), %ecx
cmpl $0x2c, %ecx
jbe 0xb92c
leal -0x5a41(%rax), %ecx
cmpl $0x1b, %ecx
jbe 0xb948
leal -0x3e90(%rax), %ecx
cmpl $0x18, %ecx
jbe 0xb964
leal -0x152(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xb9a4
leal -0x406(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xb9f0
leal -0x412(%rax), %ecx
cmpl $0x9, %ecx
jbe 0xba00
leal -0x426(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba10
leal -0xa06(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba20
leal -0xa12(%rax), %ecx
cmpl $0x9, %ecx
jbe 0xba30
leal -0xa26(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba40
leal -0xc06(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba50
leal -0xc12(%rax), %ecx
cmpl $0x9, %ecx
jbe 0xba60
leal -0xc26(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba70
leal -0xd06(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xba80
leal -0xd12(%rax), %ecx
cmpl $0x9, %ecx
jbe 0xba99
leal -0xd26(%rax), %ecx
cmpl $0x8, %ecx
jbe 0xbabb
leal -0x22b0(%rax), %ecx
cmpl $0x3, %ecx
jbe 0xbb15
leaq 0x5c4f(%rip), %rcx      # 0x11360
leal -0x2972(%rax), %edx
cmpl $0x30, %edx
jbe 0xbb00
cmpl $0x42, %eax
je 0xbb9a
cmpl $0x46, %eax
je 0xbb9a
cmpl $0x102, %eax            # imm = 0x102
je 0xbb76
cmpl $0x106, %eax            # imm = 0x106
je 0xbb76
cmpl $0x10a, %eax            # imm = 0x10A
je 0xbb76
cmpl $0x112, %eax            # imm = 0x112
je 0xbb2e
cmpl $0x116, %eax            # imm = 0x116
je 0xbb2e
cmpl $0x122, %eax            # imm = 0x122
je 0xbb2e
cmpl $0x126, %eax            # imm = 0x126
je 0xbb2e
cmpl $0x162, %eax            # imm = 0x162
je 0xbb6a
cmpl $0x166, %eax            # imm = 0x166
je 0xbb6a
cmpl $0x16a, %eax            # imm = 0x16A
je 0xbb6a
cmpl $0x402, %eax            # imm = 0x402
je 0xba90
cmpl $0x41e, %eax            # imm = 0x41E
je 0xbaa9
cmpl $0x422, %eax            # imm = 0x422
je 0xbacb
cmpl $0xa02, %eax            # imm = 0xA02
je 0xba90
cmpl $0xa1e, %eax            # imm = 0xA1E
je 0xbaa9
cmpl $0xa22, %eax            # imm = 0xA22
je 0xbacb
cmpl $0xa84, %eax            # imm = 0xA84
je 0xbb5e
cmpl $0xc02, %eax            # imm = 0xC02
je 0xba90
cmpl $0xc1e, %eax            # imm = 0xC1E
je 0xbaa9
cmpl $0xc22, %eax            # imm = 0xC22
je 0xbacb
cmpl $0xd02, %eax            # imm = 0xD02
je 0xba90
cmpl $0xd1e, %eax            # imm = 0xD1E
je 0xbaa9
cmpl $0xd22, %eax            # imm = 0xD22
je 0xbacb
cmpl $0xf31, %eax            # imm = 0xF31
je 0xb9e4
cmpl $0xf32, %eax            # imm = 0xF32
je 0xb9e4
cmpl $0xf33, %eax            # imm = 0xF33
je 0xb9e4
cmpl $0x1a84, %eax           # imm = 0x1A84
je 0xbb5e
cmpl $0x1a85, %eax           # imm = 0x1A85
je 0xbba6
cmpl $0x2a02, %eax           # imm = 0x2A02
je 0xbad2
cmpl $0x2a12, %eax           # imm = 0x2A12
je 0xbad2
cmpl $0x5a85, %eax           # imm = 0x5A85
je 0xbba6
cmpl $0x2e02, %eax           # imm = 0x2E02
je 0xb8e8
cmpl $0x2e12, %eax           # imm = 0x2E12
je 0xb8e8
cmpl $0x2e22, %eax           # imm = 0x2E22
je 0xb8e8
cmpl $0x2e32, %eax           # imm = 0x2E32
je 0xb8e8
cmpl $0x2e42, %eax           # imm = 0x2E42
je 0xb8e8
cmpl $0x2e92, %eax           # imm = 0x2E92
je 0xb8e8
cmpl $0x3184, %eax           # imm = 0x3184
je 0xbbd5
cmpl $0x3185, %eax           # imm = 0x3185
je 0xbbbd
cmpl $0x593b, %eax           # imm = 0x593B
je 0xbbc9
cmpl $0x5a84, %eax           # imm = 0x5A84
je 0xbb5e
cmpl $0x2a42, %eax           # imm = 0x2A42
jne 0xbbb2
leaq 0x5a75(%rip), %rcx      # 0x11364
jmp 0xbad2
leaq 0x57f9(%rip), %rax      # 0x110f4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5a95(%rip), %rcx      # 0x113a0
jmp 0xbad2
leaq 0x5941(%rip), %rax      # 0x11258
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5a95(%rip), %rcx      # 0x113bc
jmp 0xbad2
leaq 0x570d(%rip), %rax      # 0x11040
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5a49(%rip), %rcx      # 0x1138c
jmp 0xbad2
leaq 0x59a1(%rip), %rax      # 0x112f0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5a89(%rip), %rcx      # 0x113e8
jmp 0xbad2
leaq 0x5889(%rip), %rax      # 0x111f4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5a59(%rip), %rcx      # 0x113d4
jmp 0xbad2
leaq 0x5a2d(%rip), %rcx      # 0x113b4
jmp 0xbad2
leaq 0x59fd(%rip), %rcx      # 0x11390
jmp 0xbad2
leaq 0x59f5(%rip), %rcx      # 0x11394
jmp 0xbad2
leaq 0x54b1(%rip), %rax      # 0x10e5c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x59b9(%rip), %rcx      # 0x11374
jmp 0xbad2
leaq 0x59e1(%rip), %rcx      # 0x113a8
jmp 0xbad2
leaq 0x59d1(%rip), %rcx      # 0x113a4
jmp 0xbad2
leaq 0x59bd(%rip), %rcx      # 0x1139c
jmp 0xbad2
leaq 0x599d(%rip), %rcx      # 0x11388
jmp 0xbad2
leaq 0x5489(%rip), %rax      # 0x10e80
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x549d(%rip), %rax      # 0x10ea4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x54b5(%rip), %rax      # 0x10ecc
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x54c9(%rip), %rax      # 0x10ef0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x54dd(%rip), %rax      # 0x10f14
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x54f5(%rip), %rax      # 0x10f3c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5509(%rip), %rax      # 0x10f60
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x551d(%rip), %rax      # 0x10f84
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5535(%rip), %rax      # 0x10fac
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x5549(%rip), %rax      # 0x10fd0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x58e5(%rip), %rcx      # 0x1137c
jmp 0xbad2
leaq 0x5554(%rip), %rax      # 0x10ff4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x58d0(%rip), %rcx      # 0x11380
jmp 0xbad2
leaq 0x591f(%rip), %rcx      # 0x113d8
jmp 0xbad2
leaq 0x555a(%rip), %rax      # 0x1101c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x58b2(%rip), %rcx      # 0x11384
movq %rcx, (%rbx)
leaq 0x5910(%rip), %rsi      # 0x113ec
movl $0x8000, %edx           # imm = 0x8000
movq %r14, %rdi
movl $0x1000, %ecx           # imm = 0x1000
callq 0x90b0
movq %rax, 0x8(%rbx)
testq %rax, %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movabsq $0x1000100010001, %rsi  # imm = 0x1000100010001
btq %rdx, %rsi
jb 0xbad2
jmp 0xb720
leaq 0x56c8(%rip), %rax      # 0x111e4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x586c(%rip), %rcx      # 0x11398
jmp 0xbad2
leaq 0x583b(%rip), %rcx      # 0x11370
jmp 0xbad2
leaq 0x58a2(%rip), %rcx      # 0x113e0
jmp 0xbad2
leaq 0x589d(%rip), %rcx      # 0x113e4
jmp 0xbad2
leaq 0x5868(%rip), %rcx      # 0x113b8
jmp 0xbad2
leaq 0x5867(%rip), %rcx      # 0x113c0
jmp 0xbad2
leaq 0x5847(%rip), %rcx      # 0x113ac
jmp 0xbad2
leaq 0x5807(%rip), %rcx      # 0x11378
jmp 0xbad2
leaq 0x57ef(%rip), %rcx      # 0x1136c
jmp 0xbad2
leaq 0x5853(%rip), %rcx      # 0x113dc
jmp 0xbad2
leaq 0x583b(%rip), %rcx      # 0x113d0
jmp 0xbad2
leaq 0x57c7(%rip), %rcx      # 0x11368
jmp 0xbad2
leaq 0x5803(%rip), %rcx      # 0x113b0
jmp 0xbad2
andq $0x0, (%rbx)
xorl %eax, %eax
jmp 0xbaf8
leaq 0x5808(%rip), %rcx      # 0x113cc
jmp 0xbad2
leaq 0x57f4(%rip), %rcx      # 0x113c4
jmp 0xbad2
leaq 0x57ec(%rip), %rcx      # 0x113c8
jmp 0xbad2