	.file	"extr_scsi_pt.c_ptctor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ptregister: no getdev CCB, can't register device\n"
	.align 8
.LC1:
	.string	"daregister: Unable to probe new device. Unable to allocate softc\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s%d"
.LC3:
	.string	"pt"
	.text
	.p2align 4
	.type	ptctor, @function
ptctor:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L9
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	r12, rsi
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rbp, rdi
	mov	edi, 24
	call	malloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L10
	mov	esi, 24
	mov	rdi, rax
	lea	r13, 16[rsp]
	call	bzero@PLT
	lea	rdi, 20[rbx]
	call	LIST_INIT@PLT
	mov	eax, DWORD PTR PT_STATE_NORMAL[rip]
	lea	rdi, 12[rbx]
	mov	DWORD PTR 16[rbx], eax
	call	bioq_init@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 12[rsp]
	imul	eax, DWORD PTR SCSI_PT_DEFAULT_TIMEOUT[rip], 1000
	mov	DWORD PTR [rbx], eax
	mov	QWORD PTR 16[rbp], rbx
	call	xpt_path_inq@PLT
	mov	rdi, rbp
	call	cam_periph_unlock@PLT
	mov	rdi, r13
	call	make_dev_args_init@PLT
	mov	r8d, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR 8[rbp]
	lea	rsi, 8[rbx]
	lea	rax, pt_cdevsw[rip]
	mov	rdi, r13
	lea	rdx, .LC2[rip]
	mov	DWORD PTR 16[rsp], 384
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR UID_ROOT[rip]
	mov	DWORD PTR 40[rsp], r8d
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR GID_OPERATOR[rip]
	mov	QWORD PTR 24[rsp], rbp
	mov	DWORD PTR 32[rsp], eax
	call	make_dev_s@PLT
	test	eax, eax
	jne	.L11
	mov	rdi, r12
	mov	r13d, DWORD PTR DEVSTAT_PRIORITY_OTHER[rip]
	call	SID_TYPE@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r12d, eax
	call	XPORT_DEVSTAT_TYPE@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR DEVSTAT_NO_BLOCKSIZE[rip]
	xor	edx, edx
	mov	r8d, r12d
	mov	r9d, r13d
	lea	rdi, .LC3[rip]
	or	r8d, eax
	call	devstat_new_entry@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rbx], eax
	call	cam_periph_lock@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ptasync[rip]
	mov	rdx, rbp
	mov	edi, DWORD PTR AC_SENT_BDR[rip]
	or	edi, DWORD PTR AC_BUS_RESET[rip]
	or	edi, DWORD PTR AC_LOST_DEVICE[rip]
	call	xpt_register_async@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	xpt_announce_periph@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP[rip]
