	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_reserve_key_cache_slot
_ath_reserve_key_cache_slot:            ## @ath_reserve_key_cache_slot
	.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
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_reserve_key_cache_slot_tkip ## TAILCALL
LBB0_2:
	movq	_ATH_CRYPT_CAP_MIC_COMBINED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	4(%r14), %eax
	testl	%ecx, (%r14)
	jne	LBB0_6
## %bb.3:
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_23
LBB0_4:
	movl	(%r13), %ebx
	movl	$-1, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movl	4(%r14), %eax
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jge	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	64(%rbx), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_42
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	64(%rbx), %r15d
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_41
## %bb.12:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r14), %eax
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_43
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$64, %ebx
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %ecx
	addl	$64, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$32, %ebx
	jl	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %ecx
	leal	32(%rcx), %edx
	cmpl	%edx, %ebx
	jl	LBB0_13
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$96, %ebx
	jb	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	$96, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	incl	%ebx
	movl	4(%r14), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %ebx
	movq	_ATH_CRYPT_CAP_MIC_COMBINED@GOTPCREL(%rip), %r12
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %r13
	jge	LBB0_4
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	leal	32(%rbx), %r15d
	testq	%rax, %rax
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_42
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	64(%rbx), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_42
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	96(%rbx), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_42
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	64(%rbx), %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_43
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	64(%rbx), %r12d
	movl	8(%r14), %esi
	movl	%r12d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_43
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	96(%rbx), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_43
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r12d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	96(%rbx), %r13d
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_44
## %bb.35:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	96(%rbx), %r13d
	movl	8(%r14), %esi
	movl	%r13d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_44
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r13d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_22
## %bb.38:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_48
## %bb.39:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_48
## %bb.40:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r14), %esi
	movl	%r12d, %edi
	callq	_test_bit
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_22
	jmp	LBB0_43
LBB0_41:
	movl	%ebx, %r15d
	jmp	LBB0_43
LBB0_42:
	movl	%ebx, %r15d
	jmp	LBB0_43
LBB0_44:
	movl	%r12d, %r15d
	jmp	LBB0_43
LBB0_48:
	movl	%r13d, %r15d
LBB0_43:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ## @ATH_CRYPT_CAP_MIC_COMBINED
	.comm	_IEEE80211_WEP_NKID,4,2         ## @IEEE80211_WEP_NKID
	.no_dead_strip	_ath_reserve_key_cache_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_reserve_key_cache_slot
_ath_reserve_key_cache_slot:            ; @ath_reserve_key_cache_slot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath_reserve_key_cache_slot_tkip
LBB0_2:
Lloh3:
	adrp	x24, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh5:
	adrp	x25, _IEEE80211_WEP_NKID@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IEEE80211_WEP_NKID@GOTPAGEOFF]
	ldr	w21, [x25]
	ldp	w10, w8, [x19]
	tst	w9, w10
	b.ne	LBB0_4
	b	LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #4]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w21, w9, asr #1
	b.ge	LBB0_29
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w21, #64
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbnz	x0, LBB0_42
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w21, #64
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbnz	x0, LBB0_3
	b	LBB0_31
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #4]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	cmp	w21, w9, asr #2
	b.ge	LBB0_29
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	add	w20, w21, #32
	cbnz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbnz	x0, LBB0_42
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w0, w21, #64
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbnz	x0, LBB0_42
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w0, w21, #96
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbnz	x0, LBB0_42
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w21, #64
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	cbnz	x0, LBB0_45
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w21, #64
	ldr	w1, [x19, #8]
	mov	x0, x22
	bl	_test_bit
	cbnz	x0, LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w0, w21, #96
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbnz	x0, LBB0_31
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x22
	bl	_test_bit
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w21, #96
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	cbnz	x0, LBB0_43
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbnz	x0, LBB0_43
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w21, #96
	ldr	w1, [x19, #8]
	mov	x0, x23
	bl	_test_bit
	cbnz	x0, LBB0_43
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x23
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_test_bit
	cbnz	x0, LBB0_44
; %bb.27:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbnz	x0, LBB0_44
; %bb.28:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x22
	bl	_test_bit
	mov	x20, x23
	cbz	x0, LBB0_9
	b	LBB0_31
LBB0_29:
	ldr	w20, [x25]
	cmp	w20, w8
	b.lt	LBB0_35
LBB0_30:
	mov	w20, #-1
LBB0_31:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_32:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_test_bit
	cbz	x0, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x19, #4]
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_30
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, #64
	b.lt	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x25]
	add	w9, w9, #64
	cmp	w20, w9
	b.lt	LBB0_34
LBB0_37:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x19]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_32
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	cmp	w20, #32
	b.lt	LBB0_32
; %bb.39:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x25]
	add	w10, w9, #32
	cmp	w20, w10
	b.lt	LBB0_34
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=1
	cmp	w20, #96
	b.lo	LBB0_32
; %bb.41:                               ;   in Loop: Header=BB0_35 Depth=1
	add	w9, w9, #96
	cmp	w20, w9
	b.lt	LBB0_34
	b	LBB0_32
LBB0_42:
	mov	x20, x21
	b	LBB0_31
LBB0_43:
	mov	x20, x22
	b	LBB0_31
LBB0_44:
	mov	x20, x23
	b	LBB0_31
LBB0_45:
	add	w20, w21, #32
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ; @ATH_CRYPT_CAP_MIC_COMBINED
	.comm	_IEEE80211_WEP_NKID,4,2         ; @IEEE80211_WEP_NKID
	.no_dead_strip	_ath_reserve_key_cache_slot
.subsections_via_symbols
