	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbc_aes_nx_set_key
_cbc_aes_nx_set_key:                    ## @cbc_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, %r15d
	movq	%rsi, %r14
	callq	_crypto_tfm_ctx
	movq	%rax, %rbx
	movq	16(%rax), %r12
	movq	_HCOP_FC_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nx_ctx_init
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.cbc_aes_nx_set_key(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.cbc_aes_nx_set_key.1(%rip), %rdx
	movq	(%rdx,%rax,8), %r13
	movl	(%rcx), %esi
	movq	%r12, %rdi
	callq	_NX_CPB_SET_KEY_SIZE
	movq	(%r13), %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_NX_MODE_AES_CBC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	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	_NX_KS_AES_192,4,2              ## @NX_KS_AES_192
	.comm	_NX_PROPS_AES_192,8,3           ## @NX_PROPS_AES_192
	.comm	_NX_KS_AES_256,4,2              ## @NX_KS_AES_256
	.comm	_NX_PROPS_AES_256,8,3           ## @NX_PROPS_AES_256
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NX_MODE_AES_CBC,4,2            ## @NX_MODE_AES_CBC
	.no_dead_strip	_cbc_aes_nx_set_key
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cbc_aes_nx_set_key
l_switch.table.cbc_aes_nx_set_key:
	.quad	_NX_KS_AES_256
	.quad	_NX_KS_AES_192
	.quad	_NX_KS_AES_128

	.p2align	3                               ## @switch.table.cbc_aes_nx_set_key.1
l_switch.table.cbc_aes_nx_set_key.1:
	.quad	_NX_PROPS_AES_256
	.quad	_NX_PROPS_AES_192
	.quad	_NX_PROPS_AES_128

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbc_aes_nx_set_key
_cbc_aes_nx_set_key:                    ; @cbc_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	x19, x2
	mov	x20, x1
	bl	_crypto_tfm_ctx
	mov	x22, x0
	ldr	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
	sub	w8, w19, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x9, l_switch.table.cbc_aes_nx_set_key@PAGE
Lloh4:
	add	x9, x9, l_switch.table.cbc_aes_nx_set_key@PAGEOFF
	ldr	x9, [x9, x8]
Lloh5:
	adrp	x10, l_switch.table.cbc_aes_nx_set_key.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.cbc_aes_nx_set_key.1@PAGEOFF
	ldr	x23, [x10, x8]
	ldr	w1, [x9]
	mov	x0, x21
	bl	_NX_CPB_SET_KEY_SIZE
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #2
	str	x8, [x22, #8]
Lloh7:
	adrp	x8, _NX_MODE_AES_CBC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NX_MODE_AES_CBC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_NX_KS_AES_192,4,2              ; @NX_KS_AES_192
	.comm	_NX_PROPS_AES_192,8,3           ; @NX_PROPS_AES_192
	.comm	_NX_KS_AES_256,4,2              ; @NX_KS_AES_256
	.comm	_NX_PROPS_AES_256,8,3           ; @NX_PROPS_AES_256
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NX_MODE_AES_CBC,4,2            ; @NX_MODE_AES_CBC
	.no_dead_strip	_cbc_aes_nx_set_key
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cbc_aes_nx_set_key
l_switch.table.cbc_aes_nx_set_key:
	.quad	_NX_KS_AES_256
	.quad	_NX_KS_AES_192
	.quad	_NX_KS_AES_128

	.p2align	3                               ; @switch.table.cbc_aes_nx_set_key.1
l_switch.table.cbc_aes_nx_set_key.1:
	.quad	_NX_PROPS_AES_256
	.quad	_NX_PROPS_AES_192
	.quad	_NX_PROPS_AES_128

.subsections_via_symbols
