	.file	"extr_if_smsc.c_smsc_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error: allocating USB transfers failed\n"
	.align 8
.LC1:
	.string	"error: could not attach interface\n"
	.text
	.p2align 4
	.type	smsc_attach, @function
smsc_attach:
.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
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	device_get_ivars@PLT
	mov	edi, ebp
	mov	r12, rax
	call	device_get_softc@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	USB_GET_DRIVER_INFO@PLT
	mov	edi, ebp
	mov	DWORD PTR 8[rbx], eax
	call	device_set_usb_desc@PLT
	mov	r13d, DWORD PTR MTX_DEF[rip]
	mov	edi, ebp
	call	device_get_nameunit@PLT
	xor	edx, edx
	mov	rdi, rbx
	mov	esi, eax
	mov	ecx, r13d
	call	mtx_init@PLT
	lea	rsi, 4[rsp]
	mov	edx, DWORD PTR 4[rbx]
	mov	r9, rbx
	mov	eax, DWORD PTR SMSC_IFACE_IDX[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR smsc_config[rip]
	mov	r8d, DWORD PTR SMSC_N_TRANSFER[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	edi, DWORD PTR [r12]
	push	rbx
	.cfi_def_cfa_offset 80
	call	usbd_transfer_setup@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR [r12]
	mov	QWORD PTR 40[rbx], rbx
	lea	rdi, 16[rbx]
	mov	DWORD PTR 36[rbx], ebp
	mov	DWORD PTR 32[rbx], eax
	lea	rax, smsc_ue_methods[rip]
	mov	QWORD PTR 24[rbx], rbx
	mov	QWORD PTR 16[rbx], rax
	call	uether_ifattach@PLT
	test	eax, eax
	jne	.L12
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, ebp
	call	device_printf@PLT
.L3:
	mov	edi, ebp
	call	smsc_detach@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC1[rip]
	mov	edi, ebp
	call	device_printf@PLT
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smsc_attach, .-smsc_attach
	.comm	smsc_ue_methods,4,4
	.comm	smsc_config,4,4
	.comm	SMSC_N_TRANSFER,4,4
	.comm	SMSC_IFACE_IDX,4,4
	.comm	MTX_DEF,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_if_smsc.c_smsc_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error: allocating USB transfers failed\012\000"
	.align	2
.LC1:
	.ascii	"error: could not attach interface\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsc_attach, %function
smsc_attach:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	device_get_ivars
	mov	r6, r0
	mov	r0, r5
	bl	device_get_softc
	mov	r4, r0
	mov	r0, r6
	bl	USB_GET_DRIVER_INFO
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #8]
	bl	device_set_usb_desc
	mov	r0, r5
	bl	device_get_nameunit
	ldr	r3, .L14+4
	mov	r1, r0
	mov	r2, #0
	ldr	r3, [r3]
	mov	r0, r4
	bl	mtx_init
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	str	r1, [sp, #16]
	ldr	r1, [r3]
	ldr	r0, [r6]
	stm	sp, {r1, r4}
	ldr	r3, .L14+16
	str	r4, [sp, #8]
	ldr	r3, [r3]
	add	r1, sp, #16
	bl	usbd_transfer_setup
	cmp	r0, #0
	bne	.L11
	mov	r0, r4
	ldr	r2, [r6]
	ldr	r3, .L14+20
	str	r2, [r4, #20]
	str	r4, [r4, #28]
	str	r5, [r4, #24]
	str	r4, [r4, #16]
	str	r3, [r0, #12]!
	bl	uether_ifattach
	cmp	r0, #0
	bne	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r5
	ldr	r1, .L14+24
	bl	device_printf
.L3:
	mov	r0, r5
	bl	smsc_detach
	ldr	r3, .L14+28
	ldr	r0, [r3]
	b	.L1
.L12:
	mov	r0, r5
	ldr	r1, .L14+32
	bl	device_printf
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	MTX_DEF
	.word	SMSC_IFACE_IDX
	.word	SMSC_N_TRANSFER
	.word	smsc_config
	.word	smsc_ue_methods
	.word	.LC0
	.word	ENXIO
	.word	.LC1
	.size	smsc_attach, .-smsc_attach
	.comm	smsc_ue_methods,4,4
	.comm	smsc_config,4,4
	.comm	SMSC_N_TRANSFER,4,4
	.comm	SMSC_IFACE_IDX,4,4
	.comm	MTX_DEF,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
