	.file	"extr_ata_xpt.c_proberegister.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"proberegister: no probe CCB, can't register device\n"
	.align 8
.LC1:
	.string	"proberegister: Unable to probe new device. Unable to allocate softc\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Probe started\n"
	.text
	.p2align 4
	.type	proberegister, @function
proberegister:
.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, 8
	.cfi_def_cfa_offset 48
	test	rsi, rsi
	je	.L8
	mov	r12, rsi
	mov	esi, DWORD PTR M_CAMXPT[rip]
	mov	edx, DWORD PTR M_ZERO[rip]
	mov	rbp, rdi
	or	edx, DWORD PTR M_NOWAIT[rip]
	mov	edi, 32
	call	malloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L9
	lea	r13, 24[rax]
	mov	rdi, r13
	call	TAILQ_INIT@PLT
	mov	edx, DWORD PTR periph_links[rip]
	mov	rdi, r13
	mov	rsi, r12
	call	TAILQ_INSERT_TAIL@PLT
	mov	eax, DWORD PTR PROBE_INVALID[rip]
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rbx
	mov	QWORD PTR 8[rbx], rbp
	mov	DWORD PTR [rbx], eax
	call	cam_periph_acquire@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	add	rsp, 8
	.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
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR CAM_DEBUG_PROBE[rip]
	mov	edi, DWORD PTR 0[rbp]
	lea	rdx, .LC2[rip]
	call	CAM_DEBUG@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	ata_device_transport@PLT
	mov	rdi, rbp
	call	probeschedule@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP[rip]
	add	rsp, 8
	.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
.L9:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	add	rsp, 8
	.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
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, DWORD PTR CAM_REQ_CMP_ERR[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	proberegister, .-proberegister
	.comm	periph_links,4,4
	.comm	PROBE_INVALID,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_CAMXPT,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_DEBUG_PROBE,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_ata_xpt.c_proberegister.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"proberegister: no probe CCB, can't register device\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"proberegister: Unable to probe new device. Unable t"
	.ascii	"o allocate softc\012\000"
	.align	2
.LC2:
	.ascii	"Probe started\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	proberegister, %function
proberegister:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r1, #0
	beq	.L8
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+8
	orr	r2, r1, r2
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #16
	bl	malloc
	subs	r4, r0, #0
	beq	.L9
	add	r7, r4, #12
	mov	r0, r7
	bl	TAILQ_INIT
	ldr	r3, .L10+12
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r7
	bl	TAILQ_INSERT_TAIL
	mov	r2, #0
	ldr	r3, .L10+16
	str	r2, [r4, #8]
	ldr	r3, [r3]
	str	r4, [r5, #4]
	mov	r0, r5
	stm	r4, {r3, r5}
	bl	cam_periph_acquire
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L10+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L10+24
	ldr	r2, .L10+28
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	CAM_DEBUG
	ldr	r0, [r5]
	bl	ata_device_transport
	mov	r0, r5
	bl	probeschedule
	ldr	r3, .L10+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, .L10+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, .L10+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	M_ZERO
	.word	M_NOWAIT
	.word	M_CAMXPT
	.word	periph_links
	.word	PROBE_INVALID
	.word	CAM_REQ_CMP_ERR
	.word	CAM_DEBUG_PROBE
	.word	.LC2
	.word	CAM_REQ_CMP
	.word	.LC1
	.word	.LC0
	.size	proberegister, .-proberegister
	.comm	periph_links,4,4
	.comm	PROBE_INVALID,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_CAMXPT,4,4
	.comm	CAM_REQ_CMP_ERR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_DEBUG_PROBE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
