	.file	"extr_cdrom.c_cdrom_get_current_config_cdread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[CDROM] get current config cd read status code %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"[CDROM] Feature Header: "
.LC2:
	.string	"%02X "
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"[CDROM] CD Read Feature Descriptor: "
	.section	.rodata.str1.1
.LC4:
	.string	"(current)"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"[CDROM] Supported commands: READ CD, READ CD MSF, READ TOC/PMA/ATIP"
	.text
	.p2align 4
	.globl	cdrom_get_current_config_cdread
	.type	cdrom_get_current_config_cdread, @function
cdrom_get_current_config_cdread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	mov	ecx, 16
	mov	r9d, 10
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR DIRECTION_IN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, 16
	movaps	XMMWORD PTR 16[rsp], xmm0
	lea	rbp, 16[rsp]
	mov	QWORD PTR 6[rsp], 503317062
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdx, rbp
	mov	WORD PTR 22[rsp], ax
	push	0
	.cfi_def_cfa_offset 112
	lea	r8, 22[rsp]
	call	cdrom_send_command@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	ebx, eax
	xor	eax, eax
	call	printf@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	ebx, ebx
	je	.L15
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	lea	r13, 24[rsp]
	mov	rbx, rbp
	call	printf@PLT
	lea	r12, .LC2[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	esi, BYTE PTR [rbx]
	mov	rdi, r12
	xor	eax, eax
	add	rbx, 1
	call	printf@PLT
	cmp	rbx, r13
	jne	.L4
	mov	edi, 10
	add	rbp, 16
	lea	r12, .LC2[rip]
	call	putchar@PLT
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	esi, BYTE PTR [rbx]
	mov	rdi, r12
	xor	eax, eax
	add	rbx, 1
	call	printf@PLT
	cmp	rbx, rbp
	jne	.L5
	test	BYTE PTR 26[rsp], 1
	jne	.L17
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L6
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cdrom_get_current_config_cdread, .-cdrom_get_current_config_cdread
	.comm	DIRECTION_IN,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_cdrom.c_cdrom_get_current_config_cdread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"[CDROM] get current config cd read status code %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"[CDROM] Feature Header: \000"
	.align	2
.LC3:
	.ascii	"%02X \000"
	.align	2
.LC4:
	.ascii	"[CDROM] CD Read Feature Descriptor: \000"
	.align	2
.LC5:
	.ascii	"(current)\000"
	.align	2
.LC6:
	.ascii	"[CDROM] Supported commands: READ CD, READ CD MSF, R"
	.ascii	"EAD TOC/PMA/ATIP\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cdrom_get_current_config_cdread
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdrom_get_current_config_cdread, %function
cdrom_get_current_config_cdread:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r3, #0
	mov	lr, #10
	mov	r4, r0
	sub	sp, sp, #48
	ldr	r2, .L18
	add	ip, sp, #16
	ldm	r2, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	ldr	r1, .L18+4
	strh	r2, [ip]	@ movhi
	str	r3, [sp, #8]
	str	lr, [sp, #4]
	ldr	ip, .L18+8
	add	r2, sp, #16
	ldr	r1, [r1]
	str	r2, [sp]
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	mov	r0, r4
	add	r2, sp, #28
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	str	r3, [sp, #36]
	str	r3, [sp, #40]
	mov	r3, #16
	bl	cdrom_send_command
	mov	r4, r0
	ldr	r0, .L18+12
	mov	r1, r4
	bl	printf
	cmp	r4, #0
	beq	.L15
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r0, .L18+16
	bl	printf
	ldr	r6, .L18+20
	add	r4, sp, #28
	add	r5, sp, #36
.L4:
	ldrb	r1, [r4], #1	@ zero_extendqisi2
	mov	r0, r6
	bl	printf
	cmp	r4, r5
	bne	.L4
	mov	r0, #10
	bl	putchar
	ldr	r0, .L18+24
	bl	printf
	ldr	r6, .L18+20
	add	r5, sp, #43
	add	r4, sp, #35
.L5:
	ldrb	r1, [r4, #1]!	@ zero_extendqisi2
	mov	r0, r6
	bl	printf
	cmp	r4, r5
	bne	.L5
	ldrb	r3, [sp, #38]	@ zero_extendqisi2
	tst	r3, #1
	bne	.L17
.L6:
	ldr	r0, .L18+28
	bl	puts
	b	.L1
.L17:
	ldr	r0, .L18+32
	bl	puts
	b	.L6
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LANCHOR0
	.word	DIRECTION_IN
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC5
	.size	cdrom_get_current_config_cdread, .-cdrom_get_current_config_cdread
	.comm	DIRECTION_IN,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"F\002\000\036\000\000\000\000\020\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
