	.file	"extr_text.c_TEXT_WordBreak.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	TEXT_WordBreak, @function
TEXT_WordBreak:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 104[rsp]
	mov	r14d, DWORD PTR 96[rsp]
	mov	DWORD PTR 20[rsp], edi
	mov	edi, DWORD PTR DT_WORDBREAK[rip]
	mov	DWORD PTR 16[rsp], r9d
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 112[rsp]
	and	edi, r9d
	mov	QWORD PTR 24[rsp], rax
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR [rbx], r14d
	seta	dil
	call	assert@PLT
	mov	eax, r14d
	lea	r15, 0[rbp+rax*8]
	test	r14d, r14d
	jne	.L2
	mov	edx, DWORD PTR FALSE[rip]
	mov	r12, r15
.L3:
	test	edx, edx
	jne	.L8
.L13:
	mov	eax, DWORD PTR DT_EDITCONTROL[rip]
	mov	r9d, DWORD PTR DT_WORD_ELLIPSIS[rip]
	mov	r13d, DWORD PTR 16[rsp]
	or	r9d, eax
	or	r9d, DWORD PTR DT_PATH_ELLIPSIS[rip]
	and	r13d, r9d
	cmp	eax, r13d
	je	.L46
	mov	eax, DWORD PTR [rbx]
	lea	rax, 0[rbp+rax*8]
	cmp	r15, rax
	jnb	.L20
	mov	rdx, QWORD PTR SPACE[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	add	r15, 8
	cmp	rax, r15
	jbe	.L20
.L21:
	cmp	QWORD PTR [r15], rdx
	jne	.L22
	mov	rsi, r15
	sub	rsi, rbp
	sar	rsi, 3
	mov	edx, esi
	cmp	rax, r15
	jbe	.L44
	add	esi, 1
.L44:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], esi
	mov	DWORD PTR [rbx], edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR TRUE[rip]
	mov	rax, QWORD PTR SPACE[rip]
	cmp	QWORD PTR [r15], rax
	je	.L4
	cmp	rbp, r15
	jnb	.L5
	mov	rsi, rbp
	lea	r13, -8[r15]
	not	rsi
	mov	rcx, r13
	add	rsi, r15
	and	rsi, -8
	sub	rcx, rsi
	mov	QWORD PTR [rsp], rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	QWORD PTR [rsp], r13
	je	.L10
	mov	rax, QWORD PTR SPACE[rip]
	sub	r13, 8
.L6:
	mov	r12, r13
	cmp	QWORD PTR 0[r13], rax
	je	.L10
	mov	rdi, QWORD PTR 8[r13]
	call	IsCJKT@PLT
	test	rax, rax
	je	.L11
	mov	rsi, QWORD PTR 8[r13]
	test	rsi, rsi
	je	.L11
	mov	edi, DWORD PTR KinsokuClassA[rip]
	call	wcschr@PLT
	test	rax, rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	rbp, r13
	je	.L47
.L8:
	mov	eax, DWORD PTR DT_RIGHT[rip]
	mov	esi, DWORD PTR [rbx]
	or	eax, DWORD PTR DT_CENTER[rip]
	test	DWORD PTR 16[rsp], eax
	je	.L14
	mov	rax, QWORD PTR SPACE[rip]
	cmp	QWORD PTR [r12], rax
	je	.L15
.L14:
	lea	rax, 8[r12]
	sub	rax, rbp
	sar	rax, 3
	mov	edx, eax
	cmp	eax, esi
	jnb	.L16
	mov	rax, QWORD PTR SPACE[rip]
	cmp	QWORD PTR 8[r12], rax
	je	.L17
