	.file	"extr_pbio.c_pbioattach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pbio%d%s"
	.text
	.p2align 4
	.type	pbioattach, @function
pbioattach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	device_get_softc@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	device_get_unit@PLT
	mov	r8d, DWORD PTR RF_ACTIVE[rip]
	mov	ecx, DWORD PTR IO_PBIOSIZE[rip]
	mov	edi, r12d
	mov	esi, DWORD PTR SYS_RES_IOPORT[rip]
	lea	rdx, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	r13d, eax
	call	bus_alloc_resource_anywhere@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L10
	mov	rdi, rax
	call	rman_get_bustag@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	DWORD PTR 28[rbp], eax
	call	rman_get_bushandle@PLT
	mov	ecx, DWORD PTR PBIO_NPORTS[rip]
	mov	DWORD PTR 0[rbp], 155
	mov	DWORD PTR 24[rbp], eax
	test	ecx, ecx
	jle	.L4
	lea	r15d, 0[0+r13*4]
	xor	ebx, ebx
	lea	r14, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, ebx
	call	PBIO_PNAME@PLT
	mov	rdx, QWORD PTR 8[rbp]
	lea	esi, [r15+rbx]
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 88
	mov	r9, r14
	mov	r8d, 384
	lea	rdi, pbio_cdevsw[rip]
	push	r13
	.cfi_def_cfa_offset 96
	lea	r12, [rdx+rbx*4]
	xor	edx, edx
	add	rbx, 1
	call	make_dev@PLT
	mov	DWORD PTR [r12], eax
	cmp	DWORD PTR PBIO_NPORTS[rip], ebx
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jg	.L5
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pbioattach, .-pbioattach
	.comm	pbio_cdevsw,4,4
	.comm	SYS_RES_IOPORT,4,4
	.comm	RF_ACTIVE,4,4
	.comm	PBIO_NPORTS,4,4
	.comm	IO_PBIOSIZE,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_pbio.c_pbioattach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pbio%d%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pbioattach, %function
pbioattach:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L12
	sub	sp, sp, #36
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	device_get_softc
	mov	r5, r0
	mov	r0, r6
	bl	device_get_unit
	mov	r4, #0
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r2, .L12+12
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r7, r0
	ldr	r3, [r3]
	mov	r0, r6
	add	r2, sp, #24
	str	r4, [sp, #24]
	bl	bus_alloc_resource_anywhere
	cmp	r0, r4
	str	r0, [r5, #8]
	beq	.L10
	bl	rman_get_bustag
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r5, #16]
	bl	rman_get_bushandle
	mov	r2, #155
	ldr	r8, .L12+16
	str	r0, [r5, #12]
	ldr	r3, [r8]
	str	r2, [r5]
	cmp	r3, #0
	ble	.L4
	mov	fp, #384
	lsl	r3, r7, #2
	ldr	r10, .L12+20
	ldr	r9, .L12+24
	str	r3, [sp, #20]
.L5:
	mov	r0, r4
	bl	PBIO_PNAME
	mov	r3, #0
	ldr	r1, [sp, #20]
	ldr	r6, [r5, #4]
	mov	r2, r3
	str	r0, [sp, #12]
	add	r1, r1, r4
	mov	r0, r9
	str	r7, [sp, #8]
	str	r10, [sp, #4]
	str	fp, [sp]
	bl	make_dev
	str	r0, [r6, r4, lsl #2]
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L12+28
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	RF_ACTIVE
	.word	IO_PBIOSIZE
	.word	SYS_RES_IOPORT
	.word	PBIO_NPORTS
	.word	.LC0
	.word	pbio_cdevsw
	.word	ENXIO
	.size	pbioattach, .-pbioattach
	.comm	pbio_cdevsw,4,4
	.comm	SYS_RES_IOPORT,4,4
	.comm	RF_ACTIVE,4,4
	.comm	PBIO_NPORTS,4,4
	.comm	IO_PBIOSIZE,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
