	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_process_country_ie
_mwifiex_process_country_ie:            ## @mwifiex_process_country_ie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_WLAN_EID_COUNTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_bss_get_ie
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%rax), %r15d
	movq	_IEEE80211_COUNTRY_IE_MIN_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
LBB0_1:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_memcpy
	movl	8(%rbx), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	movl	12(%rbx), %eax
	movl	%eax, 4(%rcx)
	movl	$32, 8(%rcx)
	movq	_IEEE80211_COUNTRY_STRING_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subl	%eax, %r15d
	movl	%r15d, %ecx
	sarl	$2, %ecx
	movl	%ecx, 16(%r13)
	movq	24(%r13), %rdi
	leaq	(%r12,%rax,4), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_HostCmd_CMD_802_11D_DOMAIN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
	movl	$-1, %r15d
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	(%r14), %rdi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_mwifiex_dnld_txpwr_table
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_COUNTRY,4,2           ## @WLAN_EID_COUNTRY
	.comm	_IEEE80211_COUNTRY_IE_MIN_LEN,4,2 ## @IEEE80211_COUNTRY_IE_MIN_LEN
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"11D: skip setting domain info in FW\n"

	.comm	_IEEE80211_COUNTRY_STRING_LEN,4,2 ## @IEEE80211_COUNTRY_STRING_LEN
	.comm	_HostCmd_CMD_802_11D_DOMAIN_INFO,4,2 ## @HostCmd_CMD_802_11D_DOMAIN_INFO
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"11D: setting domain info in FW fail\n"

	.no_dead_strip	_mwifiex_process_country_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_process_country_ie
_mwifiex_process_country_ie:            ; @mwifiex_process_country_ie
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	_rcu_read_lock
Lloh0:
	adrp	x8, _WLAN_EID_COUNTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_COUNTRY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_bss_get_ie
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w23, [x0, #4]
Lloh3:
	adrp	x8, _IEEE80211_COUNTRY_IE_MIN_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_COUNTRY_IE_MIN_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ge	LBB0_5
LBB0_2:
	bl	_rcu_read_unlock
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19]
	ldr	x0, [x8]
	add	x21, x20, #8
	mov	x1, x21
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x21
	mov	w2, #2
	bl	_memcpy
	ldr	w8, [x20, #8]
	ldr	x9, [x22, #8]
	str	w8, [x9]
	ldr	w8, [x20, #12]
	mov	w10, #32
	stp	w8, w10, [x9, #4]
Lloh6:
	adrp	x8, _IEEE80211_COUNTRY_STRING_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_COUNTRY_STRING_LEN@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	sub	w2, w23, w8
	asr	w9, w2, #2
	str	w9, [x22, #16]
	ldr	x0, [x22, #24]
	add	x1, x21, x8, lsl #2
	bl	_memcpy
	bl	_rcu_read_unlock
Lloh9:
	adrp	x8, _HostCmd_CMD_802_11D_DOMAIN_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HostCmd_CMD_802_11D_DOMAIN_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_4
LBB0_8:
	bl	_rcu_read_unlock
	ldr	x0, [x19]
Lloh20:
	adrp	x8, _INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_mwifiex_dnld_txpwr_table
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_COUNTRY,4,2           ; @WLAN_EID_COUNTRY
	.comm	_IEEE80211_COUNTRY_IE_MIN_LEN,4,2 ; @IEEE80211_COUNTRY_IE_MIN_LEN
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"11D: skip setting domain info in FW\n"

	.comm	_IEEE80211_COUNTRY_STRING_LEN,4,2 ; @IEEE80211_COUNTRY_STRING_LEN
	.comm	_HostCmd_CMD_802_11D_DOMAIN_INFO,4,2 ; @HostCmd_CMD_802_11D_DOMAIN_INFO
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"11D: setting domain info in FW fail\n"

	.no_dead_strip	_mwifiex_process_country_ie
.subsections_via_symbols
