	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_build_hdr
_ikev2_build_hdr:                       ## @ikev2_build_hdr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	36(%rax), %edi
	movl	4(%r14), %esi
	movq	_IKEV2_SPI_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_os_memcpy
	movl	32(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r13), %edx
	callq	_os_memcpy
	movq	%r12, 24(%rbx)
	movq	_IKEV2_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	_IKEV2_HDR_INITIATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WPA_PUT_BE32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Adding HDR"

	.comm	_IKEV2_SPI_LEN,4,2              ## @IKEV2_SPI_LEN
	.comm	_IKEV2_VERSION,4,2              ## @IKEV2_VERSION
	.comm	_IKEV2_HDR_INITIATOR,4,2        ## @IKEV2_HDR_INITIATOR
	.no_dead_strip	_ikev2_build_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_build_hdr
_ikev2_build_hdr:                       ; @ikev2_build_hdr
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x22
	mov	w1, #40
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x0, #36]
	ldr	w1, [x23, #4]
Lloh5:
	adrp	x24, _IKEV2_SPI_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IKEV2_SPI_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_os_memcpy
	ldr	w0, [x22, #32]
	ldr	w1, [x23]
	ldr	w2, [x24]
	bl	_os_memcpy
	str	x20, [x22, #24]
Lloh7:
	adrp	x8, _IKEV2_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IKEV2_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22, #16]
Lloh10:
	adrp	x8, _IKEV2_HDR_INITIATOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IKEV2_HDR_INITIATOR@GOTPAGEOFF]
	str	x21, [x22, #8]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	ldr	w0, [x22]
	mov	x1, x19
	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
	b	_WPA_PUT_BE32
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Adding HDR"

	.comm	_IKEV2_SPI_LEN,4,2              ; @IKEV2_SPI_LEN
	.comm	_IKEV2_VERSION,4,2              ; @IKEV2_VERSION
	.comm	_IKEV2_HDR_INITIATOR,4,2        ; @IKEV2_HDR_INITIATOR
	.no_dead_strip	_ikev2_build_hdr
.subsections_via_symbols
