	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_phase2_request_eap
_eap_ttls_phase2_request_eap:           ## @eap_ttls_phase2_request_eap
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	4(%rcx), %edi
	callq	_be_to_host16
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_eap_get_config
	cmpq	$8, %r12
	ja	LBB0_4
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_printf
LBB0_2:
	movl	$-1, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	8(%rbx), %r9
	cmpq	$128, %r9
	jne	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_eap_sm_buildIdentity
	movq	%rax, %rdx
	movq	%r14, %rbx
	movq	%rax, (%r14)
	testq	%rdx, %rdx
	je	LBB0_9
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_buf
	movq	_RADIUS_ATTR_EAP_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_ttls_avp_encapsulate       ## TAILCALL
LBB0_7:
	movq	%r14, (%rsp)
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_eap_ttls_phase2_request_eap_method
	testl	%eax, %eax
	js	LBB0_2
## %bb.8:
	movq	(%r14), %rdx
	movq	%r14, %rbx
	testq	%rdx, %rdx
	jne	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 24(%rcx)
	jne	LBB0_3
## %bb.10:
	cmpq	$0, 16(%rcx)
	jne	LBB0_3
## %bb.11:
	cmpq	$0, 8(%rcx)
	jne	LBB0_3
## %bb.12:
	xorl	%eax, %eax
	cmpq	$1, (%rcx)
	sbbl	%eax, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: too short Phase 2 request (len=%lu)"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Phase 2 EAP Request: type=%d"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: AVP encapsulate EAP Response"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ## @RADIUS_ATTR_EAP_MESSAGE
	.no_dead_strip	_eap_ttls_phase2_request_eap
.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_eap
_eap_ttls_phase2_request_eap:           ; @eap_ttls_phase2_request_eap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x25, x1
	mov	x23, x0
	ldr	w0, [x3, #4]
	bl	_be_to_host16
	mov	x22, x0
	mov	x0, x23
	bl	_eap_get_config
	cmp	x22, #8
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_wpa_printf
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x0
Lloh5:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	x2, [x21, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x5, [x21, #8]
	cmp	x5, #128
	b.ne	LBB0_7
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x23
	mov	w2, #1
	bl	_eap_sm_buildIdentity
	mov	x2, x0
	str	x0, [x19]
	cbz	x2, LBB0_9
LBB0_6:
	ldr	w0, [x26]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_buf
Lloh11:
	adrp	x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_eap_ttls_avp_encapsulate
LBB0_7:
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	mov	x3, x21
	mov	x4, x22
	mov	x6, x19
	bl	_eap_ttls_phase2_request_eap_method
	tbnz	w0, #31, LBB0_2
; %bb.8:
	ldr	x2, [x19]
	cbnz	x2, LBB0_6
LBB0_9:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
LBB0_12:
	mov	w0, #0
	b	LBB0_3
LBB0_13:
	ldr	x8, [x20]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: too short Phase 2 request (len=%lu)"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Phase 2 EAP Request: type=%d"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: AVP encapsulate EAP Response"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ; @RADIUS_ATTR_EAP_MESSAGE
	.no_dead_strip	_eap_ttls_phase2_request_eap
.subsections_via_symbols
