	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_crypto_ccmp_test
_init_crypto_ccmp_test:                 ## @init_crypto_ccmp_test
	.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
	leaq	-136(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_ieee80211_crypto_attach
	movl	-80(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	%rbx, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_MSG_CRYPTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
LBB0_2:
	leaq	-72(%rbp), %rdi
	callq	_ieee80211_crypto_vattach
	movq	_ccmptests@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	movl	$0, %r13d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	(%r12), %rdi
	callq	_nitems
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_tests@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%r15d, %eax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	leaq	-72(%rbp), %rdi
	callq	_runtest
	addl	%eax, %r14d
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_printf
	leaq	-72(%rbp), %rdi
	callq	_ieee80211_crypto_vdetach
	leaq	-136(%rbp), %rdi
	callq	_ieee80211_crypto_detach
	xorl	%eax, %eax
	cmpl	%r13d, %r14d
	setne	%al
	negl	%eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ccmp"

	.comm	_debug,8,3                      ## @debug
	.comm	_IEEE80211_MSG_CRYPTO,4,2       ## @IEEE80211_MSG_CRYPTO
	.comm	_ccmptests,8,3                  ## @ccmptests
	.comm	_tests,4,2                      ## @tests
L_.str.1:                               ## @.str.1
	.asciz	"%u of %u 802.11i AES-CCMP test vectors passed\n"

	.no_dead_strip	_init_crypto_ccmp_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_crypto_ccmp_test
_init_crypto_ccmp_test:                 ; @init_crypto_ccmp_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	add	x19, sp, #64
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x20, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #64
	bl	_ieee80211_crypto_attach
	ldr	w0, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncpy
	stp	x20, x19, [sp, #40]
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _IEEE80211_MSG_CRYPTO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_MSG_CRYPTO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #32]
LBB0_2:
	add	x0, sp, #32
	bl	_ieee80211_crypto_vattach
Lloh8:
	adrp	x21, _ccmptests@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ccmptests@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
	mov	w19, #0
Lloh10:
	adrp	x24, _tests@GOTPAGE
Lloh11:
	ldr	x24, [x24, _tests@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_nitems
	add	x22, x22, #4
	cmp	x23, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	lsr	w8, w8, w23
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	ldr	x8, [x21]
	add	x1, x8, x22
	add	x0, sp, #32
	bl	_runtest
	add	w19, w19, w0
	b	LBB0_4
LBB0_7:
	mov	w19, #0
	mov	w20, #0
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_printf
	add	x0, sp, #32
	bl	_ieee80211_crypto_vdetach
	add	x0, sp, #64
	bl	_ieee80211_crypto_detach
	cmp	w19, w20
	csetm	w0, ne
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ccmp"

	.comm	_debug,8,3                      ; @debug
	.comm	_IEEE80211_MSG_CRYPTO,4,2       ; @IEEE80211_MSG_CRYPTO
	.comm	_ccmptests,8,3                  ; @ccmptests
	.comm	_tests,4,2                      ; @tests
l_.str.1:                               ; @.str.1
	.asciz	"%u of %u 802.11i AES-CCMP test vectors passed\n"

	.no_dead_strip	_init_crypto_ccmp_test
.subsections_via_symbols
