	.file	"extr_dwgpio_bus.c_dwgpiobus_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not allocate resources.\n"
	.text
	.p2align 4
	.type	dwgpiobus_attach, @function
dwgpiobus_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	device_get_softc@PLT
	mov	edi, r12d
	mov	DWORD PTR 4[rax], r12d
	mov	rbx, rax
	call	ofw_bus_get_node@PLT
	cmp	eax, -1
	je	.L9
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR dwgpio_spec[rip]
	mov	edi, r12d
	mov	ebp, eax
	call	bus_alloc_resources@PLT
	test	rax, rax
	jne	.L11
	mov	esi, ebp
	mov	edi, r12d
	call	simplebus_init@PLT
	mov	edi, r12d
	call	bus_generic_probe@PLT
	mov	edi, ebp
	call	OF_child@PLT
	mov	ebp, eax
	test	eax, eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, ebp
	xor	r9d, r9d
	mov	r8d, -1
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, r12d
	call	simplebus_add_device@PLT
	mov	edi, ebp
	call	OF_peer@PLT
	mov	ebp, eax
	test	eax, eax
	jg	.L6
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bus_generic_attach@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, r12d
	call	device_printf@PLT
.L9:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENXIO[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dwgpiobus_attach, .-dwgpiobus_attach
	.comm	dwgpio_spec,4,4
	.comm	ENXIO,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_dwgpio_bus.c_dwgpiobus_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not allocate resources.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwgpiobus_attach, %function
dwgpiobus_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	device_get_softc
	mov	r6, r0
	mov	r0, r5
	str	r5, [r6, #4]
	bl	ofw_bus_get_node
	cmn	r0, #1
	beq	.L9
	ldr	r3, .L12
	ldr	r2, [r6]
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	bus_alloc_resources
	subs	r6, r0, #0
	bne	.L11
	mov	r1, r4
	mov	r0, r5
	bl	simplebus_init
	mov	r0, r5
	bl	bus_generic_probe
	mov	r0, r4
	bl	OF_child
	subs	r4, r0, #0
	ble	.L5
	mvn	r7, #0
.L6:
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	mov	r0, r5
	str	r6, [sp, #4]
	str	r7, [sp]
	bl	simplebus_add_device
	mov	r0, r4
	bl	OF_peer
	subs	r4, r0, #0
	bgt	.L6
.L5:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	bus_generic_attach
.L11:
	mov	r0, r5
	ldr	r1, .L12+4
	bl	device_printf
.L9:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	.align	2
.L12:
	.word	dwgpio_spec
	.word	.LC0
	.word	ENXIO
	.size	dwgpiobus_attach, .-dwgpiobus_attach
	.comm	dwgpio_spec,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
