	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_connect_ap_mode_sta     ## -- Begin function ath6kl_connect_ap_mode_sta
	.p2align	4, 0x90
_ath6kl_connect_ap_mode_sta:            ## @ath6kl_connect_ap_mode_sta
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movslq	16(%rbp), %rbx
	movl	32(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r15
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_ath6kl_dbg
	xorl	%r11d, %r11d
	movl	$0, %r14d
	movl	$0, %ecx
	movl	$0, %r8d
	cmpq	$5, %rbx
	jb	LBB0_30
## %bb.1:
	movl	16(%r15), %edi
	callq	_ieee80211_is_assoc_req
	cmpl	$12, %ebx
	jb	LBB0_4
## %bb.2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	8(%r15), %rdx
	jmp	LBB0_6
LBB0_4:
	movl	16(%r15), %edi
	callq	_ieee80211_is_reassoc_req
	xorl	%r11d, %r11d
	cmpl	$12, %ebx
	jb	LBB0_27
## %bb.5:
	movq	%r15, %rdx
	movl	$0, %r14d
	movl	$0, %ecx
	movl	$0, %r8d
	testq	%rax, %rax
	je	LBB0_30
LBB0_6:
	movq	(%rdx), %r11
	leaq	(%r15,%rbx,4), %r10
	movq	%r10, %rax
	subq	%r11, %rax
	movq	%rax, %r14
	sarq	$2, %r14
	xorl	%ecx, %ecx
	testq	%r11, %r11
	je	LBB0_29
## %bb.7:
	cmpq	$5, %rax
	jl	LBB0_29
## %bb.8:
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	movq	%r11, %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rcx,%rsi,4), %rcx
	addq	$12, %rcx
	movq	%rbx, %rax
	cmpq	%r10, %rcx
	jae	LBB0_25
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rcx
	movslq	4(%rdi), %rsi
	leaq	(%rdi,%rsi,4), %rdi
	addq	$8, %rdi
	cmpq	%r10, %rdi
	ja	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rcx), %edx
	movq	%rcx, %rbx
	cmpl	%r9d, %edx
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r8d, %edx
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$4, %esi
	jl	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	8(%rcx), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$80, 12(%rcx)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$242, 16(%rcx)
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%rcx), %edx
	movq	%rcx, %rbx
	cmpl	$1, %edx
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$4, %edx
	jne	LBB0_9
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$68, %edx
	jne	LBB0_9
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_26
LBB0_24:
	movq	%rax, %rbx
LBB0_25:
	movq	%rbx, %rcx
	testq	%rbx, %rbx
	je	LBB0_28
LBB0_26:
	movl	4(%rcx), %r8d
	addl	$2, %r8d
	jmp	LBB0_30
LBB0_27:
	xorl	%r14d, %r14d
LBB0_28:
	xorl	%ecx, %ecx
LBB0_29:
	xorl	%r8d, %r8d
LBB0_30:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r11, %r14
	subq	$8, %rsp
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_ath6kl_add_new_sta
	addq	$32, %rsp
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	%rax, %rbx
	movq	%r14, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	(%r12), %edi
	movl	(%r15), %ecx
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_cfg80211_new_sta
	movl	(%r12), %edi
	callq	_netif_wake_queue
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_32:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new station %pM aid=%d\n"

	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_connect_ap_mode_sta     ; -- Begin function ath6kl_connect_ap_mode_sta
	.p2align	2
_ath6kl_connect_ap_mode_sta:            ; @ath6kl_connect_ap_mode_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x7
	mov	x26, x6
	mov	x21, x5
	mov	x23, x4
	mov	x27, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w22, [x29, #16]
Lloh0:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	bl	_ath6kl_dbg
	cmp	w26, #5
	b.lo	LBB0_4
; %bb.1:
	ldr	w0, [x25, #16]
	bl	_ieee80211_is_assoc_req
	cmp	w26, #12
	b.lo	LBB0_9
; %bb.2:
	cbz	x0, LBB0_9
; %bb.3:
	add	x8, x25, #8
	mov	x7, x21
	mov	x6, x23
	mov	x5, x27
	mov	x16, x22
	b	LBB0_11
LBB0_4:
	mov	x28, #0
	mov	x17, #0
	mov	x3, #0
	mov	w4, #0
LBB0_5:
	mov	x7, x21
	mov	x6, x23
	mov	x5, x27
	mov	x16, x22
LBB0_6:
	mov	x22, x17
	str	w16, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_ath6kl_add_new_sta
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x21, x0
	stp	x28, x22, [x0]
	ldr	w0, [x19]
	ldr	w3, [x23]
	mov	x1, x20
	mov	x2, x21
	bl	_cfg80211_new_sta
	ldr	w0, [x19]
	bl	_netif_wake_queue
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kfree
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w0, [x25, #16]
	bl	_ieee80211_is_reassoc_req
	mov	w4, #0
	mov	x28, #0
	cmp	w26, #12
	b.lo	LBB0_28
; %bb.10:
	mov	x8, x25
	mov	x17, x28
	mov	x3, x28
	mov	x7, x21
	mov	x6, x23
	mov	x5, x27
	mov	x16, x22
	cbz	x0, LBB0_6
LBB0_11:
	mov	w4, #0
	mov	x3, #0
	sxtw	x9, w26
	ldr	x28, [x8]
	add	x8, x25, x9, lsl #2
	sub	x9, x8, x28
	asr	x17, x9, #2
	cbz	x28, LBB0_6
; %bb.12:
	cmp	x9, #5
	b.lt	LBB0_6
; %bb.13:
	mov	x11, #0
Lloh7:
	adrp	x9, _WLAN_EID_RSN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	mov	x3, x28
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w13, #68
	ccmp	x11, #0, #0, eq
	mov	x14, x11
	b.eq	LBB0_27
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w11, w12, #2
	add	x3, x3, w11, sxtw #2
	add	x12, x3, #4
	mov	x11, x14
	cmp	x12, x8
	b.hs	LBB0_26
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x15, x3, #8
	ldrsw	x12, [x3, #4]
	add	x13, x15, x12, lsl #2
	cmp	x13, x8
	b.hi	LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w13, [x3]
	mov	x14, x3
	cmp	w13, w9
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w13, w10
	ccmp	w12, #4, #8, eq
	b.lt	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w14, [x15]
	cbnz	w14, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w14, [x3, #12]
	cmp	w14, #80
	b.ne	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w14, [x3, #16]
	cmp	w14, #242
	b.ne	LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w13, [x3, #20]
	mov	x14, x3
	cmp	w13, #1
	b.eq	LBB0_15
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w13, #4
	b.eq	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x14, x11
	b	LBB0_15
LBB0_25:
	mov	x14, x11
LBB0_26:
	mov	x3, x14
	cbz	x14, LBB0_29
LBB0_27:
	ldr	w8, [x3, #4]
	add	w4, w8, #2
	b	LBB0_6
LBB0_28:
	mov	x17, x28
	mov	x3, x28
	b	LBB0_5
LBB0_29:
	mov	w4, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new station %pM aid=%d\n"

	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
