	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peer_tls_reassemble_fragment
_eap_peer_tls_reassemble_fragment:      ## @eap_peer_tls_reassemble_fragment
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_wpabuf_len
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_5
LBB0_4:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rax
	addq	%rbx, %rax
	je	LBB0_7
## %bb.8:
	cmpq	$65537, %rax                    ## imm = 0x10001
	jb	LBB0_12
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_12:
	cmpq	(%r14), %r12
	jbe	LBB0_14
## %bb.13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_14:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_buf
LBB0_18:
	movq	(%r14), %rdx
	xorl	%eax, %eax
	subq	%r12, %rdx
	movq	%rdx, (%r14)
	je	LBB0_20
## %bb.19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %eax
	jmp	LBB0_20
LBB0_15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	%r14, %rdi
	callq	_eap_peer_tls_reset_input
	movl	$-1, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: Invalid reassembly state: tls_in_left=%lu tls_in_len=%lu in_len=%lu"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"SSL: Too long TLS fragment (size over 64 kB)"

L_.str.2:                               ## @.str.2
	.asciz	"SSL: more data than TLS message length indicated"

L_.str.3:                               ## @.str.3
	.asciz	"SSL: Could not allocate memory for TLS data"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"SSL: Need %lu bytes more input data"

	.no_dead_strip	_eap_peer_tls_reassemble_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peer_tls_reassemble_fragment
_eap_peer_tls_reassemble_fragment:      ; @eap_peer_tls_reassemble_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldr	x0, [x21, #8]!
	cbz	x0, LBB0_5
; %bb.1:
	bl	_wpabuf_len
	mov	x23, x0
	cbz	x20, LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_wpabuf_len
	mov	x22, x0
	adds	x8, x22, x23
	b.eq	LBB0_7
LBB0_3:
	cmp	x8, #16, lsl #12                ; =65536
	b.ls	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_5:
	mov	x23, #0
	cbnz	x20, LBB0_2
LBB0_6:
	mov	x22, #0
	adds	x8, x22, x23
	b.ne	LBB0_3
LBB0_7:
Lloh5:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19]
	stp	x23, x22, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_8:
	ldr	x8, [x19]
	cmp	x22, x8
	b.ls	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_15
; %bb.11:
	cbz	x20, LBB0_13
; %bb.12:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_wpabuf_put_buf
LBB0_13:
	ldr	x8, [x19]
	subs	x8, x8, x22
	str	x8, [x19]
	b.ne	LBB0_18
; %bb.14:
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_wpa_printf
	mov	x0, x19
	bl	_eap_peer_tls_reset_input
	mov	w0, #-1
LBB0_17:
	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
	add	sp, sp, #96
	ret
LBB0_18:
Lloh20:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: Invalid reassembly state: tls_in_left=%lu tls_in_len=%lu in_len=%lu"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"SSL: Too long TLS fragment (size over 64 kB)"

l_.str.2:                               ; @.str.2
	.asciz	"SSL: more data than TLS message length indicated"

l_.str.3:                               ; @.str.3
	.asciz	"SSL: Could not allocate memory for TLS data"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"SSL: Need %lu bytes more input data"

	.no_dead_strip	_eap_peer_tls_reassemble_fragment
.subsections_via_symbols
