	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xo_format_gettext
_xo_format_gettext:                     ## @xo_format_gettext
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	$1, %esi
	callq	_xo_buf_has_room
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movb	$0, (%rax)
	movslq	%r14d, %rcx
	movq	8(%r13), %r12
	addq	%rcx, %r12
	movq	_XFF_GT_PLURAL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.2:
	movl	(%r13), %ebx
	subl	%r12d, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_xo_buf_find_last_number
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$44, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r14
	cmpq	%r12, %rax
	je	LBB0_7
## %bb.8:
	cmpq	(%r13), %r14
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdx
	incq	%rdx
	movb	$0, (%r14)
	movq	_XFF_GT_FIELD@GOTPCREL(%rip), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_xo_dngettext
	movq	%rax, %rdx
	jmp	LBB0_13
LBB0_17:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_xo_dgettext
	movq	%rax, %rdx
	cmpq	%r12, %rax
	jne	LBB0_19
## %bb.18:
	movq	_XF_ENC_UTF8@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, (%rax)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_5
	jmp	LBB0_19
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_xo_failure
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%r12, %rdx
LBB0_13:
	cmpq	%r12, %rdx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_19
## %bb.14:
	movq	%r14, (%r13)
	movq	_XF_ENC_UTF8@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_15
## %bb.16:
	subl	%r12d, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xo_count_utf8_cols             ## TAILCALL
LBB0_15:
	movq	%r12, %rdx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_19:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	callq	_strlen
	movl	%eax, %r14d
	leal	1(%r14), %r15d
	movl	%r15d, %edi
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%r13), %rax
	movq	%rax, (%r13)
	movq	_XF_ENC_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	%r14d, %r9d
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_xo_format_string_direct
	addq	$72, %rsp
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_XFF_GT_PLURAL,4,2              ## @XFF_GT_PLURAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no comma in plural gettext field: '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"nothing before comma in plural gettext field: '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"nothing after comma in plural gettext field: '%s'"

	.comm	_XFF_GT_FIELD,4,2               ## @XFF_GT_FIELD
	.comm	_XF_ENC_UTF8,4,2                ## @XF_ENC_UTF8
	.no_dead_strip	_xo_format_gettext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xo_format_gettext
_xo_format_gettext:                     ; @xo_format_gettext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	mov	w1, #1
	bl	_xo_buf_has_room
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x20]
	strb	wzr, [x8]
	ldr	x8, [x20, #8]
	sxtw	x27, w24
	add	x22, x8, x27
Lloh0:
	adrp	x8, _XFF_GT_PLURAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFF_GT_PLURAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x20]
	sub	w26, w8, w22
	mov	x0, x20
	mov	x1, x24
	bl	_xo_buf_find_last_number
	mov	x25, x0
	mov	x0, x22
	mov	w1, #44
	mov	x2, x26
	bl	_memchr
	cbz	x0, LBB0_9
; %bb.3:
	mov	x24, x0
	cmp	x0, x22
	b.eq	LBB0_10
; %bb.4:
	ldr	x8, [x20]
	cmp	x24, x8
	b.eq	LBB0_11
; %bb.5:
	mov	x2, x24
	strb	wzr, [x2], #1
Lloh3:
	adrp	x8, _XFF_GT_FIELD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFF_GT_FIELD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	mov	x3, x25
	bl	_xo_dngettext
	mov	x25, x0
	cmp	x25, x22
	b.ne	LBB0_8
	b	LBB0_16
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	bl	_xo_dgettext
	mov	x25, x0
Lloh6:
	adrp	x8, _XF_ENC_UTF8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XF_ENC_UTF8@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, x22
	ccmp	w8, w19, #0, eq
	b.eq	LBB0_13
LBB0_8:
	mov	x0, x25
	bl	_strlen
	mov	x22, x0
	add	w23, w0, #1
	mov	x0, x23
	bl	_alloca
	mov	x24, x0
	mov	x1, x25
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	str	x8, [x20]
Lloh9:
	adrp	x8, _XF_ENC_UTF8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XF_ENC_UTF8@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	mov	x4, x24
	mov	x5, x22
	mov	w6, #0
	mov	x7, x19
	bl	_xo_format_string_direct
	b	LBB0_14
LBB0_9:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x22
	bl	_xo_failure
LBB0_13:
	mov	x0, x23
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	cmp	w25, #1
	csel	x25, x22, x2, eq
	cmp	x25, x22
	b.ne	LBB0_8
LBB0_16:
	str	x24, [x20]
Lloh18:
	adrp	x8, _XF_ENC_UTF8@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XF_ENC_UTF8@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_18
; %bb.17:
	sub	w1, w24, w22
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_xo_count_utf8_cols
LBB0_18:
	mov	x25, x22
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_XFF_GT_PLURAL,4,2              ; @XFF_GT_PLURAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no comma in plural gettext field: '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"nothing before comma in plural gettext field: '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"nothing after comma in plural gettext field: '%s'"

	.comm	_XFF_GT_FIELD,4,2               ; @XFF_GT_FIELD
	.comm	_XF_ENC_UTF8,4,2                ; @XF_ENC_UTF8
	.no_dead_strip	_xo_format_gettext
.subsections_via_symbols