.L1:
	mov	rdx, QWORD PTR 56[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 72
	.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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	cam_periph_lock@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ptctor, .-ptctor
	.comm	ptasync,4,4
	.comm	pt_cdevsw,4,4
	.comm	UID_ROOT,4,4
	.comm	SCSI_PT_DEFAULT_TIMEOUT,4,4
	.comm	PT_STATE_NORMAL,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_DEVBUF,4,4
	.comm	GID_OPERATOR,4,4
	.comm	DEVSTAT_PRIORITY_OTHER,4,4
	.comm	DEVSTAT_NO_BLOCKSIZE,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	AC_SENT_BDR,4,4
	.comm	AC_LOST_DEVICE,4,4
	.comm	AC_BUS_RESET,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_scsi_pt.c_ptctor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ptregister: no getdev CCB, can't register device\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"daregister: Unable to probe new device. Unable to a"
	.ascii	"llocate softc\012\000"
	.align	2
.LC2:
	.ascii	"%s%d\000"
	.align	2
.LC3:
	.ascii	"pt\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptctor, %function
ptctor:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L13
	sub	sp, sp, #44
	subs	r6, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	beq	.L9
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	mov	r4, r0
	ldr	r2, [r2]
	mov	r0, #24
	ldr	r1, [r3]
	bl	malloc
	subs	r5, r0, #0
	beq	.L10
	mov	r1, #24
	bl	bzero
	add	r0, r5, #20
	bl	LIST_INIT
	ldr	r3, .L13+12
	add	r0, r5, #12
	ldr	r3, [r3]
	str	r3, [r5, #16]
	bl	bioq_init
	ldr	r3, .L13+16
	ldr	r1, [r4]
	ldr	r3, [r3]
	add	r0, sp, #8
	rsb	r2, r3, r3, lsl #5
	add	r3, r3, r2, lsl #2
	lsl	r3, r3, #3
	str	r3, [r5]
	str	r5, [r4, #12]
	bl	xpt_path_inq
	mov	r0, r4
	bl	cam_periph_unlock
	add	r0, sp, #12
	bl	make_dev_args_init
	mov	r2, #384
	ldr	r0, .L13+20
	ldr	r3, .L13+24
	ldr	ip, [r0]
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	str	ip, [sp, #24]
	str	r1, [sp]
	ldr	ip, .L13+28
	str	r3, [sp, #20]
	str	r2, [sp, #12]
	str	r1, [sp, #28]
	ldr	r3, [r4, #8]
	ldr	r2, .L13+32
	add	r0, sp, #12
	add	r1, r5, #8
	str	r4, [sp, #16]
	str	ip, [sp, #32]
	bl	make_dev_s
	subs	r7, r0, #0
	bne	.L11
	ldr	r3, .L13+36
	mov	r0, r6
	ldr	r9, [r3]
	ldr	r8, [r4, #4]
	bl	SID_TYPE
	mov	r6, r0
	ldr	r0, [sp, #8]
	bl	XPORT_DEVSTAT_TYPE
	ldr	r3, .L13+40
	orr	r6, r6, r0
	ldr	r2, [r3]
	mov	r1, r8
	mov	r3, r9
	str	r2, [sp, #4]
	ldr	r0, .L13+44
	mov	r2, r7
	str	r6, [sp]
	bl	devstat_new_entry
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5, #4]
	bl	cam_periph_lock
	ldr	r3, .L13+48
	ldr	r1, .L13+52
	ldr	r2, .L13+56
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r2, .L13+60
	orr	r3, r3, r1
	orr	r0, r3, r0
	ldr	r1, [r2]
	ldr	r3, [r4]
	mov	r2, r4
	bl	xpt_register_async
	mov	r1, r7
	mov	r0, r4
	bl	xpt_announce_periph
	ldr	r3, .L13+64
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	ldr	r0, .L13+68
	bl	printf
	ldr	r3, .L13+72
	ldr	r0, [r3]
	b	.L1
.L11:
	mov	r0, r4
	bl	cam_periph_lock
	ldr	r3, .L13+72
	ldr	r0, [r3]
	b	.L1
.L9:
	ldr	r0, .L13+76
	bl	printf
	ldr	r3, .L13+72
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	M_DEVBUF
	.word	M_NOWAIT
	.word	PT_STATE_NORMAL
	.word	SCSI_PT_DEFAULT_TIMEOUT
	.word	UID_ROOT
	.word	GID_OPERATOR
	.word	pt_cdevsw
	.word	.LC2
	.word	DEVSTAT_NO_BLOCKSIZE
	.word	DEVSTAT_PRIORITY_OTHER
	.word	.LC3
	.word	AC_SENT_BDR
	.word	AC_BUS_RESET
	.word	AC_LOST_DEVICE
	.word	ptasync
	.word	CAM_REQ_CMP
	.word	.LC1
	.word	CAM_REQ_CMP_ERR
	.word	.LC0
	.size	ptctor, .-ptctor
	.comm	ptasync,4,4
	.comm	pt_cdevsw,4,4
	.comm	UID_ROOT,4,4
	.comm	SCSI_PT_DEFAULT_TIMEOUT,4,4
	.comm	PT_STATE_NORMAL,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_DEVBUF,4,4
	.comm	GID_OPERATOR,4,4
	.comm	DEVSTAT_PRIORITY_OTHER,4,4
	.comm	DEVSTAT_NO_BLOCKSIZE,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	AC_SENT_BDR,4,4
	.comm	AC_LOST_DEVICE,4,4
	.comm	AC_BUS_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
