	.file	"extr_aw_dwc3.c_aw_dwc3_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bus"
.LC1:
	.string	"Cannot get bus clock\n"
.LC2:
	.string	"Could not enable clock %s\n"
.LC3:
	.string	"Cannot deassert reset\n"
.LC4:
	.string	"could not get ranges\n"
	.text
	.p2align 4
	.type	aw_dwc3_attach, @function
aw_dwc3_attach:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	device_get_softc@PLT
	mov	rdi, r12
	mov	QWORD PTR 16[rax], r12
	mov	rbp, rax
	call	ofw_bus_get_node@PLT
	xor	esi, esi
	lea	rcx, 8[rbp]
	mov	rdi, r12
	lea	rdx, .LC0[rip]
	mov	r13, rax
	call	clk_get_by_ofw_name@PLT
	test	rax, rax
	jne	.L19
	mov	edi, DWORD PTR 8[rbp]
	call	clk_enable@PLT
	test	eax, eax
	jne	.L20
	lea	rcx, 4[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, r13
	mov	rdi, r12
	call	hwreset_get_by_ofw_name@PLT
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR 4[rbp]
	call	hwreset_deassert@PLT
	test	rax, rax
	jne	.L21
.L5:
	mov	rsi, r13
	mov	rdi, r12
	call	simplebus_init@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	simplebus_fill_ranges@PLT
	test	rax, rax
	js	.L22
	mov	rdi, r13
	call	OF_child@PLT
	mov	rbp, rax
	test	rax, rax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	xor	r9d, r9d
	mov	r8d, -1
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbp
	call	simplebus_add_device@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L8
	call	device_probe_and_attach@PLT
.L8:
	mov	rdi, rbp
	call	OF_peer@PLT
	mov	rbp, rax
	test	rax, rax
	jg	.L9
.L7:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bus_generic_attach@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	call	clk_get_name@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	mov	edx, eax
	xor	eax, eax
	call	device_printf@PLT
	mov	eax, DWORD PTR ENXIO[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L19:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	device_printf@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENXIO[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	device_printf@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENXIO[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	device_printf@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	aw_dwc3_attach, .-aw_dwc3_attach
	.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_aw_dwc3.c_aw_dwc3_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bus\000"
	.align	2
.LC1:
	.ascii	"Cannot get bus clock\012\000"
	.align	2
.LC2:
	.ascii	"Could not enable clock %s\012\000"
	.align	2
.LC3:
	.ascii	"Cannot deassert reset\012\000"
	.align	2
.LC4:
	.ascii	"could not get ranges\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aw_dwc3_attach, %function
aw_dwc3_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	r4, r0
	mov	r0, r5
	str	r5, [r4, #12]
	bl	ofw_bus_get_node
	mov	r1, #0
	mov	r6, r0
	ldr	r2, .L23
	mov	r0, r5
	add	r3, r4, #8
	bl	clk_get_by_ofw_name
	cmp	r0, #0
	bne	.L19
	ldr	r0, [r4, #8]
	bl	clk_enable
	cmp	r0, #0
	bne	.L20
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L23
	add	r3, r4, #4
	bl	hwreset_get_by_ofw_name
	cmp	r0, #0
	bne	.L5
	ldr	r0, [r4, #4]
	bl	hwreset_deassert
	cmp	r0, #0
	bne	.L21
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	simplebus_init
	mov	r1, r4
	mov	r0, r6
	bl	simplebus_fill_ranges
	cmp	r0, #0
	blt	.L22
	mov	r0, r6
	bl	OF_child
	subs	r4, r0, #0
	ble	.L7
	mov	r7, #0
	mvn	r6, #0
.L9:
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	mov	r0, r5
	stm	sp, {r6, r7}
	bl	simplebus_add_device
	cmp	r0, #0
	beq	.L8
	bl	device_probe_and_attach
.L8:
	mov	r0, r4
	bl	OF_peer
	subs	r4, r0, #0
	bgt	.L9
.L7:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	bus_generic_attach
.L20:
	ldr	r0, [r4, #8]
	bl	clk_get_name
	ldr	r1, .L23+4
	mov	r2, r0
	mov	r0, r5
	bl	device_printf
	ldr	r3, .L23+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	mov	r0, r5
	ldr	r1, .L23+12
	bl	device_printf
	ldr	r3, .L23+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L22:
	mov	r0, r5
	ldr	r1, .L23+16
	bl	device_printf
	ldr	r3, .L23+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L21:
	mov	r0, r5
	ldr	r1, .L23+20
	bl	device_printf
	ldr	r3, .L23+8
	ldr	r0, [r3]
	b	.L1
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	.LC2
	.word	ENXIO
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.size	aw_dwc3_attach, .-aw_dwc3_attach
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
