	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gtc_process
_eap_gtc_process:                       ## @eap_gtc_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_EAP_TYPE_GTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_eap_get_id
	movl	%eax, %ebx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_ascii
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.2:
	cmpq	$10, -64(%rbp)
	jb	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movl	(%r13), %edi
	movq	_EAP_TYPE_GTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movsbl	%bl, %r8d
	xorl	%edx, %edx
	callq	_eap_msg_alloc
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_5:
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	leaq	-72(%rbp), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_eap_get_config_otp
	movq	%rax, %rcx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_password
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_18
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	cmpq	$0, (%r12)
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	movq	_METHOD_DONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	movq	_DECISION_COND_SUCC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	movq	%rax, (%r14)
	movq	-72(%rbp), %rbx
	leaq	-80(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_get_config_identity
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	-80(%rbp), %r15
	addq	$10, %r15
	testq	%rax, %rax
	cmoveq	%rax, %r15
	addq	%rbx, %r15
	movl	(%r13), %edi
	movq	_EAP_TYPE_GTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movsbl	-41(%rbp), %r8d                 ## 1-byte Folded Reload
	movq	%r15, %rdx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	%rax, %rbx
	cmpq	$0, (%r12)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movl	$9, %edx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_data
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
LBB0_14:
	movq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put_data
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_head_u8
	leaq	5(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rcx
	callq	_wpa_hexdump_ascii_key
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_clear_config_otp
	jmp	LBB0_21
LBB0_18:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_eap_sm_request_otp
LBB0_19:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movq	%rbx, %rax
	addq	$56, %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_GTC,4,2               ## @EAP_TYPE_GTC
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GTC: Request message"

L_.str.1:                               ## @.str.1
	.asciz	"CHALLENGE="

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"EAP-GTC: Challenge did not start with expected prefix"

	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"EAP-GTC: Password not configured"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ## @METHOD_MAY_CONT
	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ## @DECISION_COND_SUCC
L_.str.4:                               ## @.str.4
	.asciz	"RESPONSE="

L_.str.5:                               ## @.str.5
	.asciz	"EAP-GTC: Response"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-GTC: Forgetting used password"

	.no_dead_strip	_eap_gtc_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gtc_process
_eap_gtc_process:                       ; @eap_gtc_process
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x28, _EAP_TYPE_GTC@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EAP_TYPE_GTC@GOTPAGEOFF]
	ldr	w1, [x28]
	add	x3, sp, #8
	mov	x2, x21
	bl	_eap_hdr_validate
	cbz	x0, LBB0_15
; %bb.1:
	mov	x25, x0
	mov	x0, x21
	bl	_eap_get_id
	mov	x21, x0
Lloh4:
	adrp	x26, _MSG_MSGDUMP@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	x3, [sp, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_wpa_hexdump_ascii
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, #10
	b.lo	LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	mov	w2, #10
	bl	_os_memcmp
	cbz	x0, LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x27]
	ldr	w1, [x28]
Lloh15:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x2, #0
	mov	x4, x21
	bl	_eap_msg_alloc
	mov	x21, x0
	b	LBB0_16
LBB0_5:
	add	x1, sp, #24
	mov	x0, x19
	bl	_eap_get_config_otp
	mov	x23, x0
	mov	x24, x0
	cbnz	x0, LBB0_7
; %bb.6:
	add	x1, sp, #24
	mov	x0, x19
	bl	_eap_get_config_password
	mov	x24, x0
	cbz	x0, LBB0_14
LBB0_7:
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x22, #16]
	ldr	x9, [x20]
Lloh21:
	adrp	x10, _METHOD_MAY_CONT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _METHOD_MAY_CONT@GOTPAGEOFF]
Lloh23:
	adrp	x11, _METHOD_DONE@GOTPAGE
Lloh24:
	ldr	x11, [x11, _METHOD_DONE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
Lloh25:
	adrp	x10, _DECISION_COND_SUCC@GOTPAGE
Lloh26:
	ldr	x10, [x10, _DECISION_COND_SUCC@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh27:
	ldr	w10, [x10]
	stp	w10, w9, [x22, #8]
	str	x8, [x22]
	ldr	x22, [sp, #24]
	add	x1, sp, #16
	mov	x0, x19
	bl	_eap_get_config_identity
	cbz	x0, LBB0_13
; %bb.8:
	mov	x25, x0
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	add	x9, x9, #10
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	add	x22, x8, x22
	ldr	w0, [x27]
	ldr	w1, [x28]
Lloh28:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x2, x22
	mov	x4, x21
	bl	_eap_msg_alloc
	mov	x21, x0
	cbz	x0, LBB0_16
; %bb.9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #9
	bl	_wpabuf_put_data
	ldr	x2, [sp, #16]
	mov	x0, x21
	mov	x1, x25
	bl	_wpabuf_put_data
	mov	x0, x21
	mov	w1, #0
	bl	_wpabuf_put_u8
LBB0_11:
	ldr	x2, [sp, #24]
	mov	x0, x21
	mov	x1, x24
	bl	_wpabuf_put_data
	ldr	w20, [x26]
	mov	x0, x21
	bl	_wpabuf_head_u8
	add	x2, x0, #5
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_wpa_hexdump_ascii_key
	cbz	x23, LBB0_16
; %bb.12:
Lloh35:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_eap_clear_config_otp
	b	LBB0_16
LBB0_13:
	mov	x21, #0
	b	LBB0_16
LBB0_14:
Lloh40:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x25
	bl	_eap_sm_request_otp
LBB0_15:
	mov	x21, #0
Lloh45:
	adrp	x8, _TRUE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	str	x8, [x22, #16]
LBB0_16:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GTC,4,2               ; @EAP_TYPE_GTC
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GTC: Request message"

l_.str.1:                               ; @.str.1
	.asciz	"CHALLENGE="

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"EAP-GTC: Challenge did not start with expected prefix"

	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"EAP-GTC: Password not configured"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ; @METHOD_MAY_CONT
	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ; @DECISION_COND_SUCC
l_.str.4:                               ; @.str.4
	.asciz	"RESPONSE="

l_.str.5:                               ; @.str.5
	.asciz	"EAP-GTC: Response"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-GTC: Forgetting used password"

	.no_dead_strip	_eap_gtc_process
.subsections_via_symbols