.L16:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], edx
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR [rbx]
.L18:
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 20[rsp]
	mov	rsi, rbp
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	QWORD PTR 96[rsp], rax
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	GetTextExtentExPointW@PLT
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	mov	rax, QWORD PTR SPACE[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L25
	mov	eax, DWORD PTR DT_CENTER[rip]
	mov	esi, DWORD PTR [rbx]
	or	eax, DWORD PTR DT_RIGHT[rip]
	test	DWORD PTR 16[rsp], eax
	je	.L14
.L15:
	sub	r12, rbp
	sar	r12, 3
	mov	edx, r12d
	cmp	r12d, esi
	jnb	.L16
.L17:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], edx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR [rbx]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L46:
	mov	eax, 1
	test	r14d, r14d
	cmove	r14d, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], r14d
	mov	DWORD PTR [rax], r14d
	mov	edx, DWORD PTR [rbx]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	lea	r12, -8[r15]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rcx, r15
	mov	rax, QWORD PTR 8[rsp]
	sub	rcx, rbp
	sar	rcx, 3
	mov	edx, ecx
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR [rbx], edx
	jmp	.L18
.L26:
	mov	r12, rbp
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, QWORD PTR 8[r12]
	call	IsCJKT@PLT
	test	rax, rax
	jne	.L8
	jmp	.L13
.L5:
	je	.L26
	mov	esi, DWORD PTR [rbx]
	mov	r12, r15
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	TEXT_WordBreak, .-TEXT_WordBreak
	.comm	TRUE,4,4
	.comm	SPACE,8,8
	.comm	KinsokuClassA,4,4
	.comm	FALSE,4,4
	.comm	DT_WORD_ELLIPSIS,4,4
	.comm	DT_WORDBREAK,4,4
	.comm	DT_RIGHT,4,4
	.comm	DT_PATH_ELLIPSIS,4,4
	.comm	DT_EDITCONTROL,4,4
	.comm	DT_CENTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_text.c_TEXT_WordBreak.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TEXT_WordBreak, %function
