	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_build_notify
_ikev2_build_notify:                    ## @ikev2_build_notify
	.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	%rdi, %r14
	movl	$1004, %edi                     ## imm = 0x3EC
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_LAST_MSG_SA_AUTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movl	$100, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_IKE_SA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IKEV2_PAYLOAD_ENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_ikev2_build_hdr
	movq	_IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ikev2_build_notification
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	leaq	12(%r14), %rdx
	movq	_IKEV2_PAYLOAD_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_ikev2_build_encrypted
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	callq	_wpabuf_free
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_IKE_SA_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IKEV2_PAYLOAD_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_ikev2_build_hdr
	movq	_IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ikev2_build_notification
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_wpabuf_free
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	_SA_INIT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_ikev2_update_hdr
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_buf
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	_IKEV2_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_LAST_MSG_SA_AUTH,8,3           ## @LAST_MSG_SA_AUTH
	.comm	_IKE_SA_AUTH,4,2                ## @IKE_SA_AUTH
	.comm	_IKEV2_PAYLOAD_ENCRYPTED,4,2    ## @IKEV2_PAYLOAD_ENCRYPTED
	.comm	_IKEV2_PAYLOAD_NO_NEXT_PAYLOAD,4,2 ## @IKEV2_PAYLOAD_NO_NEXT_PAYLOAD
	.comm	_IKEV2_PAYLOAD_NOTIFICATION,4,2 ## @IKEV2_PAYLOAD_NOTIFICATION
	.comm	_IKEV2_FAILED,4,2               ## @IKEV2_FAILED
	.comm	_IKE_SA_INIT,4,2                ## @IKE_SA_INIT
	.comm	_SA_INIT,4,2                    ## @SA_INIT
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Sending message (Notification)"

	.no_dead_strip	_ikev2_build_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_build_notify
_ikev2_build_notify:                    ; @ikev2_build_notify
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	mov	w0, #1004
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _LAST_MSG_SA_AUTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LAST_MSG_SA_AUTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #100
	bl	_wpabuf_alloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x8, _IKE_SA_AUTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKE_SA_AUTH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IKEV2_PAYLOAD_ENCRYPTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IKEV2_PAYLOAD_ENCRYPTED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_ikev2_build_hdr
Lloh9:
	adrp	x8, _IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_ikev2_build_notification
	cbnz	x0, LBB0_5
; %bb.4:
	ldp	w1, w0, [x20, #16]
	add	x2, x20, #12
Lloh12:
	adrp	x8, _IKEV2_PAYLOAD_NOTIFICATION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IKEV2_PAYLOAD_NOTIFICATION@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	w3, #0
	mov	x4, x19
	mov	x5, x21
	bl	_ikev2_build_encrypted
	cbz	x0, LBB0_11
LBB0_5:
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _IKE_SA_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IKE_SA_INIT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _IKEV2_PAYLOAD_NOTIFICATION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IKEV2_PAYLOAD_NOTIFICATION@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_ikev2_build_hdr
Lloh21:
	adrp	x8, _IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IKEV2_PAYLOAD_NO_NEXT_PAYLOAD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ikev2_build_notification
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x19, #0
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x8, _SA_INIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SA_INIT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_ikev2_update_hdr
Lloh26:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x21
	bl	_wpabuf_free
Lloh31:
	adrp	x8, _IKEV2_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IKEV2_FAILED@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_LAST_MSG_SA_AUTH,8,3           ; @LAST_MSG_SA_AUTH
	.comm	_IKE_SA_AUTH,4,2                ; @IKE_SA_AUTH
	.comm	_IKEV2_PAYLOAD_ENCRYPTED,4,2    ; @IKEV2_PAYLOAD_ENCRYPTED
	.comm	_IKEV2_PAYLOAD_NO_NEXT_PAYLOAD,4,2 ; @IKEV2_PAYLOAD_NO_NEXT_PAYLOAD
	.comm	_IKEV2_PAYLOAD_NOTIFICATION,4,2 ; @IKEV2_PAYLOAD_NOTIFICATION
	.comm	_IKEV2_FAILED,4,2               ; @IKEV2_FAILED
	.comm	_IKE_SA_INIT,4,2                ; @IKE_SA_INIT
	.comm	_SA_INIT,4,2                    ; @SA_INIT
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Sending message (Notification)"

	.no_dead_strip	_ikev2_build_notify
.subsections_via_symbols
