	.file	"extr_sierra_ms.c_sierra_ms_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SWIMS: Forcing Modem Mode\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"SWIMS: Failed to switch to modem mode\n"
	.align 8
.LC2:
	.string	"SWIMS: Forcing Mass Storage Mode\n"
	.section	.rodata.str1.1
.LC3:
	.string	"SWIMS: Normal SWoC Logic\n"
.LC4:
	.string	"SWIMS: Failed SWoC query\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"SWIMS: Switching to Modem Mode\n"
	.align 8
.LC6:
	.string	"SWIMS: Failed to switch modem\n"
	.align 8
.LC7:
	.string	"SWIMS: Completely failed SWoC query\n"
	.text
	.p2align 4
	.globl	sierra_ms_init
	.type	sierra_ms_init, @function
sierra_ms_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	call	us_to_host@PLT
	mov	rdi, rax
	call	scsi_get_host_dev@PLT
	mov	rax, QWORD PTR swi_tru_install[rip]
	cmp	rax, QWORD PTR TRU_FORCE_MODEM[rip]
	je	.L22
	cmp	rax, QWORD PTR TRU_FORCE_MS[rip]
	je	.L23
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	ebx, 3
	call	usb_stor_dbg@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	lea	r14, .LC4[rip]
	call	kmalloc@PLT
	mov	r12, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	r12, r12
	je	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r12
	mov	rdi, r13
	call	sierra_get_swoc_info@PLT
	test	eax, eax
	js	.L24
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r12
	call	debug_swoc@PLT
	mov	rdi, r12
	call	containsFullLinuxPackage@PLT
	test	eax, eax
	je	.L25
	mov	rdi, r12
	call	kfree@PLT
.L6:
	mov	rdi, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, dev_attr_truinst[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	device_create_file@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rsi, r14
	call	usb_stor_dbg@PLT
	mov	eax, DWORD PTR HZ[rip]
	lea	edi, [rax+rax]
	call	schedule_timeout_uninterruptible@PLT
	sub	ebx, 1
	jne	.L7
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	mov	esi, DWORD PTR SWIMS_SET_MODE_Modem[rip]
	mov	rdi, r13
	call	sierra_set_ms_mode@PLT
	test	eax, eax
	js	.L26
.L20:
	mov	rdi, r12
	call	kfree@PLT
.L19:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	mov	esi, DWORD PTR SWIMS_SET_MODE_Modem[rip]
	mov	rdi, r13
	call	sierra_set_ms_mode@PLT
	test	eax, eax
	jns	.L19
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	jmp	.L19
.L26:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	usb_stor_dbg@PLT
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	sierra_ms_init, .-sierra_ms_init
	.comm	swi_tru_install,8,8
	.comm	dev_attr_truinst,4,4
	.comm	TRU_FORCE_MS,8,8
	.comm	TRU_FORCE_MODEM,8,8
	.comm	SWIMS_SET_MODE_Modem,4,4
	.comm	HZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_sierra_ms.c_sierra_ms_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SWIMS: Forcing Modem Mode\012\000"
	.align	2
.LC1:
	.ascii	"SWIMS: Failed to switch to modem mode\012\000"
	.align	2
.LC2:
	.ascii	"SWIMS: Forcing Mass Storage Mode\012\000"
	.align	2
.LC3:
	.ascii	"SWIMS: Normal SWoC Logic\012\000"
	.align	2
.LC4:
	.ascii	"SWIMS: Failed SWoC query\012\000"
	.align	2
.LC5:
	.ascii	"SWIMS: Switching to Modem Mode\012\000"
	.align	2
.LC6:
	.ascii	"SWIMS: Failed to switch modem\012\000"
	.align	2
.LC7:
	.ascii	"SWIMS: Completely failed SWoC query\012\000"
	.text
	.align	2
	.global	sierra_ms_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	sierra_ms_init, %function
sierra_ms_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r7, [r0, #4]
	bl	us_to_host
	bl	scsi_get_host_dev
	ldr	r3, .L27
	ldr	r2, .L27+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
	ldr	r2, .L27+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L22
	ldr	r1, .L27+12
	mov	r0, r5
	bl	usb_stor_dbg
	ldr	r3, .L27+16
	mov	r0, #4
	ldr	r1, [r3]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L23
	mov	r4, #3
	ldr	r9, .L27+20
	ldr	r8, .L27+24
.L7:
	mov	r1, r6
	mov	r0, r7
	bl	sierra_get_swoc_info
	cmp	r0, #0
	blt	.L24
	mov	r1, r6
	ldr	r0, [r5, #4]
	bl	debug_swoc
	mov	r0, r6
	bl	containsFullLinuxPackage
	cmp	r0, #0
	beq	.L25
.L6:
	mov	r0, r6
	bl	kfree
	ldr	r0, [r5]
	ldr	r1, .L27+28
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	device_create_file
.L24:
	mov	r1, r9
	mov	r0, r5
	bl	usb_stor_dbg
	ldr	r0, [r8]
	lsl	r0, r0, #1
	bl	schedule_timeout_uninterruptible
	subs	r4, r4, #1
	bne	.L7
	mov	r0, r5
	ldr	r1, .L27+32
	bl	usb_stor_dbg
	b	.L19
.L25:
	ldr	r1, .L27+36
	mov	r0, r5
	bl	usb_stor_dbg
	ldr	r3, .L27+40
	mov	r0, r7
	ldr	r1, [r3]
	bl	sierra_set_ms_mode
	cmp	r0, #0
	blt	.L26
.L19:
	mov	r0, r6
	bl	kfree
.L18:
	ldr	r3, .L27+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	mov	r0, r5
	ldr	r1, .L27+48
	bl	usb_stor_dbg
	ldr	r0, [r5]
	ldr	r1, .L27+28
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	device_create_file
.L23:
	ldr	r3, .L27+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r1, .L27+56
	mov	r0, r5
	bl	usb_stor_dbg
	ldr	r3, .L27+40
	mov	r0, r7
	ldr	r1, [r3]
	bl	sierra_set_ms_mode
	cmp	r0, #0
	bge	.L18
	mov	r0, r5
	ldr	r1, .L27+60
	bl	usb_stor_dbg
	b	.L18
.L26:
	mov	r0, r5
	ldr	r1, .L27+64
	bl	usb_stor_dbg
	b	.L19
.L28:
	.align	2
.L27:
	.word	swi_tru_install
	.word	TRU_FORCE_MODEM
	.word	TRU_FORCE_MS
	.word	.LC3
	.word	GFP_KERNEL
	.word	.LC4
	.word	HZ
	.word	dev_attr_truinst
	.word	.LC7
	.word	.LC5
	.word	SWIMS_SET_MODE_Modem
	.word	EIO
	.word	.LC2
	.word	ENOMEM
	.word	.LC0
	.word	.LC1
	.word	.LC6
	.size	sierra_ms_init, .-sierra_ms_init
	.comm	swi_tru_install,4,4
	.comm	dev_attr_truinst,4,4
	.comm	TRU_FORCE_MS,4,4
	.comm	TRU_FORCE_MODEM,4,4
	.comm	SWIMS_SET_MODE_Modem,4,4
	.comm	HZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
