	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_application_data
_tls_process_application_data:          ## @tls_process_application_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%rdx, %r15
	movq	(%rcx), %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rcx
	callq	_wpa_hexdump
	movq	%r13, %rdi
	callq	_os_malloc
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_os_memcpy
	movq	%r13, (%r14)
	jmp	LBB0_4
LBB0_1:
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_tls_alert
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ## @TLS_CONTENT_TYPE_APPLICATION_DATA
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Expected Application Data; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Application Data included in Handshake"

	.no_dead_strip	_tls_process_application_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_application_data
_tls_process_application_data:          ; @tls_process_application_data
	.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
Lloh0:
	adrp	x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x20, x2
	ldr	x22, [x3]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_wpa_hexdump
	mov	x0, x22
	bl	_os_malloc
	str	x0, [x21]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x20
	mov	x2, x22
	bl	_os_memcpy
	mov	w0, #0
	str	x22, [x19]
	b	LBB0_4
LBB0_3:
	mov	x2, x1
	mov	x22, x0
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_tls_alert
	mov	w0, #-1
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ; @TLS_CONTENT_TYPE_APPLICATION_DATA
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Expected Application Data; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Application Data included in Handshake"

	.no_dead_strip	_tls_process_application_data
.subsections_via_symbols
