	.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_req
_eap_teap_process_basic_auth_req:       ## @eap_teap_process_basic_auth_req
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_ascii
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_identity
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_password
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rax
	cmpq	$255, %rax
	ja	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rcx
	cmpq	$256, %rcx                      ## imm = 0x100
	jae	LBB0_4
## %bb.5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r13
	addq	$2, %r13
	leal	4(%r13), %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_TEAP_TLV_BASIC_PASSWORD_AUTH_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_eap_teap_put_tlv_hdr
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_data
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_data
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_buf_key
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_8
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_TEAP_TLV_BASIC_PASSWORD_AUTH_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_eap_teap_tlv_nak
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %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-TEAP: Basic-Password-Auth-Req prompt"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: No username/password suitable for Basic-Password-Auth"

	.comm	_TEAP_TLV_BASIC_PASSWORD_AUTH_REQ,4,2 ## @TEAP_TLV_BASIC_PASSWORD_AUTH_REQ
	.comm	_TEAP_TLV_BASIC_PASSWORD_AUTH_RESP,4,2 ## @TEAP_TLV_BASIC_PASSWORD_AUTH_RESP
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp"

	.no_dead_strip	_eap_teap_process_basic_auth_req
.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_req
_eap_teap_process_basic_auth_req:       ; @eap_teap_process_basic_auth_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_ascii
	add	x1, sp, #8
	mov	x0, x20
	bl	_eap_get_config_identity
	mov	x22, x0
	mov	x1, sp
	mov	x0, x20
	bl	_eap_get_config_password
	cbz	x22, LBB0_6
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, #255
	b.hi	LBB0_6
; %bb.3:
	ldr	x9, [sp]
	cmp	x9, #256
	b.hs	LBB0_6
; %bb.4:
	add	x8, x8, x9
	add	x23, x8, #2
	add	w0, w23, #4
	bl	_wpabuf_alloc
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.5:
Lloh4:
	adrp	x8, _TEAP_TLV_BASIC_PASSWORD_AUTH_RESP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEAP_TLV_BASIC_PASSWORD_AUTH_RESP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_eap_teap_put_tlv_hdr
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_wpabuf_put_data
	ldr	x1, [sp]
	mov	x0, x21
	bl	_wpabuf_put_u8
	ldr	x2, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_wpabuf_put_data
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf_key
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x24]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh11:
	adrp	x8, _TEAP_TLV_BASIC_PASSWORD_AUTH_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TEAP_TLV_BASIC_PASSWORD_AUTH_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_eap_teap_tlv_nak
	mov	x21, x0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Basic-Password-Auth-Req prompt"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: No username/password suitable for Basic-Password-Auth"

	.comm	_TEAP_TLV_BASIC_PASSWORD_AUTH_REQ,4,2 ; @TEAP_TLV_BASIC_PASSWORD_AUTH_REQ
	.comm	_TEAP_TLV_BASIC_PASSWORD_AUTH_RESP,4,2 ; @TEAP_TLV_BASIC_PASSWORD_AUTH_RESP
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Basic-Password-Auth-Resp"

	.no_dead_strip	_eap_teap_process_basic_auth_req
.subsections_via_symbols
