	.file	"extr_reset.c_scmi_reset_domain_attributes_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scmi_reset_domain_attributes_get, @function
scmi_reset_domain_attributes_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8d, 12
	mov	ecx, 8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR SCMI_PROTOCOL_RESET[rip]
	mov	esi, DWORD PTR RESET_DOMAIN_ATTRIBUTES[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r9, rsp
	call	scmi_xfer_get_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	rdi, r13
	mov	esi, DWORD PTR 8[rax]
	call	put_unaligned_le32@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rsi]
	call	scmi_do_xfer@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L3:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	scmi_xfer_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 8[r13]
	call	le32_to_cpu@PLT
	mov	rdi, rax
	mov	r14, rax
	call	SUPPORTS_ASYNC_RESET@PLT
	mov	rdi, r14
	mov	DWORD PTR 20[rbx], eax
	call	SUPPORTS_NOTIFY_RESET@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 16[rbx], eax
	call	le32_to_cpu@PLT
	cmp	rax, QWORD PTR U32_MAX[rip]
	mov	QWORD PTR 8[rbx], rax
	je	.L12
.L4:
	mov	edx, DWORD PTR SCMI_MAX_STR_SIZE[rip]
	mov	esi, DWORD PTR 0[r13]
	mov	edi, DWORD PTR [rbx]
	call	strlcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 8[rbx], 0
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scmi_reset_domain_attributes_get, .-scmi_reset_domain_attributes_get
	.comm	U32_MAX,8,8
	.comm	SCMI_PROTOCOL_RESET,4,4
	.comm	SCMI_MAX_STR_SIZE,4,4
	.comm	RESET_DOMAIN_ATTRIBUTES,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_reset.c_scmi_reset_domain_attributes_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scmi_reset_domain_attributes_get, %function
scmi_reset_domain_attributes_get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	ip, r1
	mov	r4, #12
	sub	sp, sp, #16
	mov	r7, r2
	ldr	r1, .L11
	ldr	r2, .L11+4
	str	r4, [sp]
	add	r3, sp, #8
	mov	r4, ip
	ldr	ip, .L11+8
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r3, [sp, #4]
	mov	r3, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r6, r0
	bl	scmi_xfer_get_init
	subs	r5, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, [sp, #8]
	mov	r0, r4
	ldr	r1, [r3, #4]
	bl	put_unaligned_le32
	ldr	r1, [sp, #8]
	mov	r0, r6
	ldr	r4, [r1]
	bl	scmi_do_xfer
	subs	r5, r0, #0
	beq	.L10
.L3:
	mov	r0, r6
	ldr	r1, [sp, #8]
	bl	scmi_xfer_put
	b	.L1
.L10:
	ldr	r0, [r4, #8]
	bl	le32_to_cpu
	mov	r8, r0
	bl	SUPPORTS_ASYNC_RESET
	mov	r3, r0
	mov	r0, r8
	str	r3, [r7, #12]
	bl	SUPPORTS_NOTIFY_RESET
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r7, #8]
	bl	le32_to_cpu
	ldr	r3, .L11+12
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L11+16
	cmp	r2, r0
	moveq	r0, r5
	ldr	r2, [r3]
	str	r0, [r7, #4]
	ldr	r0, [r7]
	bl	strlcpy
	b	.L3
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	RESET_DOMAIN_ATTRIBUTES
	.word	SCMI_PROTOCOL_RESET
	.word	.LC0
	.word	U32_MAX
	.word	SCMI_MAX_STR_SIZE
	.size	scmi_reset_domain_attributes_get, .-scmi_reset_domain_attributes_get
	.comm	U32_MAX,4,4
	.comm	SCMI_PROTOCOL_RESET,4,4
	.comm	SCMI_MAX_STR_SIZE,4,4
	.comm	RESET_DOMAIN_ATTRIBUTES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
