	.file	"extr_pktcdvd.c_pkt_get_disc_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pkt_get_disc_info, @function
pkt_get_disc_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 4
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR CGC_DATA_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	init_cdrom_command@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR GPCMD_READ_DISC_INFO[rip]
	mov	DWORD PTR 32[rax], 2
	mov	DWORD PTR [rax], edx
	movabs	rax, 4294967298
	mov	QWORD PTR 8[rsp], rax
	call	pkt_generic_packet@PLT
	test	eax, eax
	je	.L8
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	be16_to_cpu@PLT
	add	eax, 4
	cmp	eax, 4
	ja	.L3
	mov	DWORD PTR 8[rsp], eax
.L4:
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 32[rdx], eax
	call	pkt_generic_packet@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR 8[rsp], 4
	mov	eax, 4
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pkt_get_disc_info, .-pkt_get_disc_info
	.comm	GPCMD_READ_DISC_INFO,4,4
	.comm	CGC_DATA_READ,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_pktcdvd.c_pkt_get_disc_info.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkt_get_disc_info, %function
pkt_get_disc_info:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L9
	sub	sp, sp, #20
	ldr	ip, .L9+4
	mov	r4, r0
	mov	r2, #4
	ldr	r3, [r3]
	mov	r0, sp
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r5, r1
	bl	init_cdrom_command
	mov	r3, #2
	mov	ip, #1
	ldr	r1, .L9+8
	ldr	r2, [sp]
	ldr	r1, [r1]
	mov	r0, r4
	str	r1, [r2]
	str	r3, [r2, #32]
	mov	r1, sp
	stmib	sp, {r3, ip}
	bl	pkt_generic_packet
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r5]
	bl	be16_to_cpu
	add	r3, r0, #4
	cmp	r3, #4
	movhi	r2, #4
	movhi	r3, r2
	strhi	r2, [sp, #4]
	ldr	r2, [sp]
	mov	r1, sp
	mov	r0, r4
	str	r3, [r2, #32]
	strls	r3, [sp, #4]
	bl	pkt_generic_packet
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	CGC_DATA_READ
	.word	.LC0
	.word	GPCMD_READ_DISC_INFO
	.size	pkt_get_disc_info, .-pkt_get_disc_info
	.comm	GPCMD_READ_DISC_INFO,4,4
	.comm	CGC_DATA_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
