	.file	"extr_skl.c_skl_machine_device_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"platform device alloc failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to add machine device platform data\n"
	.section	.rodata.str1.1
.LC2:
	.string	"failed to add machine device\n"
	.text
	.p2align 4
	.type	skl_machine_device_register, @function
skl_machine_device_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	call	skl_to_bus@PLT
	mov	esi, -1
	mov	edi, DWORD PTR 8[r12]
	mov	r13, rax
	call	platform_device_alloc@PLT
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR 0[r13]
	mov	rbp, rax
	call	dev_name@PLT
	mov	rsi, r12
	mov	edx, 12
	mov	rdi, rbp
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR [r12], eax
	call	platform_device_add_data@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, rbp
	call	platform_device_add@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	QWORD PTR [rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	call	platform_device_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	call	platform_device_put@PLT
	mov	r12d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	skl_machine_device_register, .-skl_machine_device_register
	.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_skl.c_skl_machine_device_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"platform device alloc failed\012\000"
	.align	2
.LC1:
	.ascii	"failed to add machine device platform data\012\000"
	.align	2
.LC2:
	.ascii	"failed to add machine device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	skl_machine_device_register, %function
skl_machine_device_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #4]
	mov	r7, r0
	bl	skl_to_bus
	mvn	r1, #0
	mov	r6, r0
	ldr	r0, [r4, #8]
	bl	platform_device_alloc
	subs	r5, r0, #0
	ldr	r0, [r6]
	beq	.L8
	bl	dev_name
	ldr	r3, [r6, #4]
	mov	r1, r4
	str	r0, [r4, #4]
	str	r3, [r4]
	mov	r2, #12
	mov	r0, r5
	bl	platform_device_add_data
	subs	r4, r0, #0
	bne	.L9
	mov	r0, r5
	bl	platform_device_add
	subs	r4, r0, #0
	streq	r5, [r7]
	bne	.L10
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r1, .L11
	ldr	r0, [r6]
	bl	dev_err
	mov	r0, r5
	bl	platform_device_put
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r1, .L11+4
	ldr	r0, [r6]
	bl	dev_err
	mov	r0, r5
	bl	platform_device_put
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, .L11+12
	bl	dev_err
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC2
	.word	EIO
	.word	.LC0
	.size	skl_machine_device_register, .-skl_machine_device_register
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
