	.file	"extr_r8185b_init.c_ActUpdateChannelAccessSetting.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SetHwReg8185(): invalid ACI: %d !\n"
	.align 8
.LC1:
	.string	"SetHwReg8185(): [HW_VAR_ACM_CTRL] ACM set failed: eACI is %d\n"
	.text
	.p2align 4
	.globl	ActUpdateChannelAccessSetting
	.type	ActUpdateChannelAccessSetting, @function
ActUpdateChannelAccessSetting:
.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	rbx, rdx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	call	ieee80211_priv@PLT
	mov	edx, 34
	mov	rdi, rbp
	mov	r12, QWORD PTR [rax]
	movabs	rax, 120259084322
	mov	QWORD PTR [rbx], rax
	mov	esi, DWORD PTR SIFS[rip]
	movabs	rax, 390842023945
	mov	QWORD PTR 8[rbx], rax
	movabs	rax, 30064771075
	mov	QWORD PTR 16[rbx], rax
	call	write_nic_byte@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR SLOT[rip]
	mov	rdi, rbp
	call	write_nic_byte@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR EIFS[rip]
	mov	rdi, rbp
	call	write_nic_byte@PLT
	mov	esi, DWORD PTR AckTimeOutReg[rip]
	mov	edx, 91
	mov	rdi, rbp
	call	write_nic_byte@PLT
	cmp	DWORD PTR 8[r12], 1
	mov	DWORD PTR 8[rsp], 2
	mov	DWORD PTR [rsp], 0
	jne	.L2
	mov	DWORD PTR [rsp], 511
