	.file	"extr_radeon_atpx_handler.c_radeon_atpx_set_discrete_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_atpx_set_discrete_state, @function
radeon_atpx_set_discrete_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	jne	.L2
.L8:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR 24[rsp], rsi
	mov	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	lea	rax, 16[rsp]
	mov	esi, DWORD PTR ATPX_FUNCTION_POWER_CONTROL[rip]
	mov	rdx, rsp
	mov	DWORD PTR 16[rsp], 3
	mov	DWORD PTR [rsp], 3
	mov	QWORD PTR 8[rsp], rax
	call	radeon_atpx_call@PLT
	mov	rdi, rax
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	test	rdi, rdi
	je	.L1
	call	kfree@PLT
	test	rbx, rbx
	jne	.L8
	mov	edi, 200
	call	msleep@PLT
	jmp	.L8
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radeon_atpx_set_discrete_state, .-radeon_atpx_set_discrete_state
	.comm	EIO,4,4
	.comm	ATPX_FUNCTION_POWER_CONTROL,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_atpx_handler.c_radeon_atpx_set_discrete_state.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_atpx_set_discrete_state, %function
radeon_atpx_set_discrete_state:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #24
	cmp	r3, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L2
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L2:
	mov	r3, #3
	mov	r4, r1
	ldr	r2, .L11+4
	add	ip, sp, #12
	ldr	r1, [r2]
	ldr	r0, [r0]
	add	r2, sp, #4
	stmib	sp, {r3, ip}
	str	r4, [sp, #16]
	str	r3, [sp, #12]
	bl	radeon_atpx_call
	cmp	r0, #0
	beq	.L10
	bl	kfree
	cmp	r4, #0
	bne	.L5
	mov	r0, #200
	bl	msleep
	mov	r0, r4
	b	.L1
.L10:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	ATPX_FUNCTION_POWER_CONTROL
	.word	EIO
	.size	radeon_atpx_set_discrete_state, .-radeon_atpx_set_discrete_state
	.comm	EIO,4,4
	.comm	ATPX_FUNCTION_POWER_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
