	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ikev2_buildReq
_eap_ikev2_buildReq:                    ## @eap_ikev2_buildReq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	(%rsi), %edx
	cmpl	$128, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$130, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_ikev2_initiator_build
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$0, 4(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eap_ikev2_build_msg            ## TAILCALL
LBB0_8:
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eap_ikev2_build_frag_ack       ## TAILCALL
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-IKEV2: Failed to generate IKEv2 message"

	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.1:                               ## @.str.1
	.asciz	"EAP-IKEV2: Unexpected state %d in buildReq"

	.no_dead_strip	_eap_ikev2_buildReq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ikev2_buildReq
_eap_ikev2_buildReq:                    ; @eap_ikev2_buildReq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
; %bb.4:
	add	x0, x20, #16
	bl	_ikev2_initiator_build
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.5:
	str	wzr, [x20, #4]
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_eap_ikev2_build_msg
LBB0_7:
Lloh0:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_eap_ikev2_build_frag_ack
LBB0_8:
Lloh3:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: Failed to generate IKEv2 message"

	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.1:                               ; @.str.1
	.asciz	"EAP-IKEV2: Unexpected state %d in buildReq"

	.no_dead_strip	_eap_ikev2_buildReq
.subsections_via_symbols
