	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_server_tls_reassemble
_eap_server_tls_reassemble:             ## @eap_server_tls_reassemble
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	movq	(%rcx), %r12
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump
	movq	_EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$3, (%r15)
	ja	LBB0_4
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rdi
	callq	_WPA_GET_BE32
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$16, (%rax)
	movq	(%r15), %rcx
	addq	$-4, %rcx
	movq	%rcx, (%r15)
	movl	%ebx, %eax
	cmpq	%rax, %rcx
	jbe	LBB0_6
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	cmpq	$0, (%r15)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_17
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
LBB0_9:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	leaq	(%r14,%r12,4), %r14
	cmpq	$0, 16(%rdx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rsi
	movq	%r14, %rdx
	subq	%rsi, %rdx
	shrq	$2, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_eap_server_tls_process_cont
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	js	LBB0_10
LBB0_14:
	movq	_EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_18
## %bb.15:
	movq	(%r15), %rcx
	subq	%rcx, %r14
	shrq	$2, %r14
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	movl	%r13d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_eap_server_tls_process_fragment
	testq	%rax, %rax
	js	LBB0_10
## %bb.16:
	movq	_FRAG_ACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_18:
	movq	(%rdx), %rax
	movq	_FRAG_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_MSG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
LBB0_20:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rdx)
	jne	LBB0_11
## %bb.21:
	leaq	8(%rdx), %r12
	movq	(%r15), %rsi
	subq	%rsi, %r14
	shrq	$2, %r14
	movq	%rdx, %r15
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wpabuf_set
	movq	%r12, 16(%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: Received data"

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

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"SSL: TLS Message Length: %d"

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

L_.str.4:                               ## @.str.4
	.asciz	"SSL: Received packet: Flags 0x%x Message Length %u"

	.comm	_WAIT_FRAG_ACK,8,3              ## @WAIT_FRAG_ACK
L_.str.5:                               ## @.str.5
	.asciz	"SSL: Unexpected payload in WAIT_FRAG_ACK state"

L_.str.6:                               ## @.str.6
	.asciz	"SSL: Fragment acknowledged"

	.comm	_EAP_TLS_FLAGS_MORE_FRAGMENTS,4,2 ## @EAP_TLS_FLAGS_MORE_FRAGMENTS
	.comm	_FRAG_ACK,8,3                   ## @FRAG_ACK
L_.str.7:                               ## @.str.7
	.asciz	"SSL: All fragments received"

	.comm	_MSG,8,3                        ## @MSG
	.no_dead_strip	_eap_server_tls_reassemble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_server_tls_reassemble
_eap_server_tls_reassemble:             ; @eap_server_tls_reassemble
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x2]
	ldr	x24, [x3]
Lloh0:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_wpa_hexdump
Lloh5:
	adrp	x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
	mov	w25, #0
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
	bl	_WPA_GET_BE32
	mov	x26, x0
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	add	x8, x8, #16
	str	x8, [x20]
	ldr	x8, [x22]
	sub	x8, x8, #4
	str	x8, [x22]
	cmp	x8, w26, uxtw
	mov	x25, x26
	b.ls	LBB0_6
; %bb.5:
Lloh18:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh23:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
	stp	x21, x25, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _WAIT_FRAG_ACK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WAIT_FRAG_ACK@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x22]
	ldr	w0, [x26]
	cbz	x8, LBB0_17
; %bb.8:
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_9:
	bl	_wpa_printf
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
LBB0_12:
	add	x22, x23, x24, lsl #2
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x1, [x20]
	sub	x8, x22, x1
	lsr	x2, x8, #2
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_eap_server_tls_process_cont
	tbnz	x0, #63, LBB0_10
LBB0_14:
Lloh32:
	adrp	x8, _EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.15:
	ldr	x3, [x20]
	sub	x8, x22, x3
	lsr	x4, x8, #2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_eap_server_tls_process_fragment
	tbnz	x0, #63, LBB0_10
; %bb.16:
Lloh35:
	adrp	x8, _FRAG_ACK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FRAG_ACK@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_11
LBB0_17:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	b	LBB0_11
LBB0_18:
	ldr	x8, [x19]
Lloh40:
	adrp	x9, _FRAG_ACK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _FRAG_ACK@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	w0, [x26]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
Lloh45:
	adrp	x8, _MSG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_20:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_22
; %bb.21:
	mov	w0, #0
	b	LBB0_11
LBB0_22:
	add	x21, x19, #8
	ldr	x1, [x20]
	sub	x8, x22, x1
	lsr	x2, x8, #2
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wpabuf_set
	mov	w0, #0
	str	x21, [x19, #16]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: Received data"

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

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"SSL: TLS Message Length: %d"

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

l_.str.4:                               ; @.str.4
	.asciz	"SSL: Received packet: Flags 0x%x Message Length %u"

	.comm	_WAIT_FRAG_ACK,8,3              ; @WAIT_FRAG_ACK
l_.str.5:                               ; @.str.5
	.asciz	"SSL: Unexpected payload in WAIT_FRAG_ACK state"

l_.str.6:                               ; @.str.6
	.asciz	"SSL: Fragment acknowledged"

	.comm	_EAP_TLS_FLAGS_MORE_FRAGMENTS,4,2 ; @EAP_TLS_FLAGS_MORE_FRAGMENTS
	.comm	_FRAG_ACK,8,3                   ; @FRAG_ACK
l_.str.7:                               ; @.str.7
	.asciz	"SSL: All fragments received"

	.comm	_MSG,8,3                        ; @MSG
	.no_dead_strip	_eap_server_tls_reassemble
.subsections_via_symbols
