	.file	"extr_nubus.c_nubus_get_rsrc_mem.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nubus_get_rsrc_mem
	.type	nubus_get_rsrc_mem, @function
nubus_get_rsrc_mem:
.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	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	nubus_dirptr@PLT
	mov	QWORD PTR [rsp], rax
	test	r12d, r12d
	je	.L1
	lea	eax, -1[r12]
	mov	r12, rsp
	lea	r13, 1[rbx+rax]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, 1
	mov	rdi, r12
	add	rbx, 1
	call	nubus_get_rom@PLT
	mov	BYTE PTR -1[rbx], al
	cmp	rbx, r13
	jne	.L3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nubus_get_rsrc_mem, .-nubus_get_rsrc_mem
	.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_nubus.c_nubus_get_rsrc_mem.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nubus_get_rsrc_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	nubus_get_rsrc_mem, %function
nubus_get_rsrc_mem:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r5, r2
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	nubus_dirptr
	cmp	r5, #0
	str	r0, [sp]
	beq	.L1
	add	r5, r4, r5
.L3:
	mov	r1, #1
	mov	r0, sp
	ldr	r2, [r6]
	bl	nubus_get_rom
	strb	r0, [r4], #1
	cmp	r5, r4
	bne	.L3
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	nubus_get_rsrc_mem, .-nubus_get_rsrc_mem
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
