	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_sync_pn       ## -- Begin function mt76x02_mac_wcid_sync_pn
	.p2align	4, 0x90
_mt76x02_mac_wcid_sync_pn:              ## @mt76x02_mac_wcid_sync_pn
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-176(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_mt76x02_mac_get_key_info
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_MT_WCID_IV
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mt76_rr
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_MT_WCID_IV
	leaq	4(%rax), %rsi
	movq	%r13, %rdi
	callq	_mt76_rr
	shll	$16, %eax
	movq	_MT_CIPHER_TKIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	shll	$8, %r12d
	movzwl	%r12w, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	jmp	LBB0_4
LBB0_2:
	movq	_MT_CIPHER_AES_CCMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jb	LBB0_5
## %bb.3:
	movzwl	%r12w, %ecx
	orl	%ecx, %eax
	movl	%eax, %esi
LBB0_4:
	movq	%r14, %rdi
	callq	_atomic64_set
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_CIPHER_TKIP,4,2             ## @MT_CIPHER_TKIP
	.comm	_MT_CIPHER_AES_CCMP,4,2         ## @MT_CIPHER_AES_CCMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_wcid_sync_pn       ; -- Begin function mt76x02_mac_wcid_sync_pn
	.p2align	2
_mt76x02_mac_wcid_sync_pn:              ; @mt76x02_mac_wcid_sync_pn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x1, sp, #8
	mov	x0, x2
	bl	_mt76x02_mac_get_key_info
	mov	x20, x0
	mov	x0, x22
	bl	_MT_WCID_IV
	mov	x1, x0
	mov	x0, x23
	bl	_mt76_rr
	mov	x21, x0
	mov	x0, x22
	bl	_MT_WCID_IV
	add	x1, x0, #4
	mov	x0, x23
	bl	_mt76_rr
	lsl	w8, w0, #16
Lloh3:
	adrp	x9, _MT_CIPHER_TKIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_CIPHER_TKIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w20, w9
	b.ne	LBB0_2
; %bb.1:
	ubfx	w9, w21, #16, #8
	bfi	w9, w21, #8, #8
	orr	w1, w9, w8
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _MT_CIPHER_AES_CCMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT_CIPHER_AES_CCMP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w20, w9
	b.lo	LBB0_5
; %bb.3:
	and	w9, w21, #0xffff
	orr	w1, w8, w9
LBB0_4:
	mov	x0, x19
	bl	_atomic64_set
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_CIPHER_TKIP,4,2             ; @MT_CIPHER_TKIP
	.comm	_MT_CIPHER_AES_CCMP,4,2         ; @MT_CIPHER_AES_CCMP
.subsections_via_symbols
