	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_process_basic_auth_resp
_eap_teap_process_basic_auth_resp:      ## @eap_teap_process_basic_auth_resp
	.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	%rsi, %rbx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.3:
	movq	%rcx, %rax
	movq	%rdx, %r12
	movl	(%rdx), %esi
	leaq	-4(,%rcx,4), %rdx
	sarq	$2, %rdx
	movslq	%esi, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	jmp	LBB0_9
LBB0_5:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,4), %r14
	addq	$4, %r12
	leaq	(%r12,%rcx,4), %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump_ascii
	movq	%r14, %rax
	subq	%r13, %rax
	cmpq	$3, %rax
	jg	LBB0_10
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_10:
	movslq	(%r13), %rbx
	addq	$4, %r13
	movq	%r14, %rax
	subq	%r13, %rax
	sarq	$2, %rax
	cmpq	%rbx, %rax
	jge	LBB0_12
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_12:
	leaq	(,%rbx,4), %rax
	addq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump_ascii_key
	subq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jbe	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	shrq	$2, %r14
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_14:
	movq	%rbx, %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_eap_user_get
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_7
LBB0_16:
	movq	16(%r14), %rax
	testq	%rax, %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	je	LBB0_19
## %bb.17:
	movl	4(%rax), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.18:
	cmpq	$0, 8(%rax)
	je	LBB0_20
LBB0_19:
	movl	(%rcx), %edi
	leaq	L_.str.8(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	xorl	%esi, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_teap_req_failure           ## TAILCALL
LBB0_20:
	movq	%r15, %rdx
	cmpl	%edx, (%rax)
	jne	LBB0_22
## %bb.21:
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp_const
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:
	movl	(%rcx), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_7
LBB0_23:
	movl	(%rcx), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_os_memdup
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_os_free
	movq	%r15, (%r14)
	movl	%ebx, 8(%r14)
LBB0_25:
	movq	_CRYPTO_BINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_eap_teap_state
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_teap_update_icmk           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: No room for Basic-Password-Auth-Resp Userlen field"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Truncated Basic-Password-Auth-Resp Username field"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp Username"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: No room for Basic-Password-Auth-Resp Passlen field"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: Truncated Basic-Password-Auth-Resp Password field"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp Password"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TEAP: Unexpected %d extra octet(s) at the end of Basic-Password-Auth-Resp TLV"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-TEAP: Username not found in the user database"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-TEAP: No plaintext user password configured"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-TEAP: Invalid password"

L_.str.10:                              ## @.str.10
	.asciz	"EAP-TEAP: Correct password"

	.comm	_CRYPTO_BINDING,4,2             ## @CRYPTO_BINDING
	.no_dead_strip	_eap_teap_process_basic_auth_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_process_basic_auth_resp
_eap_teap_process_basic_auth_resp:      ; @eap_teap_process_basic_auth_resp
	.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	x19, x1
	cmp	x3, #0
	b.le	LBB0_3
; %bb.1:
	mov	x22, x2
	ldr	w21, [x22], #4
	lsl	x8, x3, #2
	sub	x9, x8, #4
	sxtw	x8, w21
	cmp	x8, x9, asr #2
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_3:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_4:
	mov	x20, x0
	add	x26, x2, x3, lsl #2
	add	x23, x22, x8, lsl #2
Lloh10:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_hexdump_ascii
	sub	x8, x26, x23
	cmp	x8, #3
	b.gt	LBB0_6
; %bb.5:
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_6:
	ldrsw	x24, [x23], #4
	sub	x8, x26, x23
	cmp	x24, x8, asr #2
	b.le	LBB0_8
; %bb.7:
	ldr	w0, [x25]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_8:
	add	x27, x23, x24, lsl #2
	ldr	w0, [x25]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_wpa_hexdump_ascii_key
	subs	x8, x26, x27
	b.ls	LBB0_10
; %bb.9:
	ldr	w0, [x25]
	lsr	x8, x8, #2
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	bl	_eap_user_get
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x25]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_12:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w0, [x8, #4]
	cbz	w0, LBB0_15
; %bb.14:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_17
LBB0_15:
	ldr	w0, [x25]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_16:
	bl	_wpa_printf
	mov	x0, x19
	mov	w1, #0
	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
	b	_eap_teap_req_failure
LBB0_17:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_19
; %bb.18:
	mov	x1, x23
	mov	x2, x24
	bl	_os_memcmp_const
	cbz	x0, LBB0_20
LBB0_19:
	ldr	w0, [x25]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_20:
	ldr	w0, [x25]
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_wpa_printf
	mov	x0, x22
	mov	x1, x21
	bl	_os_memdup
	cbz	x0, LBB0_22
; %bb.21:
	mov	x22, x0
	ldr	x0, [x20]
	bl	_os_free
	str	x22, [x20]
	str	w21, [x20, #8]
LBB0_22:
Lloh30:
	adrp	x8, _CRYPTO_BINDING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CRYPTO_BINDING@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	mov	x0, x20
	mov	x1, x19
	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
	b	_eap_teap_update_icmk
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: No room for Basic-Password-Auth-Resp Userlen field"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Truncated Basic-Password-Auth-Resp Username field"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp Username"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: No room for Basic-Password-Auth-Resp Passlen field"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: Truncated Basic-Password-Auth-Resp Password field"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp Password"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TEAP: Unexpected %d extra octet(s) at the end of Basic-Password-Auth-Resp TLV"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-TEAP: Username not found in the user database"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-TEAP: No plaintext user password configured"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-TEAP: Invalid password"

l_.str.10:                              ; @.str.10
	.asciz	"EAP-TEAP: Correct password"

	.comm	_CRYPTO_BINDING,4,2             ; @CRYPTO_BINDING
	.no_dead_strip	_eap_teap_process_basic_auth_resp
.subsections_via_symbols
