	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_aes_ccm_decrypt      ## -- Begin function ieee80211_aes_ccm_decrypt
	.p2align	4, 0x90
_ieee80211_aes_ccm_decrypt:             ## @ieee80211_aes_ccm_decrypt
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rcx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%ecx, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r12d
	movslq	(%r15), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_2:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_aes_ccm_prepare
	testl	%r12d, %r12d
	jle	LBB0_28
## %bb.4:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %rax
	addq	%rcx, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rcx,4), %r15
	leaq	16(%rdx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	4(%rdx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$1, %edx
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	callq	_crypto_cipher_encrypt_one
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	leal	1(%rcx), %eax
	movq	%r14, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %ecx
	movl	%eax, %edx
	je	LBB0_28
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%ecx, %ecx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%eax, %ebx
	cmovnel	%ecx, %ebx
	cmpl	%r12d, %edx
	cmovnel	%eax, %ebx
	movzbl	%dh, %eax
	movq	%rdx, %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 56(%rdx)
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movzbl	%cl, %eax
	movl	%eax, 60(%rdx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_crypto_cipher_encrypt_one
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	cmpl	$8, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
	movq	%r13, %r14
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testb	$1, %al
	je	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %edx
	xorl	(%r12), %edx
	addq	$4, %r12
	movl	%edx, (%r14)
	addq	$4, %r14
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, (%rsi,%rcx,4)
	movq	%rcx, %rdx
	orq	$1, %rdx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	leaq	(%r15,%rax,4), %rdi
	leaq	(%r12,%rax,4), %rbx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	leaq	(%r8,%rax,4), %rdx
	cmpq	%rdi, %r13
	setb	-43(%rbp)                       ## 1-byte Folded Spill
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	cmpq	%rsi, %r9
	setb	%r10b
	cmpq	%rbx, %r13
	setb	%cl
	cmpq	%rsi, %r12
	setb	-42(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rdx, %r13
	setb	%r14b
	cmpq	%r8, %rsi
	seta	-41(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rbx, %r9
	setb	%r11b
	cmpq	%rdi, %r12
	setb	%r12b
	cmpq	%rdx, %r9
	setb	%sil
	cmpq	%r8, %rdi
	seta	%dl
	testb	%r10b, -43(%rbp)                ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	andb	-42(%rbp), %cl                  ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	andb	-41(%rbp), %r14b                ## 1-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	andb	%r12b, %r11b
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	andb	%dl, %sil
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	(,%rcx,4), %r14
	addq	%r13, %r14
	leaq	(%rbx,%rcx,4), %r12
	leaq	(,%rax,4), %rdx
	andq	$-32, %rdx
	xorl	%esi, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rbx,%rsi), %xmm0
	movups	16(%rbx,%rsi), %xmm1
	movups	-16(%rdi,%rsi), %xmm2
	xorps	%xmm0, %xmm2
	movups	(%rdi,%rsi), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r13,%rsi)
	movups	%xmm0, 16(%r13,%rsi)
	movups	(%r15,%rsi), %xmm1
	movups	16(%r15,%rsi), %xmm3
	xorps	%xmm2, %xmm1
	xorps	%xmm0, %xmm3
	movups	%xmm1, (%r15,%rsi)
	movups	%xmm3, 16(%r15,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %rcx
	movq	%r8, %rbx
	je	LBB0_6
	.p2align	4, 0x90
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %al
	jne	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rdx
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	notq	%rcx
	addq	%rax, %rcx
	je	LBB0_6
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	subq	%rdx, %rax
	leaq	(%r15,%rdx,4), %rsi
	addq	$4, %rsi
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdx,%rcx), %edi
	xorl	(%r12,%rcx), %edi
	movl	%edi, (%r14,%rcx)
	xorl	%edi, -4(%rsi,%rcx)
	movl	(%rdx,%rcx), %edi
	xorl	4(%r12,%rcx), %edi
	movl	%edi, 4(%r14,%rcx)
	xorl	%edi, (%rsi,%rcx)
	addq	$8, %rcx
	addq	$-2, %rax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%rcx, %r14
	addq	%rcx, %r12
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
	movq	%r13, %r14
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testb	$1, %al
	jne	LBB0_23
	jmp	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
	movq	%r13, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_28:
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_33
## %bb.29:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rcx
	xorl	%edx, %edx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	xorl	(%rdi,%rdx,4), %esi
	cmpl	(%rbx,%rdx,4), %esi
	jne	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_30
LBB0_33:
	xorl	%eax, %eax
	jmp	LBB0_35
LBB0_34:
	movl	$-1, %eax
LBB0_35:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_CCMP_MIC_LEN,4,2               ## @CCMP_MIC_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_aes_ccm_decrypt      ; -- Begin function ieee80211_aes_ccm_decrypt
	.p2align	2
_ieee80211_aes_ccm_decrypt:             ; @ieee80211_aes_ccm_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x28, x5
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x26, x0
Lloh0:
	adrp	x23, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldrsw	x1, [x23]
	add	x20, x24, x1, lsl #3
	mov	x0, x3
	str	x1, [sp]                        ; 8-byte Folded Spill
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DIV_ROUND_UP
	mov	x27, x0
	ldrsw	x23, [x23]
	mov	x0, x26
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	mov	x1, x24
	mov	x2, x20
	bl	_aes_ccm_prepare
	cmp	w27, #1
	b.lt	LBB0_18
; %bb.1:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	lsl	x8, x9, #1
	add	w9, w9, w9, lsl #1
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x25, x10, w9, sxtw #2
	udiv	x9, x22, x23
	msub	w9, w9, w23, w22
	stp	w9, w27, [sp, #24]              ; 8-byte Folded Spill
	lsl	x22, x8, #2
	add	x8, x10, x22
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x8, x10, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w23, #1
	str	x26, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x21
	mov	x27, x28
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x24
	mov	x1, x20
	mov	x2, x20
	bl	_crypto_cipher_encrypt_one
	add	w8, w23, #1
	mov	x28, x27
	mov	x21, x26
	mov	x26, x24
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w23, w27
	mov	x23, x8
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w9, #0
	ccmp	w23, w27, #0, ne
Lloh2:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	csel	w24, w9, w8, eq
	ubfx	w8, w23, #8, #8
	and	w9, w23, #0xff
	stp	w8, w9, [x25, #56]
	mov	x0, x26
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x25
	bl	_crypto_cipher_encrypt_one
	cmp	w24, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #8
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x28
	mov	x26, x21
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x9, x9, x8, lsl #2
	sub	x8, x24, x8
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x26], #4
	ldr	w11, [x9]
	eor	w10, w11, w10
	str	w10, [x27], #4
	ldr	w11, [x9, x22]
	eor	w10, w11, w10
	str	w10, [x9, x22]
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_9
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	lsl	x10, x24, #2
	add	x13, x28, x10
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x14, x9, x10
	add	x11, x21, x10
	cmp	x28, x11
	ccmp	x21, x13, #2, lo
	cset	w9, lo
	ldr	x15, [sp, #40]                  ; 8-byte Folded Reload
	add	x12, x15, x10
	cmp	x28, x12
	ccmp	x13, x15, #0, lo
	cset	w10, hi
	cmp	x20, x11
	ccmp	x21, x14, #2, lo
	cset	w11, lo
	cmp	x20, x12
	ccmp	x14, x15, #0, lo
	cset	w12, hi
	cmp	x20, x13
	ccmp	x28, x14, #2, lo
	b.lo	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w10, #0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w11, #0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w12, #0, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x24, #0xfffffff8
	lsl	x9, x8, #2
	add	x27, x28, x9
	add	x26, x21, x9
	add	x9, x28, #16
	add	x10, x21, #16
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	mov	x12, x8
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x10, #-16]
	ldp	q2, q3, [x11, #-16]
	eor.16b	v4, v2, v0
	eor.16b	v5, v3, v1
	stp	q4, q5, [x9, #-16]
	add	x13, x11, x22
	ldp	q4, q5, [x13, #-16]
	eor3.16b	v0, v2, v0, v4
	eor3.16b	v1, v3, v1, v5
	stp	q0, q1, [x13, #-16]
	add	x11, x11, #32
	add	x9, x9, #32
	add	x10, x10, #32
	subs	x12, x12, #8
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x24
	b.eq	LBB0_3
	b	LBB0_8
LBB0_18:
Lloh5:
	adrp	x8, _CCMP_MIC_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CCMP_MIC_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.19:
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	add	x9, x9, x10, lsl #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19]
	ldr	w11, [x9]
	eor	w10, w11, w10
	ldr	w11, [x20]
	cmp	w10, w11
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x20, x20, #4
	add	x9, x9, #4
	add	x19, x19, #4
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_22:
	mov	w0, #0
	b	LBB0_24
LBB0_23:
	mov	w0, #-1
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_CCMP_MIC_LEN,4,2               ; @CCMP_MIC_LEN
.subsections_via_symbols
