	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_mlme_assoc          ## -- Begin function __cfg80211_mlme_assoc
	.p2align	4, 0x90
___cfg80211_mlme_assoc:                 ## @__cfg80211_mlme_assoc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_ASSERT_WDEV_LOCK
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movb	$1, %cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.3:
	movl	(%rax), %edi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	(%r15), %rax
	movq	_CFG80211_SME_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_CFG80211_SME_CONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_1:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	16(%rbp), %rbx
	leaq	8(%rbx), %rdi
	movl	4(%r14), %esi
	callq	_cfg80211_oper_and_ht_capa
	leaq	4(%rbx), %rdi
	movl	(%r14), %esi
	callq	_cfg80211_oper_and_vht_capa
	movq	_WLAN_CAPABILITY_ESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_cfg80211_get_bss
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_cfg80211_can_use_chan
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	16(%rbp), %r13
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_rdev_assoc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_16:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	_CFG80211_SME_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_18:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_cfg80211_put_bss
	jmp	LBB0_19
LBB0_7:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	_CFG80211_SME_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	cmpq	$0, 8(%r15)
	je	LBB0_6
LBB0_11:
	movq	_EALREADY@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG80211_SME_CONNECTED,8,3     ## @CFG80211_SME_CONNECTED
	.comm	_CFG80211_SME_CONNECTING,8,3    ## @CFG80211_SME_CONNECTING
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_WLAN_CAPABILITY_ESS,4,2        ## @WLAN_CAPABILITY_ESS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_mlme_assoc          ; -- Begin function __cfg80211_mlme_assoc
	.p2align	2
___cfg80211_mlme_assoc:                 ; @__cfg80211_mlme_assoc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x1]
	mov	x0, x20
	bl	_ASSERT_WDEV_LOCK
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_6
; %bb.2:
	ldr	w0, [x8]
	bl	_ether_addr_equal
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CFG80211_SME_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFG80211_SME_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	w27, #0
Lloh3:
	adrp	x8, _CFG80211_SME_CONNECTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG80211_SME_CONNECTING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EALREADY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
	mov	w27, #1
LBB0_8:
	add	x0, x19, #8
	ldr	w1, [x21, #4]
	bl	_cfg80211_oper_and_ht_capa
	add	x0, x19, #4
	ldr	w1, [x21]
	bl	_cfg80211_oper_and_vht_capa
Lloh8:
	adrp	x8, _WLAN_CAPABILITY_ESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_CAPABILITY_ESS@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x6, x5
	bl	_cfg80211_get_bss
	str	w0, [x19]
	cbz	w0, LBB0_14
; %bb.9:
Lloh11:
	adrp	x8, _CHAN_MODE_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHAN_MODE_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_cfg80211_can_use_chan
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_rdev_assoc
	mov	x23, x0
	cbz	w0, LBB0_18
LBB0_11:
	tbnz	w27, #0, LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _CFG80211_SME_CONNECTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CFG80211_SME_CONNECTED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_13:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_cfg80211_put_bss
	b	LBB0_18
LBB0_14:
	tbnz	w27, #0, LBB0_16
; %bb.15:
Lloh17:
	adrp	x8, _CFG80211_SME_CONNECTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFG80211_SME_CONNECTED@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_16:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG80211_SME_CONNECTED,8,3     ; @CFG80211_SME_CONNECTED
	.comm	_CFG80211_SME_CONNECTING,8,3    ; @CFG80211_SME_CONNECTING
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_WLAN_CAPABILITY_ESS,4,2        ; @WLAN_CAPABILITY_ESS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
.subsections_via_symbols
