	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xo_buf_append_locale
_xo_buf_append_locale:                  ## @xo_buf_append_locale
	.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	%rdx, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	leaq	(%rdx,%rax), %r12
	testl	%eax, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	(%rsi), %eax
	subl	4(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %r15d
	incq	%rbx
	cmpq	%r12, %rbx
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_xo_is_utf8
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	subl	%r13d, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_xo_buf_append
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edx
	subl	%ebx, %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_xo_buf_utf8_len
	testl	%eax, %eax
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_xo_buf_append_locale_from_utf8
	decl	%r14d
	leaq	(%rbx,%r14), %r13
	incq	%r13
	addq	%r14, %rbx
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_XOF_COLUMNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_XOF_ISSET
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	addl	%r15d, (%rbx)
LBB0_13:
	movq	_XOIF_ANCHOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_XOIF_ISSET
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	addl	%r15d, 4(%rbx)
LBB0_15:
	subl	%r13d, %r12d
	je	LBB0_16
## %bb.17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xo_buf_append                  ## TAILCALL
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	addl	(%rax), %ecx
	movl	%ecx, 4(%rax)
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XOF_COLUMNS,4,2                ## @XOF_COLUMNS
	.comm	_XOIF_ANCHOR,4,2                ## @XOIF_ANCHOR
	.no_dead_strip	_xo_buf_append_locale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xo_buf_append_locale
_xo_buf_append_locale:                  ; @xo_buf_append_locale
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x23, x2, w3, sxtw
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w24, #0
	ldp	w8, w9, [x19]
	sub	w25, w8, w9
	mov	x22, x21
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w0, w24
	add	x22, x22, #1
	cmp	x22, x23
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22]
	bl	_xo_is_utf8
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w2, w22, w21
	mov	x0, x19
	mov	x1, x21
	bl	_xo_buf_append
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w2, w23, w22
	mov	x0, x20
	mov	x1, x22
	bl	_xo_buf_utf8_len
	cmp	w0, #0
	b.le	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_xo_buf_append_locale_from_utf8
	sub	w8, w21, #1
	add	x22, x22, x8
	add	x21, x22, #1
	b	LBB0_3
LBB0_9:
	mov	w24, #0
LBB0_10:
Lloh0:
	adrp	x8, _XOF_COLUMNS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XOF_COLUMNS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_XOF_ISSET
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x20]
	add	w8, w8, w24
	str	w8, [x20]
LBB0_12:
Lloh3:
	adrp	x8, _XOIF_ANCHOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XOIF_ANCHOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_XOIF_ISSET
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x20, #4]
	add	w8, w8, w24
	str	w8, [x20, #4]
LBB0_14:
	subs	w2, w23, w21
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_xo_buf_append
LBB0_16:
	ldr	w8, [x19]
	add	w8, w25, w8
	str	w8, [x19, #4]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XOF_COLUMNS,4,2                ; @XOF_COLUMNS
	.comm	_XOIF_ANCHOR,4,2                ; @XOIF_ANCHOR
	.no_dead_strip	_xo_buf_append_locale
.subsections_via_symbols
