	.file	"extr_cw1200_spi.c_cw1200_spi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cw1200_wlan_spi: Probe called (CS %d M %d BPW %d CLK %d)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"spi_on() failed!\n"
.LC2:
	.string	"spi_setup() failed!\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Can't allocate SPI hwbus_priv."
	.text
	.p2align 4
	.type	cw1200_spi_probe, @function
cw1200_spi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 8[rdi]
	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
	mov	rdi, r14
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_get_platdata@PLT
	mov	r8d, DWORD PTR 0[rbp]
	mov	r13, rax
	cmp	r8d, 52000000
	jle	.L2
	mov	DWORD PTR 0[rbp], 52000000
	mov	r8d, 52000000
.L3:
	mov	ecx, DWORD PTR 0[r13]
	test	ecx, ecx
	je	.L4
.L19:
	mov	DWORD PTR 4[rbp], ecx
.L5:
	mov	edx, DWORD PTR SPI_MODE_0[rip]
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 12[rbp], edx
	call	pr_info@PLT
	mov	rdi, r13
	call	cw1200_spi_on@PLT
	test	rax, rax
	jne	.L15
	mov	rdi, rbp
	call	spi_setup@PLT
	test	rax, rax
	jne	.L16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	rdi, r14
	call	devm_kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	QWORD PTR [rax], r13
	lea	rdi, 16[rax]
	mov	QWORD PTR 24[rax], rbp
	call	spin_lock_init@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	spi_set_drvdata@PLT
	lea	rdi, 12[r12]
	call	init_waitqueue_head@PLT
	mov	rdi, r12
	call	cw1200_spi_irq_subscribe@PLT
	mov	rax, QWORD PTR [r12]
	mov	rsi, r12
	lea	rcx, 8[r12]
	lea	rdi, cw1200_spi_hwbus_ops[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	r9d, DWORD PTR 12[rax]
	mov	r8d, DWORD PTR 16[rax]
	push	rdx
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR 8[rax]
	mov	rdx, r14
	push	rax
	.cfi_def_cfa_offset 64
	call	cw1200_core_probe@PLT
	mov	r14d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r14d, r14d
	jne	.L18
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L2:
	.cfi_restore_state
	cmp	r8d, 999999
	jg	.L3
	mov	ecx, DWORD PTR 0[r13]
	mov	DWORD PTR 0[rbp], 1000000
	mov	r8d, 1000000
	test	ecx, ecx
	jne	.L19
.L4:
	mov	ecx, DWORD PTR 4[rbp]
	test	ecx, ecx
	jne	.L5
	mov	DWORD PTR 4[rbp], 16
	mov	ecx, 16
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r12
	call	cw1200_spi_irq_unsubscribe@PLT
	mov	rdi, r13
	call	cw1200_spi_off@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L17:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r14d
	pop	r13
	.cfi_def_cfa_offset 16
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r14d, -1
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC2[rip]
	mov	r14d, -1
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cw1200_spi_probe, .-cw1200_spi_probe
	.comm	cw1200_spi_hwbus_ops,4,4
	.comm	SPI_MODE_0,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_cw1200_spi.c_cw1200_spi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cw1200_wlan_spi: Probe called (CS %d M %d BPW %d CL"
	.ascii	"K %d)\012\000"
	.align	2
.LC1:
	.ascii	"spi_on() failed!\012\000"
	.align	2
.LC2:
	.ascii	"spi_setup() failed!\012\000"
	.align	2
.LC3:
	.ascii	"Can't allocate SPI hwbus_priv.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cw1200_spi_probe, %function
cw1200_spi_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	add	r7, r0, #8
	mov	r0, r7
	sub	sp, sp, #20
	bl	dev_get_platdata
	ldr	r2, [r4]
	ldr	r3, .L19
	mov	r6, r0
	cmp	r2, r3
	movgt	r2, r3
	strgt	r3, [r4]
	bgt	.L3
	ldr	r3, .L19+4
	cmp	r2, r3
	movlt	r2, r3
	strlt	r3, [r4]
.L3:
	ldr	r3, [r6]
	cmp	r3, #0
	strne	r3, [r4, #4]
	bne	.L5
	ldr	r3, [r4, #4]
	cmp	r3, #0
	moveq	r1, #16
	moveq	r3, r1
	streq	r1, [r4, #4]
.L5:
	ldr	r1, .L19+8
	str	r2, [sp]
	ldr	r2, [r1]
	ldr	r0, .L19+12
	ldr	r1, [r4, #16]
	str	r2, [r4, #12]
	bl	pr_info
	mov	r0, r6
	bl	cw1200_spi_on
	cmp	r0, #0
	bne	.L15
	mov	r0, r4
	bl	spi_setup
	cmp	r0, #0
	bne	.L16
	ldr	r3, .L19+16
	mov	r1, #20
	mov	r0, r7
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L17
	str	r4, [r5, #16]
	str	r6, [r5]
	add	r0, r5, #12
	bl	spin_lock_init
	mov	r1, r5
	mov	r0, r4
	bl	spi_set_drvdata
	add	r0, r5, #8
	bl	init_waitqueue_head
	mov	r0, r5
	bl	cw1200_spi_irq_subscribe
	mov	r3, r5
	ldr	r0, [r3], #4
	mov	r2, r7
	ldr	r1, [r0, #4]
	str	r1, [sp, #12]
	ldr	ip, [r0, #8]
	mov	r1, r5
	str	ip, [sp, #8]
	ldr	ip, [r0, #12]
	str	ip, [sp, #4]
	ldr	ip, [r0, #16]
	ldr	r0, .L19+20
	str	ip, [sp]
	bl	cw1200_core_probe
	subs	r4, r0, #0
	bne	.L18
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r0, r5
	bl	cw1200_spi_irq_unsubscribe
	mov	r0, r6
	bl	cw1200_spi_off
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r0, .L19+24
	bl	pr_err
	ldr	r3, .L19+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r0, .L19+32
	bl	pr_err
	mvn	r4, #0
	b	.L1
.L16:
	ldr	r0, .L19+36
	bl	pr_err
	mvn	r4, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	52000000
	.word	1000000
	.word	SPI_MODE_0
	.word	.LC0
	.word	GFP_KERNEL
	.word	cw1200_spi_hwbus_ops
	.word	.LC3
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.size	cw1200_spi_probe, .-cw1200_spi_probe
	.comm	cw1200_spi_hwbus_ops,4,4
	.comm	SPI_MODE_0,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
