	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_sta_add
_mwl8k_sta_add:                         ## @mwl8k_sta_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_MWL8K_VIF
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	je	LBB0_8
## %bb.1:
	movq	%r15, %r12
	movq	%r15, %rdx
	callq	_mwl8k_cmd_set_new_stn_add
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
LBB0_8:
	movq	%r15, %rdx
	callq	_mwl8k_cmd_update_stadb_add
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_MWL8K_STA
	movl	%r14d, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.10:
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_MWL8K_STA
	movl	$1, 4(%rax)
	jmp	LBB0_2
LBB0_11:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_12:
	movq	%r15, %r12
LBB0_2:
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	8(%rax,%r14), %edi
	callq	_IEEE80211_KEY_CONF
	movq	(%rbx), %rcx
	cmpq	$0, (%rcx,%r14)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SET_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_mwl8k_set_key
	jmp	LBB0_4
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_WEP_KEYS,4,2               ## @NUM_WEP_KEYS
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.no_dead_strip	_mwl8k_sta_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_sta_add
_mwl8k_sta_add:                         ; @mwl8k_sta_add
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	mov	x0, x1
	bl	_MWL8K_VIF
	mov	x22, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mwl8k_cmd_set_new_stn_add
	mov	x23, x0
LBB0_2:
Lloh0:
	adrp	x24, _NUM_WEP_KEYS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_WEP_KEYS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x27, _SET_KEY@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SET_KEY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x25
	ldr	w0, [x8, #8]
	bl	_IEEE80211_KEY_CONF
	ldr	x8, [x22]
	ldr	x8, [x8, x25]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x4, x0
	ldr	w1, [x27]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mwl8k_set_key
	b	LBB0_4
LBB0_7:
	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
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mwl8k_cmd_update_stadb_add
	mov	x23, x0
	tbnz	w0, #31, LBB0_2
; %bb.9:
	mov	x0, x19
	bl	_MWL8K_STA
	str	w23, [x0]
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_MWL8K_STA
	mov	w23, #0
	mov	w8, #1
	str	w8, [x0, #4]
	b	LBB0_2
LBB0_11:
	mov	w23, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_WEP_KEYS,4,2               ; @NUM_WEP_KEYS
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.no_dead_strip	_mwl8k_sta_add
.subsections_via_symbols
