	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_phase2_request_pap
_eap_ttls_phase2_request_pap:           ## @eap_ttls_phase2_request_pap
	.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, %r13
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_identity
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_password
	movl	$-1, %ebx
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$100, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_wpabuf_mhead
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	_RADIUS_ATTR_USER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%r15, %r9
	callq	_eap_ttls_avp_add
	movq	-48(%rbp), %r8
	movl	%r8d, %ecx
	negl	%ecx
	andl	$15, %ecx
	testq	%r8, %r8
	movl	$16, %ebx
	cmovneq	%rcx, %rbx
	movq	_RADIUS_ATTR_USER_PASSWORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addq	%rbx, %r8
	movq	%rax, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_eap_ttls_avp_hdr
	movq	%rax, %r15
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_os_memcpy
	movq	-48(%rbp), %rax
	leaq	(%r15,%rax,4), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_os_memset
	leaq	(%r15,%rbx,4), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_AVP_PAD
	subq	%r14, %rbx
	shrq	$2, %rbx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ebx, %ebx
	callq	_wpabuf_put
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_DECISION_COND_SUCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	movl	%ebx, %eax
	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-TTLS: Phase 2 PAP Request"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS/PAP: Failed to allocate memory"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ## @RADIUS_ATTR_USER_NAME
	.comm	_RADIUS_ATTR_USER_PASSWORD,4,2  ## @RADIUS_ATTR_USER_PASSWORD
	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ## @DECISION_COND_SUCC
	.no_dead_strip	_eap_ttls_phase2_request_pap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_phase2_request_pap
_eap_ttls_phase2_request_pap:           ; @eap_ttls_phase2_request_pap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #8
	mov	x0, x21
	bl	_eap_get_config_identity
	mov	x24, x0
	mov	x1, sp
	mov	x0, x21
	bl	_eap_get_config_password
	mov	x22, x0
	mov	w0, #-1
	cbz	x24, LBB0_5
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	ldp	x9, x8, [sp]
	add	x8, x8, x9
	add	x0, x8, #100
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	bl	_wpabuf_mhead
	mov	x23, x0
Lloh5:
	adrp	x8, _RADIUS_ATTR_USER_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADIUS_ATTR_USER_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	x6, [sp, #8]
	mov	x1, x0
	mov	w3, #0
	mov	w4, #1
	mov	x5, x24
	bl	_eap_ttls_avp_add
	ldr	x8, [sp]
	neg	w9, w8
	and	x9, x9, #0xf
	mov	w10, #16
	cmp	x8, #0
	csel	x24, x10, x9, eq
Lloh8:
	adrp	x9, _RADIUS_ATTR_USER_PASSWORD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RADIUS_ATTR_USER_PASSWORD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	add	x4, x24, x8
	mov	w2, #0
	mov	w3, #1
	bl	_eap_ttls_avp_hdr
	mov	x25, x0
	ldr	x2, [sp]
	mov	x1, x22
	bl	_os_memcpy
	ldr	x8, [sp]
	add	x22, x25, x8, lsl #2
	mov	x0, x22
	mov	w1, #0
	mov	x2, x24
	bl	_os_memset
	add	x22, x22, x24, lsl #2
	mov	x0, x23
	mov	x1, x22
	bl	_AVP_PAD
	sub	x8, x22, x23
	lsr	x1, x8, #2
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wpabuf_put
	mov	w0, #0
	str	x21, [x20]
Lloh11:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _DECISION_COND_SUCC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DECISION_COND_SUCC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: Phase 2 PAP Request"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS/PAP: Failed to allocate memory"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ; @RADIUS_ATTR_USER_NAME
	.comm	_RADIUS_ATTR_USER_PASSWORD,4,2  ; @RADIUS_ATTR_USER_PASSWORD
	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_COND_SUCC,4,2         ; @DECISION_COND_SUCC
	.no_dead_strip	_eap_ttls_phase2_request_pap
.subsections_via_symbols
