	.file	"extr_chp.c_s390_vary_chpid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"varyoff%x.%02x"
.LC1:
	.string	"varyon%x.%02x"
	.text
	.p2align 4
	.type	s390_vary_chpid, @function
s390_vary_chpid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rdi
	mov	ecx, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sar	rdx, 32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 9[rsp]
	test	esi, esi
	jne	.L2
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	sprintf@PLT
	mov	edi, 2
	mov	rsi, r13
	call	CIO_TRACE_EVENT@PLT
	mov	rdi, rbp
	call	chp_get_status@PLT
	test	eax, eax
	jne	.L4
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	sprintf@PLT
	mov	edi, 2
	mov	rsi, r13
	call	CIO_TRACE_EVENT@PLT
	mov	rdi, rbp
	call	chp_get_status@PLT
.L4:
	mov	esi, r12d
	mov	rdi, rbp
	call	set_chp_logically_online@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	chsc_chp_vary@PLT
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s390_vary_chpid, .-s390_vary_chpid
	.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_chp.c_s390_vary_chpid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"varyoff%x.%02x\000"
	.align	2
.LC1:
	.ascii	"varyon%x.%02x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s390_vary_chpid, %function
s390_vary_chpid:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #36
	mov	r4, sp
	stm	r4, {r0, r1}
	ldr	r3, .L13
	subs	r5, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r2, r1
	mov	r3, r0
	add	r0, sp, #12
	bne	.L2
	ldr	r1, .L13+4
	bl	sprintf
	add	r1, sp, #12
	mov	r0, #2
	bl	CIO_TRACE_EVENT
	ldm	r4, {r0, r1}
	bl	chp_get_status
	cmp	r0, #0
	bne	.L4
.L3:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r1, .L13+8
	bl	sprintf
	add	r1, sp, #12
	mov	r0, #2
	bl	CIO_TRACE_EVENT
	ldm	r4, {r0, r1}
	bl	chp_get_status
.L4:
	ldm	r4, {r0, r1}
	mov	r2, r5
	bl	set_chp_logically_online
	ldm	r4, {r0, r1}
	mov	r2, r5
	bl	chsc_chp_vary
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	s390_vary_chpid, .-s390_vary_chpid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
