	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ikev2_build_msg
_eap_ikev2_build_msg:                   ## @eap_ikev2_build_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	%rax, %r14
	movq	(%r15), %rcx
	subq	%rcx, %r14
	leaq	1(%r14), %rdx
	movslq	8(%r15), %rax
	cmpq	%rax, %rdx
	jbe	LBB0_4
## %bb.1:
	decq	%rax
	movq	_IKEV2_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_IKEV2_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	addq	$-4, %rax
LBB0_3:
	movq	%rax, %r14
LBB0_4:
	movq	_IKEV2_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r12d, (%rcx)
	setne	%al
	leaq	(%r14,%rax,4), %r13
	incq	%r13
	cmpq	$0, 40(%r15)
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_IKEV2_FLAGS_ICV_INCLUDED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	32(%r15), %edi
	callq	_ikev2_get_integ
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	orl	%ebx, %r12d
	movq	(%rax), %rbx
	addq	%rbx, %r13
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_IKEV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_wpabuf_put_u8
	movq	_IKEV2_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_wpabuf_put_be32
LBB0_13:
	movq	16(%r15), %rdi
	callq	_wpabuf_head_u8
	addq	(%r15), %rax
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_wpabuf_put_data
	movq	(%r15), %rbx
	addq	%r14, %rbx
	movq	%rbx, (%r15)
	movq	_IKEV2_FLAGS_ICV_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_wpabuf_head
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_wpabuf_len
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r15), %r12d
	movl	24(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	28(%r15), %ebx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	callq	_ikev2_integ_hash
	movq	(%r15), %rbx
LBB0_15:
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpq	%rax, %rbx
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%r15), %rdi
	callq	_wpabuf_free
	movq	$0, 16(%r15)
	movq	$0, (%r15)
	jmp	LBB0_18
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_18
LBB0_17:
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	subq	(%r15), %rax
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_ikev2_state
LBB0_18:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"EAP-IKEV2: Generating Request"

	.comm	_IKEV2_FLAGS_MORE_FRAGMENTS,4,2 ## @IKEV2_FLAGS_MORE_FRAGMENTS
	.comm	_IKEV2_FLAGS_LENGTH_INCLUDED,4,2 ## @IKEV2_FLAGS_LENGTH_INCLUDED
L_.str.1:                               ## @.str.1
	.asciz	"EAP-IKEV2: Add Integrity Checksum Data"

	.comm	_IKEV2_FLAGS_ICV_INCLUDED,4,2   ## @IKEV2_FLAGS_ICV_INCLUDED
L_.str.2:                               ## @.str.2
	.asciz	"EAP-IKEV2: Unknown INTEG transform / cannot generate ICV"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IKEV2,4,2             ## @EAP_TYPE_IKEV2
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.3:                               ## @.str.3
	.asciz	"EAP-IKEV2: Sending out %lu bytes (message sent completely)"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-IKEV2: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,4,2              ## @WAIT_FRAG_ACK
	.no_dead_strip	_eap_ikev2_build_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ikev2_build_msg
_eap_ikev2_build_msg:                   ; @eap_ikev2_build_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x20, x0, x8
	add	x10, x20, #1
	ldrsw	x9, [x19, #8]
Lloh4:
	adrp	x25, _IKEV2_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IKEV2_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
	cmp	x10, x9
	b.ls	LBB0_3
; %bb.1:
	sub	x20, x9, #1
Lloh6:
	adrp	x9, _IKEV2_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IKEV2_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x9]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x25]
	orr	w22, w8, w22
	sub	x20, x20, #4
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	ldr	w8, [x25]
	tst	w8, w22
	add	x8, x20, #5
	csinc	x24, x8, x20, ne
	ldr	x8, [x19, #40]
Lloh9:
	adrp	x26, _IKEV2_FLAGS_ICV_INCLUDED@GOTPAGE
Lloh10:
	ldr	x26, [x26, _IKEV2_FLAGS_ICV_INCLUDED@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w0, [x28]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w23, [x26]
	ldr	w0, [x19, #32]
	bl	_ikev2_get_integ
	cbz	x0, LBB0_16
; %bb.6:
	orr	w22, w23, w22
	ldr	x23, [x0]
	add	x24, x23, x24
	b	LBB0_8
LBB0_7:
	mov	x23, #0
LBB0_8:
Lloh13:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _EAP_TYPE_IKEV2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAP_TYPE_IKEV2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x2, x24
	mov	x4, x21
	bl	_eap_msg_alloc
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	bl	_wpabuf_put_u8
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x21
	bl	_wpabuf_put_be32
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_wpabuf_head_u8
	ldr	x8, [x19]
	add	x1, x8, x0
	mov	x0, x21
	mov	x2, x20
	bl	_wpabuf_put_data
	ldr	x8, [x19]
	add	x24, x8, x20
	str	x24, [x19]
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x24, x0
	ldp	w26, w25, [x19, #28]
	ldr	w27, [x19, #24]
	mov	x0, x21
	mov	x1, x23
	bl	_wpabuf_put
	mov	x5, x0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x3, x22
	mov	x4, x24
	bl	_ikev2_integ_hash
	ldr	x24, [x19]
LBB0_13:
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	w22, [x28]
	cmp	x24, x0
	b.ne	LBB0_15
; %bb.14:
	str	x20, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
	ldr	x0, [x19, #16]
	bl	_wpabuf_free
	str	xzr, [x19, #16]
	str	xzr, [x19]
	b	LBB0_17
LBB0_15:
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x8, x0, x8
	stp	x20, x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
Lloh26:
	adrp	x8, _WAIT_FRAG_ACK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WAIT_FRAG_ACK@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ikev2_state
	b	LBB0_17
LBB0_16:
	ldr	w0, [x28]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: Generating Request"

	.comm	_IKEV2_FLAGS_MORE_FRAGMENTS,4,2 ; @IKEV2_FLAGS_MORE_FRAGMENTS
	.comm	_IKEV2_FLAGS_LENGTH_INCLUDED,4,2 ; @IKEV2_FLAGS_LENGTH_INCLUDED
l_.str.1:                               ; @.str.1
	.asciz	"EAP-IKEV2: Add Integrity Checksum Data"

	.comm	_IKEV2_FLAGS_ICV_INCLUDED,4,2   ; @IKEV2_FLAGS_ICV_INCLUDED
l_.str.2:                               ; @.str.2
	.asciz	"EAP-IKEV2: Unknown INTEG transform / cannot generate ICV"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_IKEV2,4,2             ; @EAP_TYPE_IKEV2
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.3:                               ; @.str.3
	.asciz	"EAP-IKEV2: Sending out %lu bytes (message sent completely)"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-IKEV2: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,4,2              ; @WAIT_FRAG_ACK
	.no_dead_strip	_eap_ikev2_build_msg
.subsections_via_symbols
