	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_build_sar1
_ikev2_build_sar1:                      ## @ikev2_build_sar1
	.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	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_wpabuf_put
	movq	%rax, %r14
	movl	%ebx, 16(%rax)
	movq	$0, 8(%rax)
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %r12
	movl	32(%r15), %eax
	movl	%eax, 12(%r12)
	movq	_IKEV2_PROTOCOL_IKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$4, (%r12)
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	$3, (%rax)
	movq	_IKEV2_TRANSFORM_ENCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	(%r15), %rsi
	callq	_WPA_PUT_BE16
	movq	(%r15), %rax
	movq	_ENCR_AES_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	$32782, %esi                    ## imm = 0x800E
	callq	_wpabuf_put_be16
	movq	%r13, %rdi
	movl	$128, %esi
	callq	_wpabuf_put_be16
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%rbx, %rax
	sarq	$2, %rax
	movl	12(%rbx), %edi
	movq	%rax, %rsi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	$3, (%rax)
	movl	12(%rax), %edi
	movl	$16, %esi
	callq	_WPA_PUT_BE16
	movq	_IKEV2_TRANSFORM_PRF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	8(%r15), %rsi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	$3, (%rax)
	movl	12(%rax), %edi
	movl	$16, %esi
	callq	_WPA_PUT_BE16
	movq	_IKEV2_TRANSFORM_INTEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	16(%r15), %rsi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movl	$16, %esi
	callq	_WPA_PUT_BE16
	movq	_IKEV2_TRANSFORM_DH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	24(%r15), %rsi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%r12, %rax
	sarq	$2, %rax
	movl	4(%r12), %edi
	movq	%rax, %rsi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%r14, %rax
	sarq	$2, %rax
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_WPA_PUT_BE16
	xorl	%eax, %eax
	addq	$8, %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	"IKEV2: Adding SAr1 payload"

	.comm	_IKEV2_PROTOCOL_IKE,4,2         ## @IKEV2_PROTOCOL_IKE
	.comm	_IKEV2_TRANSFORM_ENCR,4,2       ## @IKEV2_TRANSFORM_ENCR
	.comm	_ENCR_AES_CBC,8,3               ## @ENCR_AES_CBC
	.comm	_IKEV2_TRANSFORM_PRF,4,2        ## @IKEV2_TRANSFORM_PRF
	.comm	_IKEV2_TRANSFORM_INTEG,4,2      ## @IKEV2_TRANSFORM_INTEG
	.comm	_IKEV2_TRANSFORM_DH,4,2         ## @IKEV2_TRANSFORM_DH
	.no_dead_strip	_ikev2_build_sar1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_build_sar1
_ikev2_build_sar1:                      ; @ikev2_build_sar1
	.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	x22, x2
	mov	x19, x1
	mov	x21, 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, x19
	mov	w1, #24
	bl	_wpabuf_put
	mov	x20, x0
	str	w22, [x0, #16]
	str	xzr, [x0, #8]
	mov	x0, x19
	mov	w1, #16
	bl	_wpabuf_put
	mov	x22, x0
Lloh5:
	adrp	x8, _IKEV2_PROTOCOL_IKE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IKEV2_PROTOCOL_IKE@GOTPAGEOFF]
	ldr	w9, [x21, #32]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #8]
	mov	w8, #4
	str	w8, [x0]
	mov	x0, x19
	mov	w1, #16
	bl	_wpabuf_put
	mov	x23, x0
	mov	w24, #3
	str	w24, [x0]
Lloh8:
	adrp	x8, _IKEV2_TRANSFORM_ENCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IKEV2_TRANSFORM_ENCR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w0, [x0, #4]
	ldr	x1, [x21]
	bl	_WPA_PUT_BE16
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _ENCR_AES_CBC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENCR_AES_CBC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #32782
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #128
	bl	_wpabuf_put_be16
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x23
	asr	x1, x8, #2
	ldr	w0, [x23, #12]
	bl	_WPA_PUT_BE16
	mov	x0, x19
	mov	w1, #16
	bl	_wpabuf_put
	mov	x23, x0
	str	w24, [x0]
	ldr	w0, [x0, #12]
	mov	w1, #16
	bl	_WPA_PUT_BE16
Lloh14:
	adrp	x8, _IKEV2_TRANSFORM_PRF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IKEV2_TRANSFORM_PRF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	ldr	w0, [x23, #4]
	ldr	x1, [x21, #8]
	bl	_WPA_PUT_BE16
	mov	x0, x19
	mov	w1, #16
	bl	_wpabuf_put
	mov	x23, x0
	str	w24, [x0]
	ldr	w0, [x0, #12]
	mov	w1, #16
	bl	_WPA_PUT_BE16
Lloh17:
	adrp	x8, _IKEV2_TRANSFORM_INTEG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IKEV2_TRANSFORM_INTEG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	ldr	w0, [x23, #4]
	ldr	x1, [x21, #16]
	bl	_WPA_PUT_BE16
	mov	x0, x19
	mov	w1, #16
	bl	_wpabuf_put
	mov	x23, x0
	ldr	w0, [x0, #12]
	mov	w1, #16
	bl	_WPA_PUT_BE16
Lloh20:
	adrp	x8, _IKEV2_TRANSFORM_DH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IKEV2_TRANSFORM_DH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	ldr	w0, [x23, #4]
	ldr	x1, [x21, #24]
	bl	_WPA_PUT_BE16
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x22
	asr	x1, x8, #2
	ldr	w0, [x22, #4]
	bl	_WPA_PUT_BE16
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x20
	asr	x1, x8, #2
	ldr	w0, [x20]
	bl	_WPA_PUT_BE16
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Adding SAr1 payload"

	.comm	_IKEV2_PROTOCOL_IKE,4,2         ; @IKEV2_PROTOCOL_IKE
	.comm	_IKEV2_TRANSFORM_ENCR,4,2       ; @IKEV2_TRANSFORM_ENCR
	.comm	_ENCR_AES_CBC,8,3               ; @ENCR_AES_CBC
	.comm	_IKEV2_TRANSFORM_PRF,4,2        ; @IKEV2_TRANSFORM_PRF
	.comm	_IKEV2_TRANSFORM_INTEG,4,2      ; @IKEV2_TRANSFORM_INTEG
	.comm	_IKEV2_TRANSFORM_DH,4,2         ; @IKEV2_TRANSFORM_DH
	.no_dead_strip	_ikev2_build_sar1
.subsections_via_symbols
