	.file	"extr_ide-cd.c_ide_cdrom_get_capabilities.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter"
	.text
	.p2align 4
	.globl	ide_cdrom_get_capabilities
	.type	ide_cdrom_get_capabilities, @function
ide_cdrom_get_capabilities:
.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
	mov	r13, rsi
	lea	rsi, .LC0[rip]
	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, 16
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR IDE_DBG_FUNC[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14d, DWORD PTR ATAPI_CAPABILITIES_PAGE_SIZE[rip]
	call	ide_debug_log@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IDE_AFLAG_FULL_CAPS_PAGE[rip], eax
	jne	.L2
	sub	r14d, DWORD PTR ATAPI_CAPABILITIES_PAGE_PAD_SIZE[rip]
.L2:
	lea	rbp, 4[rsp]
	mov	edx, r14d
	mov	rsi, r13
	mov	ebx, 3
	mov	ecx, DWORD PTR CGC_DATA_UNKNOWN[rip]
	mov	rdi, rbp
	call	init_cdrom_command@PLT
.L4:
	mov	edx, DWORD PTR GPMODE_CAPABILITIES_PAGE[rip]
	xor	ecx, ecx
	mov	rsi, rbp
	mov	rdi, r12
	call	cdrom_mode_sense@PLT
	test	eax, eax
	je	.L1
	sub	ebx, 1
	jne	.L4
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ide_cdrom_get_capabilities, .-ide_cdrom_get_capabilities
	.comm	IDE_DBG_FUNC,4,4
	.comm	IDE_AFLAG_FULL_CAPS_PAGE,4,4
	.comm	GPMODE_CAPABILITIES_PAGE,4,4
	.comm	CGC_DATA_UNKNOWN,4,4
	.comm	ATAPI_CAPABILITIES_PAGE_SIZE,4,4
	.comm	ATAPI_CAPABILITIES_PAGE_PAD_SIZE,8,8
	.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_ide-cd.c_ide_cdrom_get_capabilities.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ide_cdrom_get_capabilities
	.syntax unified
	.arm
	.fpu softvfp
	.type	ide_cdrom_get_capabilities, %function
ide_cdrom_get_capabilities:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r2, .L13
	ldr	r3, .L13+4
	ldr	r0, [r2]
	ldr	r2, .L13+8
	sub	sp, sp, #12
	ldr	r1, .L13+12
	ldr	r7, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r6, [r4, #4]
	bl	ide_debug_log
	ldr	r3, .L13+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r1, r5
	tst	r2, r3
	ldreq	r3, .L13+20
	mov	r0, sp
	ldreq	r3, [r3]
	mov	r4, #3
	subeq	r7, r7, r3
	ldr	r3, .L13+24
	mov	r2, r7
	ldr	r3, [r3]
	bl	init_cdrom_command
	ldr	r5, .L13+28
.L4:
	mov	r3, #0
	mov	r1, sp
	mov	r0, r6
	ldr	r2, [r5]
	bl	cdrom_mode_sense
	cmp	r0, #0
	beq	.L1
	subs	r4, r4, #1
	bne	.L4
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	IDE_DBG_FUNC
	.word	ATAPI_CAPABILITIES_PAGE_SIZE
	.word	.LC1
	.word	.LC0
	.word	IDE_AFLAG_FULL_CAPS_PAGE
	.word	ATAPI_CAPABILITIES_PAGE_PAD_SIZE
	.word	CGC_DATA_UNKNOWN
	.word	GPMODE_CAPABILITIES_PAGE
	.size	ide_cdrom_get_capabilities, .-ide_cdrom_get_capabilities
	.comm	IDE_DBG_FUNC,4,4
	.comm	IDE_AFLAG_FULL_CAPS_PAGE,4,4
	.comm	GPMODE_CAPABILITIES_PAGE,4,4
	.comm	CGC_DATA_UNKNOWN,4,4
	.comm	ATAPI_CAPABILITIES_PAGE_SIZE,4,4
	.comm	ATAPI_CAPABILITIES_PAGE_PAD_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
