	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sake_build_confirm
_eap_sake_build_confirm:                ## @eap_sake_build_confirm
	.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	$40, %rsp
	.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, %r14
	movq	%rdi, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SAKE_MIC_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	addq	$2, %rdx
	movq	_EAP_SAKE_SUBTYPE_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_eap_sake_build_msg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SAKE_AT_MIC_S@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	(%r15), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put
	movq	%rax, %r12
	movl	24(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	20(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %r15d
	movl	8(%r14), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %r13d
	movq	%rbx, %rdi
	callq	_wpabuf_head
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	pushq	%r12
	pushq	%r12
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_eap_sake_compute_mic
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_4
LBB0_1:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$40, %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	"EAP-SAKE: Request/Confirm"

	.comm	_EAP_SAKE_MIC_LEN,8,3           ## @EAP_SAKE_MIC_LEN
	.comm	_EAP_SAKE_SUBTYPE_CONFIRM,4,2   ## @EAP_SAKE_SUBTYPE_CONFIRM
	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SAKE: * AT_MIC_S"

	.comm	_EAP_SAKE_AT_MIC_S,8,3          ## @EAP_SAKE_AT_MIC_S
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-SAKE: Failed to compute MIC"

	.no_dead_strip	_eap_sake_build_confirm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sake_build_confirm
_eap_sake_build_confirm:                ; @eap_sake_build_confirm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x22, _EAP_SAKE_MIC_LEN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EAP_SAKE_MIC_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x2, x8, #2
Lloh6:
	adrp	x8, _EAP_SAKE_SUBTYPE_CONFIRM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_SAKE_SUBTYPE_CONFIRM@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_eap_sake_build_msg
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh11:
	adrp	x8, _EAP_SAKE_AT_MIC_S@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_SAKE_AT_MIC_S@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_u8
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x20
	bl	_wpabuf_put_u8
	ldr	x1, [x22]
	mov	x0, x20
	bl	_wpabuf_put
	mov	x22, x0
	ldp	w24, w23, [x19, #20]
	ldp	w27, w25, [x19, #12]
	ldp	w8, w26, [x21]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w28, [x19, #8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_len
	stp	x22, x22, [sp, #8]
	stp	w21, w0, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	mov	x5, x27
	mov	x6, x28
	mov	w7, #0
	bl	_eap_sake_compute_mic
	cbz	x0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh19:
	adrp	x8, _FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x8, _FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SAKE: Request/Confirm"

	.comm	_EAP_SAKE_MIC_LEN,8,3           ; @EAP_SAKE_MIC_LEN
	.comm	_EAP_SAKE_SUBTYPE_CONFIRM,4,2   ; @EAP_SAKE_SUBTYPE_CONFIRM
	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SAKE: * AT_MIC_S"

	.comm	_EAP_SAKE_AT_MIC_S,8,3          ; @EAP_SAKE_AT_MIC_S
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-SAKE: Failed to compute MIC"

	.no_dead_strip	_eap_sake_build_confirm
.subsections_via_symbols
