	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_process_sa_auth
_ikev2_process_sa_auth:                 ## @ikev2_process_sa_auth
	.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	%rdx, %r14
	movq	%rsi, %r8
	movq	%rdi, %r15
	movl	12(%rdi), %esi
	movl	16(%rdi), %edi
	leaq	8(%r15), %rdx
	movl	4(%r14), %eax
	movl	8(%r14), %r9d
	leaq	-32(%rbp), %rbx
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_ikev2_decrypt_payload
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_ikev2_process_sa_auth_decrypted
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_os_free
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$0, 4(%r15)
	jne	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_IKEV2_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Authentication completed"

	.comm	_IKEV2_DONE,4,2                 ## @IKEV2_DONE
	.no_dead_strip	_ikev2_process_sa_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_process_sa_auth
_ikev2_process_sa_auth:                 ; @ikev2_process_sa_auth
	.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	x20, x2
	mov	x4, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #12]
	add	x2, x19, #8
	ldp	w6, w5, [x20, #4]
	add	x7, sp, #8
	mov	w3, #0
	bl	_ikev2_decrypt_payload
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w1, [x20]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_ikev2_process_sa_auth_decrypted
	mov	x20, x0
	mov	x0, x21
	bl	_os_free
	cbnz	w20, LBB0_6
; %bb.2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
	mov	w20, #-1
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w20, #0
Lloh5:
	adrp	x8, _IKEV2_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IKEV2_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Authentication completed"

	.comm	_IKEV2_DONE,4,2                 ; @IKEV2_DONE
	.no_dead_strip	_ikev2_process_sa_auth
.subsections_via_symbols
