	.file	"extr_drivers.c_walk_native_bus.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	walk_native_bus, @function
walk_native_bus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, 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
	mov	rbx, rdi
	mov	rdi, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 20[rsp]
	mov	rsi, r13
	call	get_node_path@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR MAX_NATIVE_DEVICES[rip]
	test	eax, eax
	jle	.L9
	xor	r12d, r12d
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	call	walk_lower_bus@PLT
.L4:
	add	ebp, 1
	add	rbx, QWORD PTR NATIVE_DEVICE_OFFSET[rip]
	cmp	DWORD PTR MAX_NATIVE_DEVICES[rip], ebp
	jle	.L20
.L5:
	mov	rdi, rbx
	call	find_device_by_addr@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L3
	mov	rdi, rbx
	mov	rsi, r13
	mov	DWORD PTR 20[rsp], ebp
	call	alloc_pa_dev@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L4
	mov	QWORD PTR 8[rsp], rax
	add	r12d, 1
	call	register_parisc_device@PLT
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	test	r12d, r12d
	sete	al
.L2:
	cmp	r14, rbx
	jbe	.L1
	test	al, al
	jne	.L6
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.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
.L9:
	.cfi_restore_state
	mov	eax, 1
	jmp	.L2
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	walk_native_bus, .-walk_native_bus
	.comm	NATIVE_DEVICE_OFFSET,8,8
	.comm	MAX_NATIVE_DEVICES,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_drivers.c_walk_native_bus.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walk_native_bus, %function
walk_native_bus:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L18
	sub	sp, sp, #8
	mov	r5, r0
	mov	r10, r1
	mov	r0, r2
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	get_node_path
	ldr	r8, .L18+4
	ldr	r9, .L18+8
.L6:
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L8
	mov	r7, #0
	mov	r6, r7
	b	.L5
.L3:
	mov	r0, r4
	bl	walk_lower_bus
.L4:
	ldr	r2, [r8]
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r2, r6
	add	r5, r5, r3
	ble	.L16
.L5:
	mov	r0, r5
	bl	find_device_by_addr
	subs	r4, r0, #0
	bne	.L3
	mov	r1, sp
	mov	r0, r5
	str	r6, [sp]
	bl	alloc_pa_dev
	subs	r4, r0, #0
	beq	.L4
	bl	register_parisc_device
	add	r7, r7, #1
	b	.L3
.L16:
	clz	r7, r7
	lsr	r7, r7, #5
.L2:
	cmp	r10, r5
	movls	r7, #0
	andhi	r7, r7, #1
	cmp	r7, #0
	bne	.L6
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r7, #1
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	MAX_NATIVE_DEVICES
	.word	NATIVE_DEVICE_OFFSET
	.size	walk_native_bus, .-walk_native_bus
	.comm	NATIVE_DEVICE_OFFSET,4,4
	.comm	MAX_NATIVE_DEVICES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
