	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_otp_process
_eap_otp_process:                       ## @eap_otp_process
	.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
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_OTP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_ascii
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_eap_get_config_otp
	movq	%rax, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_eap_get_config_password
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_METHOD_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_DECISION_COND_SUCC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %r14d
	movq	-48(%rbp), %r13
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_eap_get_id
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_wpabuf_put_data
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_ascii_key
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_clear_config_otp
	jmp	LBB0_10
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eap_sm_request_otp
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_OTP,4,2               ## @EAP_TYPE_OTP
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-OTP: Request message"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-OTP: Password not configured"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ## @DECISION_COND_SUCC
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-OTP: Response"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"EAP-OTP: Forgetting used password"

	.no_dead_strip	_eap_otp_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_otp_process
_eap_otp_process:                       ; @eap_otp_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x25, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _EAP_TYPE_OTP@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EAP_TYPE_OTP@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x3, sp
	mov	x2, x21
	bl	_eap_hdr_validate
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x0
Lloh4:
	adrp	x27, _MSG_MSGDUMP@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x27]
	ldr	x3, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump_ascii
	add	x1, sp, #8
	mov	x0, x19
	bl	_eap_get_config_otp
	mov	x22, x0
	mov	x23, x0
	cbnz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_eap_get_config_password
	mov	x23, x0
	cbz	x0, LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #16]
Lloh11:
	adrp	x9, _METHOD_DONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _METHOD_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _DECISION_COND_SUCC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DECISION_COND_SUCC@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #8]
	str	x8, [x20]
	ldr	w20, [x25]
	ldr	w24, [x26]
	ldr	x25, [sp, #8]
Lloh17:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
	mov	x0, x21
	bl	_eap_get_id
	mov	x4, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_eap_msg_alloc
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_wpabuf_put_data
	ldr	w0, [x27]
	ldr	x3, [sp, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump_ascii_key
	cbz	x22, LBB0_8
; %bb.5:
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_eap_clear_config_otp
	b	LBB0_8
LBB0_6:
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x2, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_eap_sm_request_otp
LBB0_7:
	mov	x21, #0
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x20, #16]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_OTP,4,2               ; @EAP_TYPE_OTP
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-OTP: Request message"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-OTP: Password not configured"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ; @DECISION_COND_SUCC
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-OTP: Response"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"EAP-OTP: Forgetting used password"

	.no_dead_strip	_eap_otp_process
.subsections_via_symbols
