	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_wcid_key_setup            ## -- Begin function mt76_wcid_key_setup
	.p2align	4, 0x90
_mt76_wcid_key_setup:                   ## @mt76_wcid_key_setup
	.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
	movl	$0, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r15
	movq	(%rdx), %rax
	movq	_WLAN_CIPHER_SUITE_CCMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rsi, %r14
	movl	$1, (%rsi)
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ieee80211_get_key_rx_seq
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	-48(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CIPHER_SUITE_CCMP,8,3     ## @WLAN_CIPHER_SUITE_CCMP
	.comm	_IEEE80211_NUM_TIDS,4,2         ## @IEEE80211_NUM_TIDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_wcid_key_setup            ; -- Begin function mt76_wcid_key_setup
	.p2align	2
_mt76_wcid_key_setup:                   ; @mt76_wcid_key_setup
	.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
	str	wzr, [x1]
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _WLAN_CIPHER_SUITE_CCMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_CCMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x1
	mov	w8, #1
	str	w8, [x1]
Lloh3:
	adrp	x22, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_ieee80211_get_key_rx_seq
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [sp, #8]
	mov	w2, #4
	bl	_memcpy
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CIPHER_SUITE_CCMP,8,3     ; @WLAN_CIPHER_SUITE_CCMP
	.comm	_IEEE80211_NUM_TIDS,4,2         ; @IEEE80211_NUM_TIDS
.subsections_via_symbols
