	.file	"extr_smu.c_smu_attach_i2c.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"name"
.LC1:
	.string	"i2c-bus"
.LC2:
	.string	"i2c"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"<%s>: device_add_child failed\n"
	.text
	.p2align 4
	.type	smu_attach_i2c, @function
smu_attach_i2c:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	OF_child@PLT
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	rbx, rsp
	lea	r13, .LC0[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r14
	mov	edx, -1
	xor	esi, esi
	call	device_add_child@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L21
	mov	rsi, r12
	call	device_set_ivars@PLT
.L4:
	mov	rdi, rbp
	call	OF_peer@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
.L11:
	mov	ecx, 32
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	call	OF_getprop@PLT
	test	rax, rax
	jle	.L4
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	je	.L9
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	jne	.L4
.L9:
	mov	esi, DWORD PTR M_SMU[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	edi, 4
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	rsi, rbp
	mov	rdi, rax
	mov	r12, rax
	call	ofw_bus_gen_setup_devinfo@PLT
	test	rax, rax
	je	.L17
	mov	esi, DWORD PTR M_SMU[rip]
	mov	rdi, r12
	call	free@PLT
.L23:
	mov	rdi, rbp
	call	OF_peer@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L21:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	device_printf@PLT
	mov	rdi, r12
	call	ofw_bus_gen_destroy_devinfo@PLT
	mov	esi, DWORD PTR M_SMU[rip]
	mov	rdi, r12
	call	free@PLT
	jmp	.L23
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smu_attach_i2c, .-smu_attach_i2c
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_SMU,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_smu.c_smu_attach_i2c.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"name\000"
	.align	2
.LC1:
	.ascii	"i2c-bus\000"
	.align	2
.LC2:
	.ascii	"i2c\000"
	.align	2
.LC3:
	.ascii	"<%s>: device_add_child failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu_attach_i2c, %function
smu_attach_i2c:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L23
	sub	sp, sp, #44
	mov	r9, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	OF_child
	subs	r4, r0, #0
	beq	.L1
	ldr	r6, .L23+4
	ldr	r8, .L23+8
	ldr	fp, .L23+12
	ldr	r10, .L23+16
	ldr	r7, .L23+20
	b	.L11
.L4:
	ldr	r3, .L23+24
	ldr	r2, [sp, #4]
	cmp	r2, r3
	beq	.L6
.L3:
	mov	r0, r4
	bl	OF_peer
	subs	r4, r0, #0
	beq	.L1
.L11:
	mov	r3, #32
	mov	r1, r6
	mov	r0, r4
	add	r2, sp, #4
	bl	OF_getprop
	cmp	r0, #0
	ble	.L3
	ldr	r3, [sp, #4]
	cmp	r3, r8
	bne	.L4
	ldr	r3, .L23+28
	ldr	r2, [sp, #8]
	cmp	r2, r3
	bne	.L4
.L6:
	ldr	r3, [r10]
	ldr	r2, [fp]
	ldr	r1, [r7]
	orr	r2, r2, r3
	mov	r0, #4
	bl	malloc
	mov	r1, r4
	mov	r5, r0
	bl	ofw_bus_gen_setup_devinfo
	subs	r1, r0, #0
	bne	.L19
	mvn	r2, #0
	mov	r0, r9
	bl	device_add_child
	cmp	r0, #0
	beq	.L21
	mov	r1, r5
	bl	device_set_ivars
	mov	r0, r4
	bl	OF_peer
	subs	r4, r0, #0
	bne	.L11
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r9
	ldr	r2, [r5]
	ldr	r1, .L23+32
	bl	device_printf
	mov	r0, r5
	bl	ofw_bus_gen_destroy_devinfo
.L19:
	mov	r0, r5
	ldr	r1, [r7]
	bl	free
	b	.L3
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	.LC0
	.word	761475689
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_SMU
	.word	6500969
	.word	7566690
	.word	.LC3
	.size	smu_attach_i2c, .-smu_attach_i2c
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_SMU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
