	.file	"extr_pccbb.c_cbb_insert.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"16-bit card inserted, but no pccard bus.\n"
	.align 8
.LC1:
	.string	"CardBus card inserted, but no cardbus bus.\n"
	.align 8
.LC2:
	.string	"Unsupported card type detected\n"
	.text
	.p2align 4
	.type	cbb_insert, @function
cbb_insert:
.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	esi, DWORD PTR CBB_SOCKET_EVENT[rip]
	call	cbb_get@PLT
	mov	esi, DWORD PTR CBB_SOCKET_STATE[rip]
	mov	rdi, rbx
	call	cbb_get@PLT
	mov	edi, eax
	mov	ebp, eax
	call	DEVPRINTF@PLT
	test	DWORD PTR CBB_STATE_R2_CARD[rip], ebp
	jne	.L9
	test	DWORD PTR CBB_STATE_CB_CARD[rip], ebp
	jne	.L10
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rsi, .LC2[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	device_printf@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	device_is_attached@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR CBB_16BIT_CARD[rip]
	mov	edi, DWORD PTR 4[rbx]
	not	eax
	and	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	CARD_ATTACH_CARD@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	device_is_attached@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR CBB_16BIT_CARD[rip]
	or	DWORD PTR 8[rbx], eax
	mov	rdi, QWORD PTR 16[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	exca_insert@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	device_printf@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	device_printf@PLT
	.cfi_endproc
.LFE0:
	.size	cbb_insert, .-cbb_insert
	.comm	CBB_STATE_R2_CARD,4,4
	.comm	CBB_STATE_CB_CARD,4,4
	.comm	CBB_SOCKET_STATE,4,4
	.comm	CBB_SOCKET_EVENT,4,4
	.comm	CBB_16BIT_CARD,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_pccbb.c_cbb_insert.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"16-bit card inserted, but no pccard bus.\012\000"
	.align	2
.LC1:
	.ascii	"CardBus card inserted, but no cardbus bus.\012\000"
	.align	2
.LC2:
	.ascii	"Unsupported card type detected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cbb_insert, %function
cbb_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L9
	ldr	r1, [r3]
	bl	cbb_get
	ldr	r3, .L9+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	cbb_get
	mov	r5, r0
	bl	DEVPRINTF
	ldr	r3, .L9+8
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L8
	ldr	r3, .L9+12
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L4
	ldr	r0, [r4, #4]
	bl	device_is_attached
	cmp	r0, #0
	beq	.L5
	ldr	r2, .L9+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	bic	r3, r3, r2
	str	r3, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	CARD_ATTACH_CARD
.L4:
	ldr	r0, [r4]
	ldr	r1, .L9+20
	pop	{r4, r5, r6, lr}
	b	device_printf
.L8:
	ldr	r3, [r4, #12]
	ldr	r0, [r3]
	bl	device_is_attached
	cmp	r0, #0
	beq	.L3
	ldr	r2, .L9+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	r0, [r4, #12]
	orr	r3, r3, r2
	str	r3, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	exca_insert
.L5:
	ldr	r0, [r4]
	ldr	r1, .L9+24
	pop	{r4, r5, r6, lr}
	b	device_printf
.L3:
	ldr	r0, [r4]
	ldr	r1, .L9+28
	pop	{r4, r5, r6, lr}
	b	device_printf
.L10:
	.align	2
.L9:
	.word	CBB_SOCKET_EVENT
	.word	CBB_SOCKET_STATE
	.word	CBB_STATE_R2_CARD
	.word	CBB_STATE_CB_CARD
	.word	CBB_16BIT_CARD
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	cbb_insert, .-cbb_insert
	.comm	CBB_STATE_R2_CARD,4,4
	.comm	CBB_STATE_CB_CARD,4,4
	.comm	CBB_SOCKET_STATE,4,4
	.comm	CBB_SOCKET_EVENT,4,4
	.comm	CBB_16BIT_CARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
