	.file	"extr_initio.c_int_initio_busfree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	int_initio_busfree
	.type	int_initio_busfree, @function
int_initio_busfree:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 16[rdi]
	test	rbp, rbp
	je	.L2
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, rbp
	test	DWORD PTR SCB_SELECT[rip], eax
	jne	.L10
	call	initio_unlink_busy_scb@PLT
	mov	eax, DWORD PTR HOST_BUS_FREE[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 4[rbp], eax
	call	initio_append_done_scb@PLT
.L4:
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
.L2:
	mov	edi, DWORD PTR TSC_FLUSH_FIFO[rip]
	mov	rsi, QWORD PTR TUL_SCtrl0[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	edi, DWORD PTR TSC_INITDEFAULT[rip]
	mov	rsi, QWORD PTR TUL_SConfig[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	edi, DWORD PTR TSC_HW_RESELECT[rip]
	mov	rsi, QWORD PTR TUL_SCtrl1[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	initio_unlink_pend_scb@PLT
	mov	eax, DWORD PTR HOST_SEL_TOUT[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 4[rbp], eax
	call	initio_append_done_scb@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	int_initio_busfree, .-int_initio_busfree
	.comm	TUL_SCtrl1,8,8
	.comm	TUL_SCtrl0,8,8
	.comm	TUL_SConfig,8,8
	.comm	TSC_INITDEFAULT,4,4
	.comm	TSC_HW_RESELECT,4,4
	.comm	TSC_FLUSH_FIFO,4,4
	.comm	SCB_SELECT,4,4
	.comm	HOST_SEL_TOUT,4,4
	.comm	HOST_BUS_FREE,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_initio.c_int_initio_busfree.c"
	.text
	.align	2
	.global	int_initio_busfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_initio_busfree, %function
int_initio_busfree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #8]
	mov	r4, r0
	cmp	r5, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r1, r5
	tst	r2, r3
	bne	.L11
	bl	initio_unlink_busy_scb
	ldr	r3, .L12+4
.L9:
	ldr	r3, [r3]
	mov	r1, r5
	str	r3, [r5, #4]
	mov	r0, r4
	bl	initio_append_done_scb
	mov	r3, #0
	str	r3, [r4, #8]
	str	r3, [r4, #4]
.L2:
	ldr	r3, .L12+8
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L12+12
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L12+16
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L12+20
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L12+24
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L12+28
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	bl	initio_unlink_pend_scb
	ldr	r3, .L12+32
	b	.L9
.L13:
	.align	2
.L12:
	.word	SCB_SELECT
	.word	HOST_BUS_FREE
	.word	TUL_SCtrl0
	.word	TSC_FLUSH_FIFO
	.word	TUL_SConfig
	.word	TSC_INITDEFAULT
	.word	TUL_SCtrl1
	.word	TSC_HW_RESELECT
	.word	HOST_SEL_TOUT
	.size	int_initio_busfree, .-int_initio_busfree
	.comm	TUL_SCtrl1,4,4
	.comm	TUL_SCtrl0,4,4
	.comm	TUL_SConfig,4,4
	.comm	TSC_INITDEFAULT,4,4
	.comm	TSC_HW_RESELECT,4,4
	.comm	TSC_FLUSH_FIFO,4,4
	.comm	SCB_SELECT,4,4
	.comm	HOST_SEL_TOUT,4,4
	.comm	HOST_BUS_FREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
