	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_connect_event           ## -- Begin function ath6kl_connect_event
	.p2align	4, 0x90
_ath6kl_connect_event:                  ## @ath6kl_connect_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	16(%rbp), %r10d
	movl	24(%rbp), %r11d
	movl	32(%rbp), %eax
	movq	56(%rdi), %r14
	pushq	40(%rbp)
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_ath6kl_cfg80211_connect_event
	addq	$32, %rsp
	movl	48(%rbx), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	%r15d, 44(%rbx)
	movq	(%rbx), %rax
	movq	_INFRA_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	8(%rbx), %esi
	movl	40(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_ath6kl_wmi_listeninterval_cmd
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ath6kl_check_ch_switch
LBB0_2:
	movl	36(%rbx), %edi
	callq	_netif_wake_queue
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	_CONNECT_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	36(%rbx), %edi
	callq	_netif_carrier_on
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_aggr_reset_state
	movq	$0, 16(%rbx)
	movq	(%rbx), %rax
	movq	_ADHOC_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.4:
	movl	24(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 16(%r14)
	movq	_ENDPOINT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_5:
	cmpl	$0, 4(%r14)
	je	LBB0_7
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CLEAR_BSSFILTER_ON_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	(%r14), %edi
	movl	8(%rbx), %esi
	movq	_CURRENT_BSS_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_bssfilter_cmd       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INFRA_NETWORK,8,3              ## @INFRA_NETWORK
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_CONNECT_PEND,4,2               ## @CONNECT_PEND
	.comm	_ADHOC_NETWORK,8,3              ## @ADHOC_NETWORK
	.comm	_ENDPOINT_2,4,2                 ## @ENDPOINT_2
	.comm	_CLEAR_BSSFILTER_ON_BEACON,4,2  ## @CLEAR_BSSFILTER_ON_BEACON
	.comm	_CURRENT_BSS_FILTER,4,2         ## @CURRENT_BSS_FILTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_connect_event           ; -- Begin function ath6kl_connect_event
	.p2align	2
_ath6kl_connect_event:                  ; @ath6kl_connect_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x29, #16]
	ldr	x9, [x29, #24]
	ldr	x20, [x0, #56]
	str	x9, [sp, #8]
	str	w8, [sp]
	bl	_ath6kl_cfg80211_connect_event
	ldr	w0, [x19, #48]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	str	w21, [x19, #44]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _INFRA_NETWORK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INFRA_NETWORK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	ldr	w2, [x19, #40]
	mov	w3, #0
	bl	_ath6kl_wmi_listeninterval_cmd
	mov	x0, x20
	mov	x1, x21
	bl	_ath6kl_check_ch_switch
LBB0_2:
	ldr	w0, [x19, #36]
	bl	_netif_wake_queue
	add	x22, x19, #32
	mov	x0, x22
	bl	_spin_lock_bh
Lloh3:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x19, #12
	mov	x1, x21
	bl	_set_bit
Lloh6:
	adrp	x8, _CONNECT_PEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONNECT_PEND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x19, #36]
	bl	_netif_carrier_on
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_aggr_reset_state
	str	xzr, [x19, #16]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ADHOC_NETWORK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADHOC_NETWORK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x20, #16]
Lloh12:
	adrp	x8, _ENDPOINT_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENDPOINT_2@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_5:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
; %bb.6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh15:
	adrp	x8, _CLEAR_BSSFILTER_ON_BEACON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLEAR_BSSFILTER_ON_BEACON@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _CURRENT_BSS_FILTER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CURRENT_BSS_FILTER@GOTPAGEOFF]
	ldr	w1, [x19, #8]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #0
	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
	add	sp, sp, #64
	b	_ath6kl_wmi_bssfilter_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INFRA_NETWORK,8,3              ; @INFRA_NETWORK
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_CONNECT_PEND,4,2               ; @CONNECT_PEND
	.comm	_ADHOC_NETWORK,8,3              ; @ADHOC_NETWORK
	.comm	_ENDPOINT_2,4,2                 ; @ENDPOINT_2
	.comm	_CLEAR_BSSFILTER_ON_BEACON,4,2  ; @CLEAR_BSSFILTER_ON_BEACON
	.comm	_CURRENT_BSS_FILTER,4,2         ; @CURRENT_BSS_FILTER
.subsections_via_symbols
