	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_install_static_wep_keys
_ath6kl_install_static_wep_keys:        ## @ath6kl_install_static_wep_keys
	.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
	movq	%rdi, %r14
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_WMI_MAX_KEY_INDEX@GOTPCREL(%rip), %r12
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TX_USAGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_GROUP_USAGE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %r8
	movq	24(%r14), %rcx
	movl	(%rcx), %edi
	movl	16(%r14), %esi
	movq	_WEP_CRYPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-8(%rax,%r15), %r10d
	movq	_KEY_OP_INIT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	(%r13), %eax
	movq	%rbx, %rdx
	pushq	%rax
	pushq	$0
	pushq	%r11
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_ath6kl_wmi_addkey_cmd
	addq	$48, %rsp
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$16, %r15
	cmpq	(%r12), %rbx
	ja	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r15), %r9
	testq	%r9, %r9
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r14), %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_MAX_KEY_INDEX,8,3          ## @WMI_MAX_KEY_INDEX
	.comm	_GROUP_USAGE,8,3                ## @GROUP_USAGE
	.comm	_TX_USAGE,8,3                   ## @TX_USAGE
	.comm	_WEP_CRYPT,4,2                  ## @WEP_CRYPT
	.comm	_KEY_OP_INIT_VAL,4,2            ## @KEY_OP_INIT_VAL
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_install_static_wep_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_install_static_wep_keys
_ath6kl_install_static_wep_keys:        ; @ath6kl_install_static_wep_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	mov	x21, #0
	mov	x20, #0
Lloh0:
	adrp	x22, _WMI_MAX_KEY_INDEX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WMI_MAX_KEY_INDEX@GOTPAGEOFF]
Lloh2:
	adrp	x23, _GROUP_USAGE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GROUP_USAGE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _TX_USAGE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TX_USAGE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _WEP_CRYPT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WEP_CRYPT@GOTPAGEOFF]
Lloh8:
	adrp	x26, _KEY_OP_INIT_VAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _KEY_OP_INIT_VAL@GOTPAGEOFF]
Lloh10:
	adrp	x27, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh11:
	ldr	x27, [x27, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldr	x8, [x22]
	add	x21, x21, #16
	cmp	x20, x8
	b.hi	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x21
	ldr	x5, [x9, #8]
	cbz	x5, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	ldr	x10, [x19]
	ldr	x11, [x24]
	cmp	x20, x10
	csel	x10, x11, xzr, eq
	orr	x4, x10, x9
	ldr	x9, [x19, #24]
	ldr	w0, [x9]
	ldr	w1, [x19, #16]
	ldr	w3, [x25]
	ldr	w8, [x8, x21]
	ldr	w9, [x26]
	ldr	w10, [x27]
	str	w10, [sp, #16]
	str	xzr, [sp, #8]
	stp	w8, w9, [sp]
	mov	x2, x20
	mov	x6, #0
	mov	w7, #0
	bl	_ath6kl_wmi_addkey_cmd
	b	LBB0_1
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_MAX_KEY_INDEX,8,3          ; @WMI_MAX_KEY_INDEX
	.comm	_GROUP_USAGE,8,3                ; @GROUP_USAGE
	.comm	_TX_USAGE,8,3                   ; @TX_USAGE
	.comm	_WEP_CRYPT,4,2                  ; @WEP_CRYPT
	.comm	_KEY_OP_INIT_VAL,4,2            ; @KEY_OP_INIT_VAL
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_install_static_wep_keys
.subsections_via_symbols
