	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_build_auth
_ikev2_build_auth:                      ## @ikev2_build_auth
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	44(%rbx), %edi
	callq	_ikev2_get_prf
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_wpabuf_put
	movl	%r14d, 16(%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%rax)
	movq	_AUTH_SHARED_KEY_MIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_wpabuf_put
	movl	44(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	40(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	36(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ID_KEY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	32(%rbx), %r12
	movl	28(%rbx), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	24(%rbx), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	20(%rbx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r14d
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	pushq	%rax
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	$0
	callq	_ikev2_derive_auth_data
	addq	$64, %rsp
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
	callq	_wpabuf_free
	movq	$0, (%rbx)
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	subq	%rcx, %rax
	sarq	$2, %rax
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_WPA_PUT_BE16
	jmp	LBB0_4
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$72, %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 AUTH payload"

	.comm	_AUTH_SHARED_KEY_MIC,4,2        ## @AUTH_SHARED_KEY_MIC
	.comm	_ID_KEY_ID,4,2                  ## @ID_KEY_ID
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Could not derive AUTH data"

	.no_dead_strip	_ikev2_build_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_build_auth
_ikev2_build_auth:                      ; @ikev2_build_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x2
	mov	x19, x1
	mov	x20, 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
	ldr	w0, [x20, #44]
	bl	_ikev2_get_prf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #24
	bl	_wpabuf_put
	mov	x21, x0
	str	w23, [x0, #16]
	str	xzr, [x0, #8]
Lloh5:
	adrp	x8, _AUTH_SHARED_KEY_MIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUTH_SHARED_KEY_MIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #3
	bl	_wpabuf_put
	ldr	w8, [x20, #44]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	x8, [x20]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w9, [x20, #40]
	ldr	w8, [x20, #36]
	stp	w8, w9, [sp, #40]               ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _ID_KEY_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ID_KEY_ID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	add	x28, x20, #32
	ldp	w23, w8, [x20, #24]
	stp	w9, w8, [sp, #32]               ; 8-byte Folded Spill
	ldp	w25, w24, [x20, #16]
	ldp	w27, w26, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wpabuf_put
	str	x0, [sp, #24]
	stp	w26, w27, [sp, #12]
	stp	w24, w25, [sp, #4]
	str	w23, [sp]
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	ldp	w3, w2, [sp, #40]               ; 8-byte Folded Reload
	ldp	w4, w7, [sp, #32]               ; 8-byte Folded Reload
	mov	x5, x28
	mov	w6, #0
	bl	_ikev2_derive_auth_data
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_wpabuf_free
	str	xzr, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x21
	asr	x1, x8, #2
	ldr	w0, [x21]
	bl	_WPA_PUT_BE16
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Adding AUTH payload"

	.comm	_AUTH_SHARED_KEY_MIC,4,2        ; @AUTH_SHARED_KEY_MIC
	.comm	_ID_KEY_ID,4,2                  ; @ID_KEY_ID
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Could not derive AUTH data"

	.no_dead_strip	_ikev2_build_auth
.subsections_via_symbols
