	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ikev2_process
_eap_ikev2_process:                     ## @eap_ikev2_process
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_IKEV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rcx
	movq	%r15, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_eap_get_id
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%rcx, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %r13d
	addq	$4, %r14
	jmp	LBB0_5
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	(%r12), %rcx
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rbx
	xorq	(%rbx), %rcx
	xorl	%r9d, %r9d
	orq	%rax, %rcx
	sete	%r9b
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_eap_ikev2_process_icv
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_IKEV2_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.13:
	movq	-64(%rbp), %rax
	subq	%r14, %rax
	cmpq	$15, %rax
	jg	LBB0_15
## %bb.14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_15:
	movq	%r14, %rdi
	callq	_WPA_GET_BE32
	movl	%eax, %r8d
	addq	$16, %r14
	movq	-64(%rbp), %rcx
	subq	%r14, %rcx
	sarq	$2, %rcx
	cmpl	%ecx, %eax
	jge	LBB0_9
## %bb.16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_17
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_19
## %bb.10:
	cmpq	$0, -88(%rbp)
	movl	(%r15), %edi
	je	LBB0_18
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_17:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_38
LBB0_19:
	cmpq	$0, 32(%r12)
	je	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rdx
	subq	%r14, %rdx
	shrq	$2, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_eap_ikev2_process_cont
	testq	%rax, %rax
	js	LBB0_6
LBB0_21:
	movq	_IKEV2_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_23
