	.file	"extr_dmlab_module.c_Lab_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"episode"
.LC1:
	.string	"seed"
.LC2:
	.string	"|iO"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"'seed' must be int or None, was '%s'."
	.align 8
.LC4:
	.string	"Failed to start environment - \"%s\""
	.text
	.p2align 4
	.type	Lab_reset, @function
Lab_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, rsi
	mov	rsi, rdx
	lea	rdx, .LC2[rip]
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	r9, 8[rsp]
	mov	DWORD PTR 4[rsp], -1
	lea	rax, .LC0[rip]
	lea	r8, 4[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 32[rsp], 0
	call	PyArg_ParseTupleAndKeywords@PLT
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	js	.L3
	mov	DWORD PTR [rbx], eax
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L4
	cmp	rdi, QWORD PTR Py_None[rip]
	je	.L4
	call	PyInt_Check@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	je	.L19
	call	PyInt_AsLong@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, eax
	mov	rax, QWORD PTR 24[rbx]
	call	[QWORD PTR [rax]]
	test	rax, rax
	jne	.L20
.L9:
	xor	eax, eax
	call	PyErr_Occurred@PLT
	test	rax, rax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	rand@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, eax
	mov	rax, QWORD PTR 24[rbx]
	call	[QWORD PTR [rax]]
	test	rax, rax
	je	.L9
.L20:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 16[rbx]
	call	[QWORD PTR 8[rax]]
	mov	edi, DWORD PTR PyExc_RuntimeError[rip]
	lea	rsi, .LC4[rip]
	mov	edx, eax
	call	PyErr_Format@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR ENV_STATUS_INITIALIZED[rip]
	add	DWORD PTR [rbx], 1
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 4[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	call	Py_TYPE@PLT
	mov	edi, DWORD PTR PyExc_ValueError[rip]
	lea	rsi, .LC3[rip]
	mov	edx, DWORD PTR [rax]
	call	PyErr_Format@PLT
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Lab_reset, .-Lab_reset
	.comm	Py_RETURN_TRUE,4,4
	.comm	Py_None,8,8
	.comm	PyExc_ValueError,4,4
	.comm	PyExc_RuntimeError,4,4
	.comm	ENV_STATUS_INITIALIZED,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_dmlab_module.c_Lab_reset.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"episode\000"
	.align	2
.LC1:
	.ascii	"seed\000"
	.text
	.section	.rodata.str1.4
	.align	2
.LC4:
	.ascii	"|iO\000"
	.align	2
.LC5:
	.ascii	"'seed' must be int or None, was '%s'.\000"
	.align	2
.LC6:
	.ascii	"Failed to start environment - \"%s\"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Lab_reset, %function
Lab_reset:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	mov	r7, r2
	mvn	lr, #0
	mov	ip, #0
	sub	sp, sp, #36
	ldr	r2, .L21
	add	r3, sp, #16
	add	r5, sp, #12
	mov	r4, r0
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	add	r2, sp, #8
	stm	sp, {r2, r5}
	ldr	r5, .L21+4
	mov	r1, r7
	mov	r0, r6
	ldr	r2, .L21+8
	ldr	r5, [r5]
	str	r5, [sp, #28]
	mov	r5,#0
	str	lr, [sp, #8]
	str	ip, [sp, #12]
	bl	PyArg_ParseTupleAndKeywords
	cmp	r0, #0
	beq	.L8
	ldr	r3, [sp, #8]
	ldr	r0, [sp, #12]
	cmp	r3, #0
	strge	r3, [r4]
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	bl	PyInt_Check
	cmp	r0, #0
	beq	.L19
	ldr	r0, [sp, #12]
	bl	PyInt_AsLong
	mov	r2, r0
	b	.L6
.L4:
	bl	rand
	mov	r2, r0
.L6:
	ldr	r3, [r4, #16]
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r0, [r4, #12]
	blx	r3
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r4, #16]
	ldr	r2, .L21+16
	ldr	r3, [r3, #4]
	ldr	r0, [r4, #12]
	ldr	r5, [r2]
	blx	r3
	ldr	r1, .L21+20
	mov	r2, r0
	mov	r0, r5
	bl	PyErr_Format
.L8:
	mov	r0, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	bl	PyErr_Occurred
	cmp	r0, #0
	bne	.L8
	ldr	r2, .L21+24
	ldr	r3, [r4]
	ldr	r2, [r2]
	add	r3, r3, #1
	str	r0, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	b	.L1
.L19:
	ldr	r3, .L21+28
	ldr	r0, [sp, #12]
	ldr	r4, [r3]
	bl	Py_TYPE
	mov	r3, r0
	ldr	r1, .L21+32
	mov	r0, r4
	ldr	r2, [r3]
	bl	PyErr_Format
	b	.L8
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LANCHOR0
	.word	.LC7
	.word	.LC4
	.word	Py_None
	.word	PyExc_RuntimeError
	.word	.LC6
	.word	ENV_STATUS_INITIALIZED
	.word	PyExc_ValueError
	.word	.LC5
	.size	Lab_reset, .-Lab_reset
	.comm	Py_RETURN_TRUE,4,4
	.comm	Py_None,4,4
	.comm	PyExc_ValueError,4,4
	.comm	PyExc_RuntimeError,4,4
	.comm	ENV_STATUS_INITIALIZED,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC3:
	.word	.LC0
	.word	.LC1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
