	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p8_aes_setkey
_p8_aes_setkey:                         ## @p8_aes_setkey
	.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, %r14d
	movq	%rsi, %r15
	callq	_crypto_tfm_ctx
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_pagefault_disable
	xorl	%eax, %eax
	callq	_enable_kernel_vsx
	leal	(,%r14,8), %ebx
	leaq	8(%r12), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_aes_p8_set_encrypt_key
	movl	%eax, %r13d
	leaq	4(%r12), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_aes_p8_set_decrypt_key
	movl	%eax, %ebx
	orl	%r13d, %ebx
	xorl	%eax, %eax
	callq	_disable_kernel_vsx
	xorl	%eax, %eax
	callq	_pagefault_enable
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_crypto_cipher_setkey
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	orl	%ebx, %eax
	movl	$0, %eax
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_p8_aes_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p8_aes_setkey
_p8_aes_setkey:                         ; @p8_aes_setkey
	.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	x21, x0
	bl	_preempt_disable
	bl	_pagefault_disable
	bl	_enable_kernel_vsx
	lsl	w22, w19, #3
	add	x2, x21, #8
	mov	x0, x20
	mov	x1, x22
	bl	_aes_p8_set_encrypt_key
	mov	x23, x0
	add	x2, x21, #4
	mov	x0, x20
	mov	x1, x22
	bl	_aes_p8_set_decrypt_key
	orr	w22, w0, w23
	bl	_disable_kernel_vsx
	bl	_pagefault_enable
	bl	_preempt_enable
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_crypto_cipher_setkey
	orr	w8, w22, w0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w0, wzr, w9, eq
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_p8_aes_setkey
.subsections_via_symbols
