	.file	"extr_coid.c_zfiWlanSetRegulatory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfiWlanSetRegulatory
	.type	zfiWlanSetRegulatory, @function
zfiWlanSetRegulatory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	zmw_get_wlan_dev@PLT
	xor	eax, eax
	call	zmw_declare_for_critical_section@PLT
	mov	esi, r12d
	mov	rdi, rbp
	test	r13, r13
	je	.L2
	call	zfHpGetRegulationTablefromCountry@PLT
	test	rbx, rbx
	jne	.L7
.L1:
	add	rsp, 8
	.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
.L2:
	.cfi_restore_state
	call	zfHpGetRegulationTablefromRegionCode@PLT
	test	rbx, rbx
	je	.L1
.L7:
	mov	rdi, rbp
	call	zmw_enter_critical_section@PLT
	mov	rbx, QWORD PTR wd[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	zfChGetFirstChannel@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	zmw_leave_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	add	rsp, 8
	.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
	jmp	zfCoreSetFrequency@PLT
	.cfi_endproc
.LFE0:
	.size	zfiWlanSetRegulatory, .-zfiWlanSetRegulatory
	.comm	wd,8,8
	.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_coid.c_zfiWlanSetRegulatory.c"
	.text
	.align	2
	.global	zfiWlanSetRegulatory
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfiWlanSetRegulatory, %function
zfiWlanSetRegulatory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r6, r2
	mov	r4, r0
	mov	r5, r3
	bl	zmw_get_wlan_dev
	bl	zmw_declare_for_critical_section
	cmp	r7, #0
	mov	r1, r6
	mov	r0, r4
	beq	.L2
	bl	zfHpGetRegulationTablefromCountry
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r5, .L8
	mov	r0, r4
	bl	zmw_enter_critical_section
	mov	r1, #0
	mov	r0, r4
	ldr	r6, [r5]
	bl	zfChGetFirstChannel
	mov	r3, r0
	mov	r0, r4
	str	r3, [r6]
	bl	zmw_leave_critical_section
	ldr	r3, [r5]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	zfCoreSetFrequency
.L2:
	bl	zfHpGetRegulationTablefromRegionCode
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L7
.L9:
	.align	2
.L8:
	.word	wd
	.size	zfiWlanSetRegulatory, .-zfiWlanSetRegulatory
	.comm	wd,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