.L2:
	mov	rax, QWORD PTR IW_MODE_ADHOC[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L3
	mov	DWORD PTR [rsp], 32
.L3:
	cmp	QWORD PTR AC_MAX[rip], 0
	je	.L1
	mov	r12, QWORD PTR [rsp]
	xor	ebx, ebx
	lea	r14, .LC1[rip]
	lea	r13, -128[r12]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR 8[rsp], 0
	je	.L7
	cmp	r12, 129
	jbe	.L7
	cmp	r12, 131
	jne	.L6
.L7:
	mov	esi, DWORD PTR ACM_CONTROL[rip]
	xor	edx, edx
	mov	rdi, rbp
	add	rbx, 1
	call	write_nic_byte@PLT
	cmp	QWORD PTR AC_MAX[rip], rbx
	jbe	.L1
.L9:
	mov	DWORD PTR 12[rsp], ebx
	cmp	r13, 3
	jbe	.L5
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	DMESGW@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L7
.L6:
	mov	rsi, r12
	mov	rdi, r14
	call	DMESGW@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 48
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	ActUpdateChannelAccessSetting, .-ActUpdateChannelAccessSetting
	.comm	pStaQos,8,8
	.comm	pHalData,8,8
	.comm	aSifsTime,4,4
	.comm	VOQ_ACM_EN,4,4
	.comm	VOQ_ACM_CTL,4,4
	.comm	VIQ_ACM_EN,4,4
	.comm	VIQ_ACM_CTL,4,4
	.comm	SLOT,4,4
	.comm	SIFS,4,4
	.comm	QOS_DISABLE,8,8
	.comm	IW_MODE_ADHOC,8,8
	.comm	HW_VAR_AC_PARAM,4,4
	.comm	EIFS,4,4
	.comm	BEQ_ACM_EN,4,4
	.comm	BEQ_ACM_CTL,4,4
	.comm	Adapter,8,8
	.comm	AckTimeOutReg,4,4
	.comm	AC_PARAM_TXOP_LIMIT_OFFSET,4,4
	.comm	AC_PARAM_ECW_MIN_OFFSET,4,4
	.comm	AC_PARAM_ECW_MAX_OFFSET,4,4
	.comm	AC_PARAM_AIFS_OFFSET,4,4
	.comm	AC_MAX,8,8
	.comm	ACM_HW_EN,4,4
	.comm	ACM_CONTROL,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_r8185b_init.c_ActUpdateChannelAccessSetting.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SetHwReg8185(): invalid ACI: %d !\012\000"
	.align	2
.LC1:
	.ascii	"SetHwReg8185(): [HW_VAR_ACM_CTRL] ACM set failed: e"
	.ascii	"ACI is %d\012\000"
	.text
	.align	2
	.global	ActUpdateChannelAccessSetting
	.syntax unified
	.arm
	.fpu softvfp
	.type	ActUpdateChannelAccessSetting, %function
ActUpdateChannelAccessSetting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r6, r0
	bl	ieee80211_priv
	mov	r3, #9
	mov	lr, #28
	mov	ip, #3
	mov	r7, #91
	mov	r2, #34
	mov	r1, #7
	ldr	r5, [r0]
	str	r3, [r4, #8]
	ldr	r3, .L20
	str	lr, [r4, #4]
	str	ip, [r4, #16]
	str	r1, [r4, #20]
	str	r2, [r4]
	ldr	r1, [r3]
	str	r7, [r4, #12]
	mov	r0, r6
	bl	write_nic_byte
	ldr	r3, .L20+4
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	mov	r0, r6
	bl	write_nic_byte
	ldr	r3, .L20+8
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r6
	bl	write_nic_byte
	ldr	r3, .L20+12
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r6
	bl	write_nic_byte
	ldr	r3, [r5, #4]
	ldr	r7, .L20+16
	cmp	r3, #1
	ldr	r3, .L20+20
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, [r7]
	ldr	r4, .L20+24
	movne	r4, #0
	cmp	r1, r2
	moveq	r4, #32
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r5, #0
	ldr	r9, .L20+28
	ldr	fp, .L20+32
	ldr	r10, .L20+36
	sub	r8, r4, #128
	b	.L9
.L19:
	cmp	r4, #127
	bgt	.L7
.L8:
	mov	r1, r4
	mov	r0, r10
	bl	DMESGW
.L7:
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r9]
	bl	write_nic_byte
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	popls	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	cmp	r8, #3
	bhi	.L18
.L5:
	cmp	r4, #129
	ble	.L19
	cmp	r4, #131
	beq	.L7
	b	.L8
.L18:
	mov	r1, r4
	mov	r0, fp
	bl	DMESGW
	b	.L5
.L21:
	.align	2
.L20:
	.word	SIFS
	.word	SLOT
	.word	EIFS
	.word	AckTimeOutReg
	.word	AC_MAX
	.word	IW_MODE_ADHOC
	.word	511
	.word	ACM_CONTROL
	.word	.LC0
	.word	.LC1
	.size	ActUpdateChannelAccessSetting, .-ActUpdateChannelAccessSetting
	.comm	pStaQos,4,4
	.comm	pHalData,4,4
	.comm	aSifsTime,4,4
	.comm	VOQ_ACM_EN,4,4
	.comm	VOQ_ACM_CTL,4,4
	.comm	VIQ_ACM_EN,4,4
	.comm	VIQ_ACM_CTL,4,4
	.comm	SLOT,4,4
	.comm	SIFS,4,4
	.comm	QOS_DISABLE,4,4
	.comm	IW_MODE_ADHOC,4,4
	.comm	HW_VAR_AC_PARAM,4,4
	.comm	EIFS,4,4
	.comm	BEQ_ACM_EN,4,4
	.comm	BEQ_ACM_CTL,4,4
	.comm	Adapter,4,4
	.comm	AckTimeOutReg,4,4
	.comm	AC_PARAM_TXOP_LIMIT_OFFSET,4,4
	.comm	AC_PARAM_ECW_MIN_OFFSET,4,4
	.comm	AC_PARAM_ECW_MAX_OFFSET,4,4
	.comm	AC_PARAM_AIFS_OFFSET,4,4
	.comm	AC_MAX,4,4
	.comm	ACM_HW_EN,4,4
	.comm	ACM_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