## %bb.22:
	movq	-64(%rbp), %rax
	subq	%r14, %rax
	shrq	$2, %rax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movq	%r14, %r9
	callq	_eap_ikev2_process_fragment
	jmp	LBB0_37
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_PROC_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_ikev2_state
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_23:
	movq	32(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_25
## %bb.24:
	movq	-64(%rbp), %rdx
	subq	%r14, %rdx
	shrq	$2, %rdx
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wpabuf_set
	movq	%rbx, 32(%r12)
LBB0_25:
	leaq	24(%r12), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ikev2_responder_process
	movq	32(%r12), %rdi
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	leaq	-72(%rbp), %rax
	js	LBB0_26
## %bb.29:
	cmpq	%rax, %rdi
	je	LBB0_31
## %bb.30:
	callq	_wpabuf_free
LBB0_31:
	movq	$0, 32(%r12)
	cmpq	$0, 16(%r12)
	jne	LBB0_35
## %bb.32:
	movq	%r14, %rdi
	callq	_ikev2_responder_build
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_33
## %bb.34:
	movq	$0, 8(%r12)
LBB0_35:
	movq	_PROC_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_ikev2_state
	movq	%r12, %rdi
	movq	%rbx, %rsi
LBB0_36:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_eap_ikev2_build_msg
LBB0_37:
	movq	%rax, %rbx
LBB0_38:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	cmpq	%rax, %rdi
	jne	LBB0_28
## %bb.27:
	movq	$0, 32(%r12)
LBB0_28:
	movq	_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_ikev2_state
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_33:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IKEV2,4,2             ## @EAP_TYPE_IKEV2
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_WAIT_FRAG_ACK,8,3              ## @WAIT_FRAG_ACK
	.comm	_IKEV2_FLAGS_LENGTH_INCLUDED,4,2 ## @IKEV2_FLAGS_LENGTH_INCLUDED
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-IKEV2: Message underflow"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-IKEV2: Invalid Message Length (%d; %ld remaining in this msg)"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-IKEV2: Received packet: Flags 0x%x Message Length %u"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-IKEV2: Unexpected payload in WAIT_FRAG_ACK state"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-IKEV2: Fragment acknowledged"

	.comm	_PROC_MSG,4,2                   ## @PROC_MSG
	.comm	_IKEV2_FLAGS_MORE_FRAGMENTS,4,2 ## @IKEV2_FLAGS_MORE_FRAGMENTS
	.comm	_FAIL,4,2                       ## @FAIL
L_.str.5:                               ## @.str.5
	.asciz	"EAP-IKEV2: Failed to generate IKEv2 message"

	.no_dead_strip	_eap_ikev2_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ikev2_process
_eap_ikev2_process:                     ; @eap_ikev2_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x3
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_IKEV2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_IKEV2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #32
	mov	x2, x24
	bl	_eap_hdr_validate
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x0
	mov	x0, x24
	bl	_eap_get_id
	mov	x21, x0
	ldr	x8, [sp, #32]
	add	x9, x22, x8, lsl #2
	str	x9, [sp, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w23, [x22], #4
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	ldr	x9, [x20]
Lloh6:
	adrp	x26, _WAIT_FRAG_ACK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _WAIT_FRAG_ACK@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x9, x10
	ccmp	x8, #0, #0, eq
	cset	w5, eq
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_eap_ikev2_process_icv
	tbnz	x0, #63, LBB0_15
; %bb.5:
Lloh8:
	adrp	x8, _IKEV2_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IKEV2_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [sp, #40]
	sub	x8, x8, x22
	cmp	x8, #15
	b.gt	LBB0_9
; %bb.7:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_8:
	mov	w24, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_WPA_GET_BE32
	mov	x24, x0
	add	x22, x22, #16
	ldr	x8, [sp, #40]
	sub	x8, x8, x22
	asr	x8, x8, #2
	cmp	w0, w8
	b.ge	LBB0_11
; %bb.10:
Lloh16:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x8, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	stp	x23, x24, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.12:
	ldr	x8, [sp, #32]
	ldr	w0, [x25]
	cbz	x8, LBB0_22
; %bb.13:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	bl	_wpa_printf
LBB0_15:
	mov	x0, #0
LBB0_16:
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x8, [sp, #40]
	sub	x8, x8, x22
	lsr	x2, x8, #2
	mov	x0, x20
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_eap_ikev2_process_cont
	tbnz	x0, #63, LBB0_15
LBB0_20:
Lloh30:
	adrp	x8, _IKEV2_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IKEV2_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_23
; %bb.21:
	ldr	x8, [sp, #40]
	sub	x8, x8, x22
	lsr	x6, x8, #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x5, x22
                                        ; kill: def $w6 killed $w6 killed $x6
	bl	_eap_ikev2_process_fragment
	b	LBB0_17
LBB0_22:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_31
LBB0_23:
	ldr	x23, [x20, #32]
	cbnz	x23, LBB0_25
; %bb.24:
	ldr	x8, [sp, #40]
	sub	x8, x8, x22
	lsr	x2, x8, #2
	add	x23, sp, #24
	add	x0, sp, #24
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wpabuf_set
	str	x23, [x20, #32]
LBB0_25:
	add	x22, x20, #24
	mov	x0, x22
	mov	x1, x23
	bl	_ikev2_responder_process
	mov	x8, x0
	ldr	x0, [x20, #32]
	tbnz	x8, #63, LBB0_32
; %bb.26:
	add	x8, sp, #24
	cmp	x0, x8
	b.eq	LBB0_28
; %bb.27:
	bl	_wpabuf_free
LBB0_28:
	str	xzr, [x20, #32]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_31
; %bb.29:
	mov	x0, x22
	bl	_ikev2_responder_build
	str	x0, [x20, #16]
	cbz	x0, LBB0_35
; %bb.30:
	str	xzr, [x20, #8]
LBB0_31:
Lloh35:
	adrp	x8, _PROC_MSG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PROC_MSG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_ikev2_state
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_ikev2_build_msg
	b	LBB0_17
LBB0_32:
	add	x8, sp, #24
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.33:
	str	xzr, [x20, #32]
LBB0_34:
Lloh38:
	adrp	x8, _FAIL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_ikev2_state
	mov	x0, #0
	b	LBB0_17
LBB0_35:
	ldr	w0, [x25]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IKEV2,4,2             ; @EAP_TYPE_IKEV2
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_WAIT_FRAG_ACK,8,3              ; @WAIT_FRAG_ACK
	.comm	_IKEV2_FLAGS_LENGTH_INCLUDED,4,2 ; @IKEV2_FLAGS_LENGTH_INCLUDED
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: Message underflow"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-IKEV2: Invalid Message Length (%d; %ld remaining in this msg)"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-IKEV2: Received packet: Flags 0x%x Message Length %u"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-IKEV2: Unexpected payload in WAIT_FRAG_ACK state"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-IKEV2: Fragment acknowledged"

	.comm	_PROC_MSG,4,2                   ; @PROC_MSG
	.comm	_IKEV2_FLAGS_MORE_FRAGMENTS,4,2 ; @IKEV2_FLAGS_MORE_FRAGMENTS
	.comm	_FAIL,4,2                       ; @FAIL
l_.str.5:                               ; @.str.5
	.asciz	"EAP-IKEV2: Failed to generate IKEv2 message"

	.no_dead_strip	_eap_ikev2_process
.subsections_via_symbols