TEXT_WordBreak:
	@ args = 20, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	mov	r5, r1
	ldr	r3, .L53
	sub	sp, sp, #12
	ldr	r3, [r3]
	ldr	r10, [sp, #52]
	mov	r9, r0
	and	r0, r10, r3
	ldr	r3, [sp, #60]
	ldr	r7, [sp, #56]
	str	r3, [sp]
	ldr	r3, [sp, #64]
	add	r4, r5, r7, lsl #2
	str	r3, [sp, #4]
	bl	assert
	ldr	r0, [r6]
	cmp	r0, r7
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	cmp	r7, #0
	bne	.L2
	mov	fp, r4
	ldr	r2, .L53+4
	ldr	r1, [r2]
.L3:
	cmp	r1, #0
	bne	.L8
.L13:
	ldr	r2, .L53+8
	ldr	r3, .L53+12
	ldr	r1, .L53+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r2, r3
	orr	r3, r3, r1
	and	r10, r10, r3
	cmp	r2, r10
	beq	.L50
	ldr	r0, [r6]
	add	r0, r5, r0, lsl #2
	cmp	r4, r0
	bcs	.L20
	ldr	r2, .L53+20
	mov	r3, r4
	ldr	ip, [r2]
	b	.L21
.L22:
	cmp	r0, r3
	mov	r4, r3
	bls	.L20
.L21:
	ldr	r1, [r3]
	mov	r2, r3
	cmp	r1, ip
	add	r3, r3, #4
	bne	.L22
	cmp	r0, r2
	sub	r2, r2, r5
	asr	r2, r2, #2
	bls	.L48
	ldr	r1, [sp]
	add	r3, r2, #1
	str	r3, [r1]
.L24:
	str	r2, [r6]
	b	.L18
.L2:
	ldr	r8, .L53+20
	ldr	r1, [r5, r7, lsl #2]
	ldr	r2, [r8]
	ldr	r3, .L53+24
	cmp	r1, r2
	ldr	r1, [r3]
	beq	.L4
	cmp	r5, r4
	movcc	fp, r4
	bcc	.L5
	b	.L51
.L11:
	cmp	r5, fp
	bcs	.L10
	ldr	r2, [r8]
.L5:
	ldr	r3, [fp, #-4]!
	cmp	r3, r2
	beq	.L10
	ldr	r0, [fp, #4]
	bl	IsCJKT
	cmp	r0, #0
	beq	.L11
	ldr	r1, [fp, #4]
	cmp	r1, #0
	beq	.L11
	ldr	r3, .L53+28
	ldr	r0, [r3]
	bl	wcschr
	cmp	r0, #0
	bne	.L11
.L10:
	cmp	r5, fp
	beq	.L52
.L8:
	ldr	r1, .L53+32
	ldr	r2, .L53+36
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r6]
	orr	r2, r2, r0
	tst	r2, r10
	beq	.L14
	ldr	r2, .L53+20
	ldr	r0, [fp]
	ldr	r2, [r2]
	cmp	r0, r2
	beq	.L15
.L14:
	add	r2, fp, #4
	sub	r2, r2, r5
	cmp	r1, r2, asr #2
	asr	r2, r2, #2
	bls	.L16
	ldr	r0, .L53+20
	ldr	r1, [fp, #4]
	ldr	r3, [r0]
	cmp	r1, r3
	beq	.L17
.L16:
	ldr	r3, [sp]
	str	r2, [r6]
	str	r2, [r3]
	ldr	r2, [r6]
.L18:
	ldr	r1, [sp, #4]
	mov	r3, #0
	str	r1, [sp, #56]
	mov	r0, r9
	mov	r1, r5
	str	r3, [sp, #52]
	str	r3, [sp, #48]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	GetTextExtentExPointW
.L52:
	ldr	r2, [r8]
	ldr	r1, [r5]
	cmp	r1, r2
	bne	.L25
	ldr	r1, .L53+36
	ldr	r2, .L53+32
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r6]
	orr	r2, r2, r0
	tst	r2, r10
	beq	.L14
.L15:
	sub	r3, fp, r5
	cmp	r1, r3, asr #2
	asr	r2, r3, #2
	bls	.L16
.L17:
	str	r2, [r6]
	add	r3, r2, #1
	ldr	r2, [sp]
	str	r3, [r2]
	ldr	r2, [r6]
	b	.L18
.L50:
	cmp	r7, #1
	movcc	r7, #1
	ldr	r3, [sp]
	str	r7, [r6]
	str	r7, [r3]
	ldr	r2, [r6]
	b	.L18
.L4:
	sub	fp, r4, #4
	b	.L3
.L20:
	sub	r2, r4, r5
	asr	r2, r2, #2
.L48:
	ldr	r3, [sp]
	str	r2, [r3]
	b	.L24
.L27:
	mov	fp, r5
.L25:
	ldr	r0, [fp, #4]
	bl	IsCJKT
	cmp	r0, #0
	bne	.L8
	b	.L13
.L51:
	beq	.L27
	mov	fp, r4
	ldr	r1, [r6]
	b	.L14
.L54:
	.align	2
.L53:
	.word	DT_WORDBREAK
	.word	FALSE
	.word	DT_EDITCONTROL
	.word	DT_WORD_ELLIPSIS
	.word	DT_PATH_ELLIPSIS
	.word	SPACE
	.word	TRUE
	.word	KinsokuClassA
	.word	DT_CENTER
	.word	DT_RIGHT
	.size	TEXT_WordBreak, .-TEXT_WordBreak
	.comm	TRUE,4,4
	.comm	SPACE,4,4
	.comm	KinsokuClassA,4,4
	.comm	FALSE,4,4
	.comm	DT_WORD_ELLIPSIS,4,4
	.comm	DT_WORDBREAK,4,4
	.comm	DT_RIGHT,4,4
	.comm	DT_PATH_ELLIPSIS,4,4
	.comm	DT_EDITCONTROL,4,4
	.comm	DT_CENTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
