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