	.file	"extr_4965-mac.c_il4965_hdl_card_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Reached"
.LC1:
	.string	"Not reached"
.LC2:
	.string	"Kill"
.LC3:
	.string	"On"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Card state received: HW:%s SW:%s CT:%s\n"
	.text
	.p2align 4
	.type	il4965_hdl_card_state, @function
il4965_hdl_card_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	rxb_addr@PLT
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	lea	rcx, .LC0[rip]
	lea	rsi, .LC2[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR 0[rbp]
	test	DWORD PTR CT_CARD_DISABLED[rip], ebx
	lea	rdi, .LC4[rip]
	mov	QWORD PTR [rsp], rax
	lea	rax, .LC1[rip]
	cmove	rcx, rax
	lea	rax, .LC3[rip]
	test	DWORD PTR SW_CARD_DISABLED[rip], ebx
	mov	rdx, rax
	cmovne	rdx, rsi
	test	DWORD PTR HW_CARD_DISABLED[rip], ebx
	cmove	rsi, rax
	call	D_RF_KILL@PLT
	mov	edx, DWORD PTR CT_CARD_DISABLED[rip]
	mov	eax, DWORD PTR SW_CARD_DISABLED[rip]
	or	eax, DWORD PTR HW_CARD_DISABLED[rip]
	or	eax, edx
	test	eax, ebx
	jne	.L26
.L5:
	test	ebx, edx
	jne	.L27
.L7:
	mov	edi, DWORD PTR S_RFKILL[rip]
	mov	rsi, rbp
	test	DWORD PTR HW_CARD_DISABLED[rip], ebx
	je	.L8
	call	set_bit@PLT
	test	DWORD PTR RXON_CARD_DISABLED[rip], ebx
	je	.L28
.L10:
	mov	edi, DWORD PTR S_RFKILL[rip]
	mov	rsi, rsp
	call	test_bit@PLT
	mov	edi, DWORD PTR S_RFKILL[rip]
	mov	rsi, rbp
	mov	rbx, rax
	call	test_bit@PLT
	cmp	rbx, rax
	je	.L11
	mov	edi, DWORD PTR S_RFKILL[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	wiphy_rfkill_set_hw_state@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	call	clear_bit@PLT
	test	DWORD PTR RXON_CARD_DISABLED[rip], ebx
	jne	.L10
.L28:
	mov	rdi, rbp
	call	il_scan_cancel@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, 8[rbp]
	call	wake_up@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	il4965_perform_ct_kill_task@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, DWORD PTR CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED[rip]
	mov	esi, DWORD PTR CSR_UCODE_DRV_GP1_SET[rip]
	mov	rdi, rbp
	call	_il_wr@PLT
	mov	edx, DWORD PTR HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED[rip]
	mov	esi, DWORD PTR HBUS_TARG_MBX_C[rip]
	mov	rdi, rbp
	call	il_wr@PLT
	test	DWORD PTR RXON_CARD_DISABLED[rip], ebx
	je	.L6
.L24:
	mov	edx, DWORD PTR CT_CARD_DISABLED[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED[rip]
	mov	esi, DWORD PTR CSR_UCODE_DRV_GP1_CLR[rip]
	mov	rdi, rbp
	call	_il_wr@PLT
	mov	edx, DWORD PTR HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED[rip]
	mov	esi, DWORD PTR HBUS_TARG_MBX_C[rip]
	mov	rdi, rbp
	call	il_wr@PLT
	jmp	.L24
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	il4965_hdl_card_state, .-il4965_hdl_card_state
	.comm	S_RFKILL,4,4
	.comm	SW_CARD_DISABLED,4,4
	.comm	RXON_CARD_DISABLED,4,4
	.comm	HW_CARD_DISABLED,4,4
	.comm	HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED,4,4
	.comm	HBUS_TARG_MBX_C,4,4
	.comm	CT_CARD_DISABLED,4,4
	.comm	CSR_UCODE_DRV_GP1_SET,4,4
	.comm	CSR_UCODE_DRV_GP1_CLR,4,4
	.comm	CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,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_4965-mac.c_il4965_hdl_card_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Kill\000"
	.align	2
.LC1:
	.ascii	"On\000"
	.align	2
.LC2:
	.ascii	"Reached\000"
	.align	2
.LC3:
	.ascii	"Not reached\000"
	.align	2
.LC4:
	.ascii	"Card state received: HW:%s SW:%s CT:%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	il4965_hdl_card_state, %function
il4965_hdl_card_state:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L29
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	rxb_addr
	ldr	r0, [r0]
	bl	le32_to_cpu
	mov	r4, r0
	ldr	r6, .L29+4
	ldr	r8, .L29+8
	ldr	r1, [r6]
	ldr	r7, .L29+12
	ldr	r2, .L29+16
	ldr	r3, .L29+20
	ldr	r0, [r8]
	tst	r4, r1
	ldr	ip, [r7]
	movne	r1, r2
	moveq	r1, r3
	tst	r4, r0
	ldr	r0, .L29+24
	moveq	r2, r3
	tst	r4, ip
	ldr	ip, [r5]
	ldr	r3, .L29+28
	movne	r3, r0
	ldr	r0, .L29+32
	str	ip, [sp]
	bl	D_RF_KILL
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r7]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r4
	bne	.L22
	ldr	r8, .L29+36
.L5:
	tst	r4, r2
	bne	.L26
.L7:
	ldr	r3, [r6]
	ldr	r6, .L29+40
	tst	r4, r3
	mov	r1, r5
	ldr	r0, [r6]
	beq	.L8
	bl	set_bit
	ldr	r3, [r8]
	tst	r4, r3
	beq	.L27
.L10:
	mov	r1, sp
	ldr	r0, [r6]
	bl	test_bit
	mov	r1, r5
	mov	r4, r0
	ldr	r0, [r6]
	bl	test_bit
	cmp	r4, r0
	beq	.L11
	ldr	r3, [r5, #8]
	mov	r1, r5
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	test_bit
	mov	r1, r0
	mov	r0, r4
	bl	wiphy_rfkill_set_hw_state
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	clear_bit
	ldr	r3, [r8]
	tst	r4, r3
	bne	.L10
.L27:
	mov	r0, r5
	bl	il_scan_cancel
	b	.L10
.L11:
	add	r0, r5, #4
	bl	wake_up
	b	.L1
.L26:
	mov	r0, r5
	bl	il4965_perform_ct_kill_task
	b	.L7
.L22:
	ldr	r3, .L29+44
	ldr	fp, .L29+48
	ldr	r10, .L29+52
	ldr	r9, .L29+56
	ldr	r1, [r3]
	ldr	r2, [fp]
	mov	r0, r5
	ldr	r8, .L29+36
	bl	_il_wr
	mov	r0, r5
	ldr	r2, [r10]
	ldr	r1, [r9]
	bl	il_wr
	ldr	r3, [r8]
	tst	r4, r3
	beq	.L6
.L24:
	ldr	r2, [r7]
	b	.L5
.L6:
	ldr	r3, .L29+60
	ldr	r2, [fp]
	ldr	r1, [r3]
	mov	r0, r5
	bl	_il_wr
	mov	r0, r5
	ldr	r2, [r10]
	ldr	r1, [r9]
	bl	il_wr
	b	.L24
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	HW_CARD_DISABLED
	.word	SW_CARD_DISABLED
	.word	CT_CARD_DISABLED
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	RXON_CARD_DISABLED
	.word	S_RFKILL
	.word	CSR_UCODE_DRV_GP1_SET
	.word	CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED
	.word	HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED
	.word	HBUS_TARG_MBX_C
	.word	CSR_UCODE_DRV_GP1_CLR
	.size	il4965_hdl_card_state, .-il4965_hdl_card_state
	.comm	S_RFKILL,4,4
	.comm	SW_CARD_DISABLED,4,4
	.comm	RXON_CARD_DISABLED,4,4
	.comm	HW_CARD_DISABLED,4,4
	.comm	HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED,4,4
	.comm	HBUS_TARG_MBX_C,4,4
	.comm	CT_CARD_DISABLED,4,4
	.comm	CSR_UCODE_DRV_GP1_SET,4,4
	.comm	CSR_UCODE_DRV_GP1_CLR,4,4
	.comm	CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
