	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_valid_session
_eap_ttls_valid_session:                ## @eap_ttls_valid_session
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	addl	$2, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$255, %eax
	movl	$255, %r12d
	cmovll	%eax, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_wpabuf_put_u8
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_wpabuf_put_data
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
LBB0_5:
	movl	(%r14), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tls_connection_set_success_data ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TTLS,4,2              ## @EAP_TYPE_TTLS
	.no_dead_strip	_eap_ttls_valid_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_valid_session
_eap_ttls_valid_session:                ; @eap_ttls_valid_session
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	add	w0, w8, #2
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _EAP_TYPE_TTLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_TYPE_TTLS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	mov	w9, #255
	cmp	w8, #255
	csel	w22, w8, w9, lt
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_u8
	ldr	w1, [x21, #4]
	mov	x0, x20
	mov	x2, x22
	bl	_wpabuf_put_data
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put_u8
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tls_connection_set_success_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TTLS,4,2              ; @EAP_TYPE_TTLS
	.no_dead_strip	_eap_ttls_valid_session
.subsections_via_symbols
