	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcm_aes_nx_set_key
_gcm_aes_nx_set_key:                    ## @gcm_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	callq	_crypto_aead_ctx
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	24(%rax), %r13
	movq	_HCOP_FC_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nx_ctx_init
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.gcm_aes_nx_set_key(%rip), %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rax,8), %r14
	leaq	l_switch.table.gcm_aes_nx_set_key.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_NX_CPB_SET_KEY_SIZE
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_NX_CPB_SET_KEY_SIZE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_NX_MODE_AES_GCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	8(%r13), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_NX_MODE_AES_GCA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r12d, %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	$24, %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_GCM,4,2            ## @NX_MODE_AES_GCM
	.comm	_NX_MODE_AES_GCA,4,2            ## @NX_MODE_AES_GCA
	.no_dead_strip	_gcm_aes_nx_set_key
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.gcm_aes_nx_set_key
l_switch.table.gcm_aes_nx_set_key:
	.quad	_NX_KS_AES_256
	.quad	_NX_KS_AES_192
	.quad	_NX_KS_AES_128

	.p2align	3                               ## @switch.table.gcm_aes_nx_set_key.1
l_switch.table.gcm_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 gcm_aes_nx_set_key
_gcm_aes_nx_set_key:                    ; @gcm_aes_nx_set_key
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_crypto_aead_ctx
	mov	x23, x0
	ldp	x21, x22, [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.gcm_aes_nx_set_key@PAGE
Lloh4:
	add	x9, x9, l_switch.table.gcm_aes_nx_set_key@PAGEOFF
	ldr	x24, [x9, x8]
Lloh5:
	adrp	x9, l_switch.table.gcm_aes_nx_set_key.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.gcm_aes_nx_set_key.1@PAGEOFF
	ldr	x25, [x9, x8]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_NX_CPB_SET_KEY_SIZE
	ldr	w1, [x24]
	mov	x0, x21
	bl	_NX_CPB_SET_KEY_SIZE
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x8, x8, x9, lsl #2
	str	x8, [x23, #8]
Lloh7:
	adrp	x8, _NX_MODE_AES_GCM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NX_MODE_AES_GCM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	ldr	w0, [x22, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
Lloh10:
	adrp	x8, _NX_MODE_AES_GCA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NX_MODE_AES_GCA@GOTPAGEOFF]
Lloh12:
	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:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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_GCM,4,2            ; @NX_MODE_AES_GCM
	.comm	_NX_MODE_AES_GCA,4,2            ; @NX_MODE_AES_GCA
	.no_dead_strip	_gcm_aes_nx_set_key
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gcm_aes_nx_set_key
l_switch.table.gcm_aes_nx_set_key:
	.quad	_NX_KS_AES_256
	.quad	_NX_KS_AES_192
	.quad	_NX_KS_AES_128

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

.subsections_via_symbols
