	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccm_aes_nx_set_key
_ccm_aes_nx_set_key:                    ## @ccm_aes_nx_set_key
	.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	%edx, %r13d
	movq	%rsi, %r14
	callq	_crypto_tfm_ctx
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	24(%rax), %r12
	movq	_HCOP_FC_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nx_ctx_init
	cmpl	$128, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_NX_KS_AES_128@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_NX_CPB_SET_KEY_SIZE
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_NX_CPB_SET_KEY_SIZE
	movq	_NX_PROPS_AES_128@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_NX_MODE_AES_CCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	movq	%r14, %rsi
	movl	$128, %edx
	callq	_memcpy
	movq	_NX_MODE_AES_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	$128, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCOP_FC_AES,4,2                ## @HCOP_FC_AES
	.comm	_NX_KS_AES_128,4,2              ## @NX_KS_AES_128
	.comm	_NX_PROPS_AES_128,8,3           ## @NX_PROPS_AES_128
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NX_MODE_AES_CCM,4,2            ## @NX_MODE_AES_CCM
	.comm	_NX_MODE_AES_CCA,4,2            ## @NX_MODE_AES_CCA
	.no_dead_strip	_ccm_aes_nx_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccm_aes_nx_set_key
_ccm_aes_nx_set_key:                    ; @ccm_aes_nx_set_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x19, x1
	bl	_crypto_tfm_ctx
	mov	x22, x0
	ldp	x20, x21, [x0, #16]
Lloh0:
	adrp	x8, _HCOP_FC_AES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCOP_FC_AES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nx_ctx_init
	cmp	w23, #128
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x23, _NX_KS_AES_128@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NX_KS_AES_128@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_NX_CPB_SET_KEY_SIZE
	ldr	w1, [x23]
	mov	x0, x20
	bl	_NX_CPB_SET_KEY_SIZE
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _NX_PROPS_AES_128@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NX_PROPS_AES_128@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x22, #8]
Lloh8:
	adrp	x8, _NX_MODE_AES_CCM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NX_MODE_AES_CCM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	w0, [x21, #8]
	mov	x1, x19
	mov	w2, #128
	bl	_memcpy
Lloh11:
	adrp	x8, _NX_MODE_AES_CCA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NX_MODE_AES_CCA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #128
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HCOP_FC_AES,4,2                ; @HCOP_FC_AES
	.comm	_NX_KS_AES_128,4,2              ; @NX_KS_AES_128
	.comm	_NX_PROPS_AES_128,8,3           ; @NX_PROPS_AES_128
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NX_MODE_AES_CCM,4,2            ; @NX_MODE_AES_CCM
	.comm	_NX_MODE_AES_CCA,4,2            ; @NX_MODE_AES_CCA
	.no_dead_strip	_ccm_aes_nx_set_key
.subsections_via_symbols
