	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_process_auth_secret
_ikev2_process_auth_secret:             ## @ikev2_process_auth_secret
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IKEV2_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_AUTH_SHARED_KEY_MIC@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	16(%rbx), %rsi
	movl	60(%rbx), %edx
	movl	56(%rbx), %ecx
	movl	52(%rbx), %r8d
	leaq	48(%rbx), %r9
	movl	44(%rbx), %r10d
	movl	40(%rbx), %r11d
	movl	36(%rbx), %r15d
	movl	32(%rbx), %r13d
	movl	28(%rbx), %eax
	movl	24(%rbx), %r14d
	pushq	%r12
	pushq	%r14
	pushq	%rax
	pushq	%r13
	pushq	%r15
	pushq	%r11
	pushq	%r10
	pushq	$1
	callq	_ikev2_derive_auth_data
	addq	$64, %rsp
	testq	%rax, %rax
	js	LBB0_7
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_wpabuf_free
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edi
	callq	_ikev2_get_prf
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_hexdump
	movl	(%r14), %edi
	movq	(%r15), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump
	movq	_AUTHENTICATION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movl	$-1, %r13d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IKEV2_MAX_HASH_LEN,4,2         ## @IKEV2_MAX_HASH_LEN
	.comm	_AUTH_SHARED_KEY_MIC,8,3        ## @AUTH_SHARED_KEY_MIC
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Unsupported authentication method %d"

L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Could not derive AUTH data"

L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: Invalid Authentication Data"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"IKEV2: Received Authentication Data"

L_.str.4:                               ## @.str.4
	.asciz	"IKEV2: Expected Authentication Data"

	.comm	_AUTHENTICATION_FAILED,4,2      ## @AUTHENTICATION_FAILED
	.comm	_NOTIFY,4,2                     ## @NOTIFY
L_.str.5:                               ## @.str.5
	.asciz	"IKEV2: Server authenticated successfully using shared keys"

	.no_dead_strip	_ikev2_process_auth_secret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_process_auth_secret
_ikev2_process_auth_secret:             ; @ikev2_process_auth_secret
	.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
	sub	sp, sp, #16
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _IKEV2_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKEV2_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _AUTH_SHARED_KEY_MIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUTH_SHARED_KEY_MIC@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x1, [x19, #16]
	ldp	w3, w2, [x19, #56]
	ldr	w4, [x19, #52]
	add	x5, x19, #48
	ldp	w8, w7, [x19, #40]
	ldp	w10, w9, [x19, #32]
	ldp	w12, w11, [x19, #24]
	sub	sp, sp, #32
	str	x22, [sp, #24]
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	w6, #1
	bl	_ikev2_derive_auth_data
	add	sp, sp, #32
	tbnz	x0, #63, LBB0_7
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_wpabuf_free
	str	xzr, [x19, #16]
	ldr	w0, [x19, #8]
	bl	_ikev2_get_prf
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	ldr	x8, [x0]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_os_memcmp_const
	cbz	x0, LBB0_11
LBB0_5:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh16:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_hexdump
	ldr	w0, [x24]
	ldr	x3, [x23]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump
Lloh22:
	adrp	x8, _AUTHENTICATION_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AUTHENTICATION_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NOTIFY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NOTIFY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
Lloh28:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	str	x1, [sp, #-16]!
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
Lloh33:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	sub	sp, x29, #48
	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
LBB0_11:
Lloh41:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_IKEV2_MAX_HASH_LEN,4,2         ; @IKEV2_MAX_HASH_LEN
	.comm	_AUTH_SHARED_KEY_MIC,8,3        ; @AUTH_SHARED_KEY_MIC
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Unsupported authentication method %d"

l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Could not derive AUTH data"

l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: Invalid Authentication Data"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"IKEV2: Received Authentication Data"

l_.str.4:                               ; @.str.4
	.asciz	"IKEV2: Expected Authentication Data"

	.comm	_AUTHENTICATION_FAILED,4,2      ; @AUTHENTICATION_FAILED
	.comm	_NOTIFY,4,2                     ; @NOTIFY
l_.str.5:                               ; @.str.5
	.asciz	"IKEV2: Server authenticated successfully using shared keys"

	.no_dead_strip	_ikev2_process_auth_secret
.subsections_via_symbols
