	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_is_network_compatible
_mwifiex_is_network_compatible:         ## @mwifiex_is_network_compatible
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	$0, (%rsi)
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	cmpq	%rax, 8(%r15)
	je	LBB0_33
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movq	_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_6:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.7:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
LBB0_32:
	movl	$-1, %r12d
LBB0_33:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_wapi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_10:
	movl	$-1, %r12d
	cmpq	%r13, 8(%r15)
	jne	LBB0_33
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_no_sec
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_33
## %bb.12:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_static_wep
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_14:
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	movl	$1, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_wpa
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	_BAND_GN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_18
## %bb.17:
	movq	_BAND_AN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
LBB0_18:
	cmpq	$0, 16(%r15)
	je	LBB0_33
## %bb.19:
	movq	_CIPHER_SUITE_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mwifiex_is_wpa_oui_present
	testq	%rax, %rax
	jne	LBB0_33
## %bb.20:
	movq	_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mwifiex_is_wpa_oui_present
	jmp	LBB0_21
LBB0_23:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_wpa2
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	_BAND_GN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_26
## %bb.25:
	movq	_BAND_AN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
LBB0_26:
	cmpq	$0, 16(%r15)
	je	LBB0_33
## %bb.27:
	movq	_CIPHER_SUITE_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mwifiex_is_rsn_oui_present
	testq	%rax, %rax
	jne	LBB0_33
## %bb.28:
	movq	_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mwifiex_is_rsn_oui_present
LBB0_21:
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_33
## %bb.22:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_14
LBB0_29:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_adhoc_aes
	testq	%rax, %rax
	jne	LBB0_33
## %bb.30:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_is_bss_dynamic_wep
	movl	$0, %r12d
	testq	%rax, %rax
	jne	LBB0_33
## %bb.31:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_dbg_security_flags
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IOCTL,4,2                      ## @IOCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: return success directly in WPS period\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Don't connect to AP with WLAN_EID_CHANNEL_SWITCH\n"

L_.str.2:                               ## @.str.2
	.asciz	"info: return success for WAPI AP\n"

L_.str.3:                               ## @.str.3
	.asciz	"info: Disable 11n in WEP mode.\n"

	.comm	_BAND_GN,4,2                    ## @BAND_GN
	.comm	_BAND_AN,4,2                    ## @BAND_AN
	.comm	_CIPHER_SUITE_CCMP,4,2          ## @CIPHER_SUITE_CCMP
	.comm	_CIPHER_SUITE_TKIP,4,2          ## @CIPHER_SUITE_TKIP
L_.str.4:                               ## @.str.4
	.asciz	"info: Disable 11n if AES\tis not supported by AP\n"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.5:                               ## @.str.5
	.asciz	"failed"

	.no_dead_strip	_mwifiex_is_network_compatible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_is_network_compatible
_mwifiex_is_network_compatible:         ; @mwifiex_is_network_compatible
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	str	wzr, [x1]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _IOCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_mwifiex_dbg
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.8:
Lloh8:
	adrp	x8, _INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mwifiex_dbg
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_wapi
	cbz	x0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_13:
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.ne	LBB0_9
; %bb.14:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_no_sec
	cbnz	x0, LBB0_3
; %bb.15:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_static_wep
	cbz	x0, LBB0_18
; %bb.16:
Lloh18:
	adrp	x8, _INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_mwifiex_dbg
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_18:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_wpa
	cbz	x0, LBB0_24
; %bb.19:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _BAND_GN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BAND_GN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.20:
Lloh26:
	adrp	x9, _BAND_AN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BAND_AN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_21:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.22:
Lloh29:
	adrp	x8, _CIPHER_SUITE_CCMP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CIPHER_SUITE_CCMP@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mwifiex_is_wpa_oui_present
	cbnz	x0, LBB0_3
; %bb.23:
Lloh32:
	adrp	x8, _CIPHER_SUITE_TKIP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mwifiex_is_wpa_oui_present
	cbnz	x0, LBB0_30
	b	LBB0_9
LBB0_24:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_wpa2
	cbz	x0, LBB0_31
; %bb.25:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _BAND_GN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BAND_GN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.26:
Lloh38:
	adrp	x9, _BAND_AN@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BAND_AN@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_27:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.28:
Lloh41:
	adrp	x8, _CIPHER_SUITE_CCMP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CIPHER_SUITE_CCMP@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mwifiex_is_rsn_oui_present
	cbnz	x0, LBB0_3
; %bb.29:
Lloh44:
	adrp	x8, _CIPHER_SUITE_TKIP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mwifiex_is_rsn_oui_present
	cbz	x0, LBB0_9
LBB0_30:
Lloh47:
	adrp	x8, _INFO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.4@PAGE
Lloh51:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_31:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_adhoc_aes
	cbnz	x0, LBB0_3
; %bb.32:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_is_bss_dynamic_wep
	cbnz	x0, LBB0_3
; %bb.33:
Lloh52:
	adrp	x8, _ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_dbg_security_flags
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IOCTL,4,2                      ; @IOCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: return success directly in WPS period\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Don't connect to AP with WLAN_EID_CHANNEL_SWITCH\n"

l_.str.2:                               ; @.str.2
	.asciz	"info: return success for WAPI AP\n"

l_.str.3:                               ; @.str.3
	.asciz	"info: Disable 11n in WEP mode.\n"

	.comm	_BAND_GN,4,2                    ; @BAND_GN
	.comm	_BAND_AN,4,2                    ; @BAND_AN
	.comm	_CIPHER_SUITE_CCMP,4,2          ; @CIPHER_SUITE_CCMP
	.comm	_CIPHER_SUITE_TKIP,4,2          ; @CIPHER_SUITE_TKIP
l_.str.4:                               ; @.str.4
	.asciz	"info: Disable 11n if AES\tis not supported by AP\n"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.5:                               ; @.str.5
	.asciz	"failed"

	.no_dead_strip	_mwifiex_is_network_compatible
.subsections_via_symbols
