	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikev2_encr_encrypt             ## -- Begin function ikev2_encr_encrypt
	.p2align	4, 0x90
_ikev2_encr_encrypt:                    ## @ikev2_encr_encrypt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdx, %rax
	movq	%rsi, %rbx
	cmpl	$129, %edi
	je	LBB0_3
## %bb.1:
	movl	%edi, %edx
	cmpl	$128, %edi
	jne	LBB0_7
## %bb.2:
	movq	_CRYPTO_CIPHER_ALG_AES@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_3:
	movq	_CRYPTO_CIPHER_ALG_3DES@GOTPCREL(%rip), %rdx
LBB0_4:
	movl	(%rdx), %edi
	movq	%rcx, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_crypto_cipher_init
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	16(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_crypto_cipher_encrypt
	testq	%rax, %rax
	js	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_crypto_cipher_deinit
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_crypto_cipher_deinit
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_CIPHER_ALG_3DES,4,2     ## @CRYPTO_CIPHER_ALG_3DES
	.comm	_CRYPTO_CIPHER_ALG_AES,4,2      ## @CRYPTO_CIPHER_ALG_AES
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Unsupported encr alg %d"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Failed to initialize cipher"

L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: Encryption failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikev2_encr_encrypt             ; -- Begin function ikev2_encr_encrypt
	.p2align	2
_ikev2_encr_encrypt:                    ; @ikev2_encr_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x8, x2
	mov	x2, x1
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, _CRYPTO_CIPHER_ALG_AES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_CIPHER_ALG_AES@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x9, _CRYPTO_CIPHER_ALG_3DES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CRYPTO_CIPHER_ALG_3DES@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x9]
	mov	x1, x3
	mov	x3, x8
	bl	_crypto_cipher_init
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_crypto_cipher_encrypt
	tbnz	x0, #63, LBB0_10
; %bb.6:
	mov	x0, x22
	bl	_crypto_cipher_deinit
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x22
	bl	_crypto_cipher_deinit
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_CIPHER_ALG_3DES,4,2     ; @CRYPTO_CIPHER_ALG_3DES
	.comm	_CRYPTO_CIPHER_ALG_AES,4,2      ; @CRYPTO_CIPHER_ALG_AES
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Unsupported encr alg %d"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Failed to initialize cipher"

l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: Encryption failed"

.subsections_via_symbols
