	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_check_ccmp_pn
_mt76_check_ccmp_pn:                    ## @mt76_check_ccmp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movl	(%rbx), %eax
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.1:
	movq	24(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.2:
	cmpl	$0, 8(%r13)
	je	LBB0_10
## %bb.3:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	movl	16(%rbx), %edi
	movq	(%r13), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	movq	(%r13), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	16(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.9:
	movq	_RX_FLAG_PN_VALIDATED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_ieee80211_is_frag
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	callq	_ieee80211_is_first_frag
	testl	%eax, %eax
	jne	LBB0_6
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RX_FLAG_PN_VALIDATED,4,2       ## @RX_FLAG_PN_VALIDATED
	.no_dead_strip	_mt76_check_ccmp_pn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_check_ccmp_pn
_mt76_check_ccmp_pn:                    ; @mt76_check_ccmp_pn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0, #8]
	ldr	x21, [x20, #24]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_7
; %bb.1:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_7
; %bb.2:
Lloh3:
	adrp	x22, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_3:
	mov	w0, #0
	bl	_BUILD_BUG_ON
	ldr	w0, [x20, #16]
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	w2, #4
	bl	_memcmp
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x20, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh8:
	adrp	x9, _RX_FLAG_PN_VALIDATED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RX_FLAG_PN_VALIDATED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x19, [x0]
	mov	x0, x19
	bl	_ieee80211_is_frag
	cbz	x0, LBB0_3
; %bb.10:
	ldr	w0, [x19]
	bl	_ieee80211_is_first_frag
	cbnz	w0, LBB0_3
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RX_FLAG_PN_VALIDATED,4,2       ; @RX_FLAG_PN_VALIDATED
	.no_dead_strip	_mt76_check_ccmp_pn
.subsections_via_symbols
