	.file	"extr_sclp_cmd.c_sclp_chp_read_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"read channel-path info failed (response=0x%04x)\n"
	.text
	.p2align 4
	.globl	sclp_chp_read_info
	.type	sclp_chp_read_info, @function
sclp_chp_read_info:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR SCLP_HAS_CHP_INFO[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	or	edi, DWORD PTR GFP_DMA[rip]
	call	get_zeroed_page@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR 12[rax], 20
	mov	edi, DWORD PTR SCLP_CMDW_READ_CHPATH_INFORMATION[rip]
	mov	rsi, rax
	call	sclp_sync_request@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR 16[rbp]
	cmp	esi, 16
	je	.L6
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L5:
	mov	rdi, rbp
	call	free_page@PLT
	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
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR SCLP_CHP_INFO_MASK_SIZE[rip]
	call	memcpy@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR SCLP_CHP_INFO_MASK_SIZE[rip]
	call	memcpy@PLT
	mov	edx, DWORD PTR SCLP_CHP_INFO_MASK_SIZE[rip]
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	call	memcpy@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sclp_chp_read_info, .-sclp_chp_read_info
	.comm	SCLP_HAS_CHP_INFO,4,4
	.comm	SCLP_CMDW_READ_CHPATH_INFORMATION,4,4
	.comm	SCLP_CHP_INFO_MASK_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_sclp_cmd.c_sclp_chp_read_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read channel-path info failed (response=0x%04x)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	sclp_chp_read_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	sclp_chp_read_info, %function
sclp_chp_read_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L9+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	mov	r6, r0
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r0, r0, r3
	bl	get_zeroed_page
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L9+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r2, #20
	ldr	r3, .L9+20
	mov	r1, r5
	ldr	r0, [r3]
	str	r2, [r5, #12]
	bl	sclp_sync_request
	subs	r4, r0, #0
	bne	.L5
	ldr	r1, [r5, #16]
	cmp	r1, #16
	beq	.L6
	ldr	r0, .L9+24
	bl	pr_warn
	ldr	r3, .L9+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L5:
	mov	r0, r5
	bl	free_page
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r7, .L9+32
	ldr	r1, [r5, #8]
	ldr	r2, [r7]
	ldr	r0, [r6, #8]
	bl	memcpy
	ldr	r2, [r7]
	ldr	r1, [r5, #4]
	ldr	r0, [r6, #4]
	bl	memcpy
	ldr	r2, [r7]
	ldr	r0, [r6]
	ldr	r1, [r5]
	bl	memcpy
	b	.L5
.L10:
	.align	2
.L9:
	.word	SCLP_HAS_CHP_INFO
	.word	EOPNOTSUPP
	.word	GFP_KERNEL
	.word	GFP_DMA
	.word	ENOMEM
	.word	SCLP_CMDW_READ_CHPATH_INFORMATION
	.word	.LC0
	.word	EIO
	.word	SCLP_CHP_INFO_MASK_SIZE
	.size	sclp_chp_read_info, .-sclp_chp_read_info
	.comm	SCLP_HAS_CHP_INFO,4,4
	.comm	SCLP_CMDW_READ_CHPATH_INFORMATION,4,4
	.comm	SCLP_CHP_INFO_MASK_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
