	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_tls_process_init      ## -- Begin function eap_peer_tls_process_init
	.p2align	4, 0x90
_eap_peer_tls_process_init:             ## @eap_peer_tls_process_init
	.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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	16(%rsi), %edi
	callq	_tls_get_errors
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_EAP_UNAUTH_TLS_TYPE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_EAP_VENDOR_UNAUTH_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_EAP_WFA_UNAUTH_TLS_TYPE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_EAP_VENDOR_WFA_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_VENDOR_WFA_UNAUTH_TLS@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rsi
LBB0_9:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_eap_hdr_validate
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	16(%rbp), %r12
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movl	(%rbx), %ecx
	addq	$4, %rbx
	movl	%ecx, (%r12)
	decq	%rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_15
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpl	$0, (%r13)
	je	LBB0_10
## %bb.13:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$0, (%r12)
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_len
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	testl	%eax, (%r12)
	je	LBB0_16
## %bb.17:
	cmpq	$3, %rcx
	ja	LBB0_20
## %bb.18:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_20:
	movq	%rbx, %rdi
	callq	_WPA_GET_BE32
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_22
## %bb.21:
	movl	%r14d, 4(%rax)
	movl	%r14d, (%rax)
	movq	8(%rax), %rdi
	movq	%rax, %r12
	callq	_wpabuf_free
	movq	$0, 8(%r12)
LBB0_22:
	movq	-48(%rbp), %rcx
	addq	$-4, %rcx
	movq	%rcx, -48(%rbp)
	movl	%r14d, %eax
	cmpq	%rax, %rcx
	jbe	LBB0_23
## %bb.24:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_19:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	jmp	LBB0_2
LBB0_23:
	addq	$16, %rbx
LBB0_16:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdx)
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	%rcx, (%r15)
LBB0_2:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: TLS errors detected"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_EAP_UNAUTH_TLS_TYPE,8,3        ## @EAP_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_UNAUTH_TLS,4,2      ## @EAP_VENDOR_UNAUTH_TLS
	.comm	_EAP_VENDOR_TYPE_UNAUTH_TLS,8,3 ## @EAP_VENDOR_TYPE_UNAUTH_TLS
	.comm	_EAP_WFA_UNAUTH_TLS_TYPE,8,3    ## @EAP_WFA_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_WFA_NEW,4,2         ## @EAP_VENDOR_WFA_NEW
	.comm	_EAP_VENDOR_WFA_UNAUTH_TLS,8,3  ## @EAP_VENDOR_WFA_UNAUTH_TLS
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"SSL: Invalid TLS message: no Flags octet included"

L_.str.2:                               ## @.str.2
	.asciz	"SSL: Workaround - assume no Flags indicates ACK frame"

L_.str.3:                               ## @.str.3
	.asciz	"SSL: Received packet(len=%lu) - Flags 0x%02x"

	.comm	_EAP_TLS_FLAGS_LENGTH_INCLUDED,4,2 ## @EAP_TLS_FLAGS_LENGTH_INCLUDED
L_.str.4:                               ## @.str.4
	.asciz	"SSL: Short frame with TLS length"

L_.str.5:                               ## @.str.5
	.asciz	"SSL: TLS Message Length: %d"

L_.str.6:                               ## @.str.6
	.asciz	"SSL: TLS Message Length (%d bytes) smaller than this fragment (%d bytes)"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ## @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_peer_tls_process_init      ; -- Begin function eap_peer_tls_process_init
	.p2align	2
_eap_peer_tls_process_init:             ; @eap_peer_tls_process_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x6
	mov	x20, x5
	mov	x24, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x25, x0
	ldr	w0, [x1, #16]
	bl	_tls_get_errors
	cbz	x0, LBB0_6
; %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
LBB0_2:
	bl	_wpa_printf
LBB0_3:
	mov	x21, #0
LBB0_4:
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_6:
Lloh8:
	adrp	x8, _EAP_UNAUTH_TLS_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_UNAUTH_TLS_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _EAP_VENDOR_UNAUTH_TLS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_VENDOR_UNAUTH_TLS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _EAP_WFA_UNAUTH_TLS_TYPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAP_WFA_UNAUTH_TLS_TYPE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.9:
Lloh19:
	adrp	x8, _EAP_VENDOR_WFA_NEW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_VENDOR_WFA_NEW@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _EAP_VENDOR_WFA_UNAUTH_TLS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAP_VENDOR_WFA_UNAUTH_TLS@GOTPAGEOFF]
