	.file	"extr_core.c_reset_control_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	reset_control_reset
	.type	reset_control_reset, @function
reset_control_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L9
	mov	rbp, rdi
	call	IS_ERR@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	je	.L4
.L17:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	reset_control_is_array@PLT
	test	rax, rax
	jne	.L19
	mov	rdi, QWORD PTR 24[rbp]
	mov	r12d, DWORD PTR ENOTSUPP[rip]
	mov	rax, QWORD PTR [rdi]
	neg	r12d
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 8[rbp], 0
	jne	.L20
	mov	r12d, DWORD PTR EPERM[rip]
	mov	edx, DWORD PTR 32[rbp]
	neg	r12d
	test	edx, edx
	je	.L1
.L11:
	mov	esi, DWORD PTR 16[rbp]
	call	rax
	cmp	QWORD PTR 8[rbp], 0
	mov	r12d, eax
	je	.L1
	test	eax, eax
	je	.L1
	mov	rdi, rbp
	call	atomic_dec@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rdi, 36[rbp]
	call	atomic_read@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L17
	mov	rdi, rbp
	call	atomic_inc_return@PLT
	cmp	eax, 1
	jne	.L9
	mov	rdi, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	rstc_to_array@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	reset_control_array_reset@PLT
	.cfi_endproc
.LFE0:
	.size	reset_control_reset, .-reset_control_reset
	.comm	EPERM,4,4
	.comm	ENOTSUPP,4,4
	.comm	EINVAL,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_core.c_reset_control_reset.c"
	.text
	.align	2
	.global	reset_control_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_control_reset, %function
reset_control_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	beq	.L9
	bl	IS_ERR
	bl	WARN_ON
	cmp	r0, #0
	beq	.L4
.L20:
	ldr	r3, .L26
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	bl	reset_control_is_array
	cmp	r0, #0
	bne	.L22
	ldr	r0, [r5, #12]
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	ldr	r2, [r5, #4]
	cmp	r2, #0
	bne	.L24
	ldr	r2, [r5, #16]
	cmp	r2, #0
	beq	.L25
.L11:
	ldr	r1, [r5, #8]
	blx	r3
	ldr	r3, [r5, #4]
	mov	r4, r0
	cmp	r3, #0
	beq	.L1
	cmp	r0, #0
	beq	.L1
	mov	r0, r5
	bl	atomic_dec
	b	.L1
.L9:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L24:
	add	r0, r5, #20
	bl	atomic_read
	subs	r0, r0, #0
	movne	r0, #1
	bl	WARN_ON
	cmp	r0, #0
	bne	.L20
	mov	r0, r5
	bl	atomic_inc_return
	cmp	r0, #1
	bne	.L9
	ldr	r0, [r5, #12]
	ldr	r3, [r0]
	ldr	r3, [r3]
	b	.L11
.L22:
	mov	r0, r5
	bl	rstc_to_array
	pop	{r4, r5, r6, lr}
	b	reset_control_array_reset
.L25:
	ldr	r3, .L26+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L23:
	ldr	r3, .L26+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L27:
	.align	2
.L26:
	.word	EINVAL
	.word	EPERM
	.word	ENOTSUPP
	.size	reset_control_reset, .-reset_control_reset
	.comm	EPERM,4,4
	.comm	ENOTSUPP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
