	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_associated
_ieee80211_set_associated:              ## @ieee80211_set_associated
	.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
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movq	112(%rdi), %r14
	movl	60(%rdi), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_ieee80211_handle_bss_capability
	movl	%eax, %r15d
	orl	%r13d, %r15d
	movq	_beacon_loss_count@GOTPCREL(%rip), %rax
	movl	24(%rbx), %edi
	imull	(%rax), %edi
	callq	_ieee80211_tu_to_usec
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movl	%eax, 104(%rbx)
	movq	%r12, 96(%rbx)
	movl	88(%rbx), %edi
	movl	4(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_IEEE80211_STA_RESET_SIGNAL_AVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 84(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r12), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_IEEE80211_P2P_ATTR_ABSENCE_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	56(%rbx), %rcx
	movl	$4, %r8d
	callq	_cfg80211_get_p2p_attr
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	movl	56(%rbx), %eax
	movl	%eax, 80(%rbx)
	movq	_BSS_CHANGED_P2P_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_4:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_5:
	movq	%rbx, %rdi
	callq	_ieee80211_stop_poll
	movl	$1, %r12d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ieee80211_led_assoc
	movq	72(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	cmovel	%r12d, %eax
	movq	_BSS_CHANGED_DTIM_PERIOD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, 28(%rbx)
	movl	$1, 32(%rbx)
	movq	_IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_11
## %bb.9:
	cmpq	$0, 48(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_BSS_CHANGED_CQM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_11:
	xorl	%esi, %esi
	cmpq	$0, 40(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_BSS_CHANGED_ARP_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	orl	%r15d, %esi
	movq	%rbx, %rdi
	callq	_ieee80211_bss_info_change_notify
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ieee80211_recalc_ps
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_ieee80211_recalc_smps
	movq	%rbx, %rdi
	callq	_ieee80211_recalc_ps_vif
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_beacon_loss_count,4,2          ## @beacon_loss_count
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IEEE80211_STA_RESET_SIGNAL_AVE,4,2 ## @IEEE80211_STA_RESET_SIGNAL_AVE
	.comm	_IEEE80211_P2P_ATTR_ABSENCE_NOTICE,4,2 ## @IEEE80211_P2P_ATTR_ABSENCE_NOTICE
	.comm	_BSS_CHANGED_P2P_PS,4,2         ## @BSS_CHANGED_P2P_PS
	.comm	_BSS_CHANGED_DTIM_PERIOD,4,2    ## @BSS_CHANGED_DTIM_PERIOD
	.comm	_IEEE80211_VIF_SUPPORTS_CQM_RSSI,4,2 ## @IEEE80211_VIF_SUPPORTS_CQM_RSSI
	.comm	_BSS_CHANGED_CQM,4,2            ## @BSS_CHANGED_CQM
	.comm	_BSS_CHANGED_ARP_FILTER,4,2     ## @BSS_CHANGED_ARP_FILTER
	.no_dead_strip	_ieee80211_set_associated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_associated
_ieee80211_set_associated:              ; @ieee80211_set_associated
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
	ldr	x20, [x0, #112]
Lloh2:
	ldr	w9, [x9]
	orr	w22, w9, w2
	ldr	w1, [x0, #60]
	ldp	w3, w2, [x8]
	bl	_ieee80211_handle_bss_capability
	orr	w22, w22, w0
Lloh3:
	adrp	x8, _beacon_loss_count@GOTPAGE
Lloh4:
	ldr	x8, [x8, _beacon_loss_count@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	mul	w0, w9, w8
	bl	_ieee80211_tu_to_usec
	bl	_usecs_to_jiffies
	str	w0, [x19, #104]
	str	x21, [x19, #96]
	ldr	w0, [x19, #88]
	ldr	w1, [x21, #4]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
Lloh9:
	adrp	x8, _IEEE80211_STA_RESET_SIGNAL_AVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_STA_RESET_SIGNAL_AVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #84]
	orr	w8, w9, w8
	str	w8, [x19, #84]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.1:
	bl	_rcu_read_lock
	ldr	w0, [x21]
	bl	_rcu_dereference
	cbz	x0, LBB0_4
; %bb.2:
	ldp	w1, w8, [x0]
Lloh12:
	adrp	x9, _IEEE80211_P2P_ATTR_ABSENCE_NOTICE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_P2P_ATTR_ABSENCE_NOTICE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	add	x3, x19, #56
	mov	x0, x8
	mov	w4, #4
	bl	_cfg80211_get_p2p_attr
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x19, #56]
	str	w8, [x19, #80]
Lloh15:
	adrp	x8, _BSS_CHANGED_P2P_PS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BSS_CHANGED_P2P_PS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_4:
	bl	_rcu_read_unlock
LBB0_5:
	mov	x0, x19
	bl	_ieee80211_stop_poll
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_ieee80211_led_assoc
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #64]
	cmp	x8, #0
	csinc	w8, w8, wzr, ne
Lloh18:
	adrp	x9, _BSS_CHANGED_DTIM_PERIOD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BSS_CHANGED_DTIM_PERIOD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w22, w9, w22
LBB0_7:
	stp	w8, w21, [x19, #28]
	ldr	w8, [x19, #8]
Lloh21:
	adrp	x9, _IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_VIF_SUPPORTS_CQM_RSSI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.9:
Lloh24:
	adrp	x8, _BSS_CHANGED_CQM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BSS_CHANGED_CQM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_10:
	ldr	x8, [x19, #40]
Lloh27:
	adrp	x9, _BSS_CHANGED_ARP_FILTER@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BSS_CHANGED_ARP_FILTER@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w1, w8, w22
	mov	x0, x19
	bl	_ieee80211_bss_info_change_notify
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #-1
	bl	_ieee80211_recalc_ps
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_ieee80211_recalc_smps
	mov	x0, x19
	bl	_ieee80211_recalc_ps_vif
	ldr	w0, [x19]
	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
	b	_netif_carrier_on
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_beacon_loss_count,4,2          ; @beacon_loss_count
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IEEE80211_STA_RESET_SIGNAL_AVE,4,2 ; @IEEE80211_STA_RESET_SIGNAL_AVE
	.comm	_IEEE80211_P2P_ATTR_ABSENCE_NOTICE,4,2 ; @IEEE80211_P2P_ATTR_ABSENCE_NOTICE
	.comm	_BSS_CHANGED_P2P_PS,4,2         ; @BSS_CHANGED_P2P_PS
	.comm	_BSS_CHANGED_DTIM_PERIOD,4,2    ; @BSS_CHANGED_DTIM_PERIOD
	.comm	_IEEE80211_VIF_SUPPORTS_CQM_RSSI,4,2 ; @IEEE80211_VIF_SUPPORTS_CQM_RSSI
	.comm	_BSS_CHANGED_CQM,4,2            ; @BSS_CHANGED_CQM
	.comm	_BSS_CHANGED_ARP_FILTER,4,2     ; @BSS_CHANGED_ARP_FILTER
	.no_dead_strip	_ieee80211_set_associated
.subsections_via_symbols
