	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_connect
_mwifiex_cfg80211_connect:              ## @mwifiex_cfg80211_connect
	.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, %r12
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r14
	movq	24(%rax), %r15
	movq	%rax, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 48(%r14)
	je	LBB0_4
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	$0, (%r14)
LBB0_6:
	movq	_MWIFIEX_SURPRISE_REMOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_MWIFIEX_IS_CMD_TIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %ecx
	movq	8(%r12), %r8
	movl	4(%r12), %r9d
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r14, %rdi
	callq	_mwifiex_stop_bg_scan
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	40(%r14), %edi
	xorl	%esi, %esi
	callq	_cfg80211_sched_scan_stopped_rtnl
LBB0_13:
	movq	16(%r12), %rsi
	movq	8(%r12), %rdx
	movl	(%r12), %r9d
	movl	4(%r12), %ecx
	movl	32(%r14), %r8d
	movq	%r14, %rdi
	pushq	$0
	pushq	%r12
	callq	_mwifiex_cfg80211_assoc
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	movq	24(%r14), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	leaq	L_.str.5(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	16(%r14), %edi
	callq	_eth_zero_addr
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.15:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r15
	jmp	LBB0_21
LBB0_16:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_cfg80211_connect_result
	addq	$16, %rsp
	movq	24(%r14), %rdi
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	callq	_ISSUPP_TDLS_ENABLED
	testq	%rax, %rax
	je	LBB0_10
## %bb.17:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.18:
	movq	8(%r14), %rax
	movq	_MWIFIEX_BSS_TYPE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.19:
	movq	%r14, %rdi
	callq	_mwifiex_setup_auto_tdls_timer
	jmp	LBB0_10
LBB0_20:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
LBB0_21:
	callq	_cfg80211_connect_result
	addq	$16, %rsp
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: reject infra assoc request in non-STA role\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s: already connected\n"

	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_MWIFIEX_SURPRISE_REMOVED,4,2   ## @MWIFIEX_SURPRISE_REMOVED
	.comm	_MWIFIEX_IS_CMD_TIMEDOUT,4,2    ## @MWIFIEX_IS_CMD_TIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"%s: Ignore connection.\tCard removed or FW in bad state\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_INFO,4,2                       ## @INFO
L_.str.3:                               ## @.str.3
	.asciz	"info: Trying to associate to %.*s and bssid %pM\n"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MSG,4,2                        ## @MSG
L_.str.4:                               ## @.str.4
	.asciz	"info: associated to bssid %pM successfully\n"

	.comm	_MWIFIEX_BSS_TYPE_STA,8,3       ## @MWIFIEX_BSS_TYPE_STA
L_.str.5:                               ## @.str.5
	.asciz	"info: association to bssid %pM failed\n"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
	.no_dead_strip	_mwifiex_cfg80211_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_connect
_mwifiex_cfg80211_connect:              ; @mwifiex_cfg80211_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x22, x1
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
	ldr	x21, [x0, #24]
	bl	_GET_BSS_ROLE
Lloh0:
	adrp	x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
Lloh8:
	adrp	x8, _EALREADY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	str	wzr, [x19]
LBB0_6:
Lloh17:
	adrp	x8, _MWIFIEX_SURPRISE_REMOVED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWIFIEX_SURPRISE_REMOVED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x23, x21, #12
	mov	x1, x23
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _MWIFIEX_IS_CMD_TIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MWIFIEX_IS_CMD_TIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
Lloh28:
	adrp	x8, _EFAULT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh30:
	adrp	x8, _INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w3, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w9, [x20, #4]
	stp	x8, x9, [sp]
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
	mov	x0, x19
	bl	_mwifiex_stop_bg_scan
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x19, #40]
	mov	w1, #0
	bl	_cfg80211_sched_scan_stopped_rtnl
LBB0_13:
	ldp	x2, x1, [x20, #8]
	ldr	w4, [x19, #32]
	ldp	w5, w3, [x20]
	mov	x0, x19
	mov	x6, x20
	mov	w7, #0
	bl	_mwifiex_cfg80211_assoc
	cbz	w0, LBB0_16
; %bb.14:
	mov	x20, x0
	ldr	x0, [x19, #24]
Lloh35:
	adrp	x8, _ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh38:
	adrp	x2, l_.str.5@PAGE
Lloh39:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_mwifiex_dbg
	ldr	w0, [x19, #16]
	bl	_eth_zero_addr
	ldp	w1, w0, [x19, #16]
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.15:
Lloh40:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh42:
	ldr	w7, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x20
	b	LBB0_21
LBB0_16:
	ldp	w1, w0, [x19, #16]
Lloh43:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
Lloh45:
	ldr	w6, [x8]
Lloh46:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh48:
	ldr	w7, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cfg80211_connect_result
	ldr	x0, [x19, #24]
Lloh49:
	adrp	x8, _MSG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh52:
	adrp	x2, l_.str.4@PAGE
Lloh53:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_ISSUPP_TDLS_ENABLED
	cbz	x0, LBB0_10
; %bb.17:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.18:
	ldr	x8, [x19, #8]
Lloh54:
	adrp	x9, _MWIFIEX_BSS_TYPE_STA@GOTPAGE
Lloh55:
	ldr	x9, [x9, _MWIFIEX_BSS_TYPE_STA@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.19:
	mov	x0, x19
	bl	_mwifiex_setup_auto_tdls_timer
	b	LBB0_22
LBB0_20:
Lloh57:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
Lloh59:
	ldr	w6, [x8]
Lloh60:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh62:
	ldr	w7, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
LBB0_21:
	bl	_cfg80211_connect_result
LBB0_22:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: reject infra assoc request in non-STA role\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s: already connected\n"

	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_MWIFIEX_SURPRISE_REMOVED,4,2   ; @MWIFIEX_SURPRISE_REMOVED
	.comm	_MWIFIEX_IS_CMD_TIMEDOUT,4,2    ; @MWIFIEX_IS_CMD_TIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"%s: Ignore connection.\tCard removed or FW in bad state\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_INFO,4,2                       ; @INFO
l_.str.3:                               ; @.str.3
	.asciz	"info: Trying to associate to %.*s and bssid %pM\n"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MSG,4,2                        ; @MSG
l_.str.4:                               ; @.str.4
	.asciz	"info: associated to bssid %pM successfully\n"

	.comm	_MWIFIEX_BSS_TYPE_STA,8,3       ; @MWIFIEX_BSS_TYPE_STA
l_.str.5:                               ; @.str.5
	.asciz	"info: association to bssid %pM failed\n"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
	.no_dead_strip	_mwifiex_cfg80211_connect
.subsections_via_symbols
