	.file	"extr_radeon_acpi.c_radeon_atcs_verify_interface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ATCS buffer is too small: %zu\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"ATCS version %u\n"
	.text
	.p2align 4
	.type	radeon_atcs_verify_interface, @function
radeon_atcs_verify_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR ATCS_FUNCTION_VERIFY_INTERFACE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	radeon_atcs_call@PLT
	test	rax, rax
	je	.L9
	mov	r13, rsp
	mov	rbp, rax
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r13
	call	memset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR [rax]
	cmp	rsi, 7
	jbe	.L10
	mov	edi, 8
	call	min@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r13
	mov	rdx, rax
	call	memcpy@PLT
	mov	esi, DWORD PTR 4[rsp]
	lea	rdi, .LC1[rip]
	call	DRM_DEBUG_DRIVER@PLT
	mov	esi, DWORD PTR [rsp]
	mov	rdi, r12
	xor	r12d, r12d
	call	radeon_atcs_parse_functions@PLT
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	DRM_INFO@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radeon_atcs_verify_interface, .-radeon_atcs_verify_interface
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATCS_FUNCTION_VERIFY_INTERFACE,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_radeon_acpi.c_radeon_atcs_verify_interface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ATCS buffer is too small: %zu\012\000"
	.align	2
.LC1:
	.ascii	"ATCS version %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_atcs_verify_interface, %function
radeon_atcs_verify_interface:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	ldr	r1, .L12
	ldr	r3, .L12+4
	sub	sp, sp, #16
	mov	r2, #0
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	radeon_atcs_call
	subs	r4, r0, #0
	beq	.L9
	mov	r5, #0
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	ldr	r3, [r4]
	ldr	r1, [r3]
	cmp	r1, #7
	bls	.L10
	mov	r0, #8
	bl	min
	ldr	r1, [r4]
	mov	r2, r0
	add	r0, sp, #4
	bl	memcpy
	ldr	r1, [sp, #8]
	ldr	r0, .L12+8
	bl	DRM_DEBUG_DRIVER
	mov	r0, r6
	ldr	r1, [sp, #4]
	bl	radeon_atcs_parse_functions
.L5:
	mov	r0, r4
	bl	kfree
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, .L12+12
	bl	DRM_INFO
	ldr	r3, .L12+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L5
.L9:
	ldr	r3, .L12+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	ATCS_FUNCTION_VERIFY_INTERFACE
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.word	EIO
	.size	radeon_atcs_verify_interface, .-radeon_atcs_verify_interface
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATCS_FUNCTION_VERIFY_INTERFACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