LBB0_10:
	ldr	x1, [x8]
	add	x3, sp, #24
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x3, sp, #24
	mov	x1, x21
LBB0_12:
	mov	x2, x24
	bl	_eap_hdr_validate
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.13:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w9, [x21], #4
	str	w9, [x23]
	sub	x8, x8, #1
	str	x8, [sp, #24]
	b	LBB0_17
LBB0_15:
	ldr	w0, [x26]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x25]
	cbz	w8, LBB0_3
; %bb.16:
	ldr	w0, [x26]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	str	wzr, [x23]
LBB0_17:
	ldr	w25, [x26]
	mov	x0, x24
	bl	_wpabuf_len
	ldr	w8, [x23]
	stp	x0, x8, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	ldr	w9, [x23]
Lloh35:
	adrp	x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x8]
	ldr	x8, [sp, #24]
	tst	w10, w9
	b.eq	LBB0_25
; %bb.18:
	cmp	x8, #3
	b.hi	LBB0_20
; %bb.19:
Lloh38:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_20:
	mov	x0, x21
	bl	_WPA_GET_BE32
	mov	x23, x0
	ldr	w0, [x26]
	str	x23, [sp]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x22]
	cbnz	w8, LBB0_22
; %bb.21:
	stp	w23, w23, [x22]
	ldr	x0, [x22, #8]
	bl	_wpabuf_free
	str	xzr, [x22, #8]
LBB0_22:
	ldr	x8, [sp, #24]
	sub	x8, x8, #4
	str	x8, [sp, #24]
	cmp	x8, w23, uxtw
	b.ls	LBB0_24
; %bb.23:
Lloh45:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh46:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x9]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x8, [sp]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_24:
	add	x21, x21, #16
LBB0_25:
Lloh50:
	adrp	x9, _FALSE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
Lloh53:
	adrp	x10, _METHOD_MAY_CONT@GOTPAGE
Lloh54:
	ldr	x10, [x10, _METHOD_MAY_CONT@GOTPAGEOFF]
	str	x9, [x19, #16]
Lloh55:
	ldr	w9, [x10]
Lloh56:
	adrp	x10, _DECISION_FAIL@GOTPAGE
Lloh57:
	ldr	x10, [x10, _DECISION_FAIL@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #8]
Lloh59:
	adrp	x9, _TRUE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	str	x9, [x19]
	str	x8, [x20]
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: TLS errors detected"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_EAP_UNAUTH_TLS_TYPE,8,3        ; @EAP_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_UNAUTH_TLS,4,2      ; @EAP_VENDOR_UNAUTH_TLS
	.comm	_EAP_VENDOR_TYPE_UNAUTH_TLS,8,3 ; @EAP_VENDOR_TYPE_UNAUTH_TLS
	.comm	_EAP_WFA_UNAUTH_TLS_TYPE,8,3    ; @EAP_WFA_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_WFA_NEW,4,2         ; @EAP_VENDOR_WFA_NEW
	.comm	_EAP_VENDOR_WFA_UNAUTH_TLS,8,3  ; @EAP_VENDOR_WFA_UNAUTH_TLS
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"SSL: Invalid TLS message: no Flags octet included"

l_.str.2:                               ; @.str.2
	.asciz	"SSL: Workaround - assume no Flags indicates ACK frame"

l_.str.3:                               ; @.str.3
	.asciz	"SSL: Received packet(len=%lu) - Flags 0x%02x"

	.comm	_EAP_TLS_FLAGS_LENGTH_INCLUDED,4,2 ; @EAP_TLS_FLAGS_LENGTH_INCLUDED
l_.str.4:                               ; @.str.4
	.asciz	"SSL: Short frame with TLS length"

l_.str.5:                               ; @.str.5
	.asciz	"SSL: TLS Message Length: %d"

l_.str.6:                               ; @.str.6
	.asciz	"SSL: TLS Message Length (%d bytes) smaller than this fragment (%d bytes)"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ; @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
.subsections_via_symbols
