	.file	"extr_phy-core.c___of_phy_provider_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__of_phy_provider_register
	.type	__of_phy_provider_register, @function
__of_phy_provider_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rsi, rsi
	je	.L2
	mov	rdi, rsi
	mov	r12, rsi
	call	of_node_get@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	call	of_get_parent@PLT
	mov	rdi, r15
	mov	rbx, rax
	call	of_node_put@PLT
	test	rbx, rbx
	je	.L3
	mov	r15, rbx
.L5:
	mov	rdi, r15
	cmp	QWORD PTR 0[rbp], r15
	jne	.L16
	call	of_node_put@PLT
.L7:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	call	kzalloc@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	mov	r15, rax
	test	rax, rax
	je	.L14
	mov	QWORD PTR 32[rax], rbp
	mov	rdi, r12
	call	of_node_get@PLT
	mov	QWORD PTR 16[r15], r13
	lea	rdi, phy_provider_mutex[rip]
	mov	QWORD PTR [r15], r14
	mov	QWORD PTR 24[r15], rax
	call	mutex_lock@PLT
	lea	rdi, 8[r15]
	lea	rsi, phy_provider_list[rip]
	call	list_add_tail@PLT
	lea	rdi, phy_provider_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR [rdi]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR EINVAL[rip]
.L14:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	neg	edi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	__of_phy_provider_register, .-__of_phy_provider_register
	.comm	phy_provider_mutex,4,4
	.comm	phy_provider_list,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_phy-core.c___of_phy_provider_register.c"
	.text
	.align	2
	.global	__of_phy_provider_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	__of_phy_provider_register, %function
__of_phy_provider_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r7, r1, #0
	mov	r6, r0
	mov	r8, r2
	mov	r9, r3
	beq	.L2
	mov	r0, r7
	bl	of_node_get
	subs	r5, r0, #0
	bne	.L5
	b	.L3
.L15:
	bl	of_get_parent
	mov	r4, r0
	mov	r0, r5
	bl	of_node_put
	cmp	r4, #0
	beq	.L3
	mov	r5, r4
.L5:
	ldr	r3, [r6]
	mov	r0, r5
	cmp	r3, r5
	bne	.L15
	bl	of_node_put
.L7:
	ldr	r3, .L17
	mov	r0, #20
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L16
	mov	r0, r7
	str	r6, [r4, #16]
	bl	of_node_get
	mov	r5, r4
	str	r0, [r4, #12]
	str	r8, [r4, #8]
	ldr	r0, .L17+4
	str	r9, [r5], #4
	bl	mutex_lock
	ldr	r1, .L17+8
	mov	r0, r5
	bl	list_add_tail
	ldr	r0, .L17+4
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r7, [r0]
	b	.L7
.L3:
	ldr	r3, .L17+12
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L16:
	ldr	r3, .L17+16
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	phy_provider_mutex
	.word	phy_provider_list
	.word	EINVAL
	.word	ENOMEM
	.size	__of_phy_provider_register, .-__of_phy_provider_register
	.comm	phy_provider_mutex,4,4
	.comm	phy_provider_list,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
