	.file	"extr_radeon_acpi.c_radeon_atif_get_sbios_requests.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SBIOS pending requests: %#x\n"
	.text
	.p2align 4
	.type	radeon_atif_get_sbios_requests, @function
radeon_atif_get_sbios_requests:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, DWORD PTR ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS[rip]
	call	radeon_atif_call@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR [rax]
	cmp	r12, 12
	ja	.L4
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L4:
	.cfi_restore_state
	mov	edx, 4
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	rsi, r12
	mov	edi, 4
	call	min@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	mov	rdx, rax
	call	memcpy@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_DRIVER@PLT
	mov	edi, DWORD PTR [rbx]
	call	hweight32@PLT
	mov	r12d, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	radeon_atif_get_sbios_requests, .-radeon_atif_get_sbios_requests
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS,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_atif_get_sbios_requests.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SBIOS pending requests: %#x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_atif_get_sbios_requests, %function
radeon_atif_get_sbios_requests:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	mov	r2, #0
	mov	r5, r1
	ldr	r1, [r3]
	bl	radeon_atif_call
	subs	r4, r0, #0
	beq	.L8
	ldr	r3, [r4]
	ldr	r1, [r3]
	cmp	r1, #12
	bhi	.L4
	ldr	r3, .L9+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	mov	r3, #0
	mov	r0, #4
	strb	r3, [r5]
	strb	r3, [r5, #1]
	strb	r3, [r5, #2]
	strb	r3, [r5, #3]
	bl	min
	ldr	r1, [r4]
	mov	r2, r0
	mov	r0, r5
	bl	memcpy
	ldr	r1, [r5]
	ldr	r0, .L9+8
	bl	DRM_DEBUG_DRIVER
	ldr	r0, [r5]
	bl	hweight32
	mov	r5, r0
	b	.L5
.L8:
	ldr	r3, .L9+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS
	.word	EINVAL
	.word	.LC0
	.word	EIO
	.size	radeon_atif_get_sbios_requests, .-radeon_atif_get_sbios_requests
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
