	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xo_format_units
_xo_format_units:                       ## @xo_format_units
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	8(%rsi), %r15
	movl	16(%rsi), %r12d
	movq	_XOIF_UNITS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XOIF_ISSET
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r12
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r15
	subq	16(%rbx), %r15
	movq	%rbx, %rdi
	callq	_xo_style
	movq	_XO_STYLE_XML@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	_xo_format_units.units_start_xml(%rip), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	pushq	%r12
	pushq	%r15
	callq	_xo_format_content
	addq	$56, %rsp
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	callq	_xo_style
	movq	_XO_STYLE_HTML@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	leaq	_xo_format_units.units_start_html(%rip), %rsi
	movq	%r12, %rdi
	movl	$13, %edx
LBB0_6:
	callq	_xo_buf_append
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_xo_data_escape
	jmp	LBB0_9
LBB0_8:
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_xo_do_format_field
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_xo_buf_append
	movq	8(%rbx), %r14
	movq	16(%rbx), %rax
	addq	%r15, %rax
	subq	%rax, %r14
	testq	%r14, %r14
	jle	LBB0_10
## %bb.13:
	movq	%r14, %rdi
	callq	_alloca
	movq	%rax, %r12
	movq	16(%rbx), %rsi
	addq	%r15, %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	movq	16(%rbx), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	addq	%r13, %rsi
	leaq	(%rsi,%r14), %rdi
	subq	%r13, %r15
	movq	%r15, %rdx
	callq	_memmove
	addq	16(%rbx), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memmove                        ## TAILCALL
LBB0_10:
	movq	%rax, (%r12)
LBB0_11:
	addq	$40, %rsp
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_xo_format_units.units_start_xml:       ## @xo_format_units.units_start_xml
	.asciz	" units=\""

_xo_format_units.units_start_html:      ## @xo_format_units.units_start_html
	.asciz	" data-units=\""

	.comm	_XOIF_UNITS_PENDING,4,2         ## @XOIF_UNITS_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"units"

	.comm	_XO_STYLE_XML,8,3               ## @XO_STYLE_XML
	.comm	_XO_STYLE_HTML,8,3              ## @XO_STYLE_HTML
L_.str.1:                               ## @.str.1
	.asciz	"\""

	.no_dead_strip	_xo_format_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xo_format_units
_xo_format_units:                       ; @xo_format_units
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x25, x2
	mov	x19, x0
	ldp	x22, x23, [x1]
	ldr	w24, [x1, #16]
Lloh0:
	adrp	x8, _XOIF_UNITS_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XOIF_UNITS_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_XOIF_ISSET
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x19
	ldr	x27, [x20, #8]!
	ldr	x26, [x19]
	ldr	x28, [x19, #16]
	mov	x0, x19
	bl	_xo_style
Lloh3:
	adrp	x8, _XO_STYLE_XML@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XO_STYLE_XML@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, _xo_format_units.units_start_xml@PAGE
Lloh7:
	add	x1, x1, _xo_format_units.units_start_xml@PAGEOFF
	mov	x0, x20
	mov	w2, #8
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, x25
	mov	x4, x21
	mov	x5, x22
	mov	x6, x23
	mov	x7, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_xo_format_content
LBB0_4:
	mov	x0, x19
	bl	_xo_style
Lloh10:
	adrp	x8, _XO_STYLE_HTML@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XO_STYLE_HTML@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.5:
Lloh13:
	adrp	x1, _xo_format_units.units_start_html@PAGE
Lloh14:
	add	x1, x1, _xo_format_units.units_start_html@PAGEOFF
	mov	x0, x20
	mov	w2, #13
LBB0_6:
	bl	_xo_buf_append
	sub	x27, x27, x28
	mov	x0, x19
	cbz	x21, LBB0_8
; %bb.7:
	mov	x1, x25
	mov	x2, x21
	bl	_xo_data_escape
	b	LBB0_9
LBB0_8:
	mov	x1, #0
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_xo_do_format_field
LBB0_9:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	bl	_xo_buf_append
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x27
	sub	x21, x9, x8
	cmp	x21, #0
	b.le	LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_alloca
	mov	x20, x0
	ldr	x8, [x19, #16]
	add	x1, x8, x27
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #16]
	add	x1, x8, x26
	add	x0, x1, x21
	sub	x2, x27, x26
	bl	_memmove
	ldr	x8, [x19, #16]
	add	x0, x8, x26
	mov	x1, x20
	mov	x2, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_memmove
LBB0_11:
	str	x8, [x20]
LBB0_12:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_xo_format_units.units_start_xml:       ; @xo_format_units.units_start_xml
	.asciz	" units=\""

_xo_format_units.units_start_html:      ; @xo_format_units.units_start_html
	.asciz	" data-units=\""

	.comm	_XOIF_UNITS_PENDING,4,2         ; @XOIF_UNITS_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"units"

	.comm	_XO_STYLE_XML,8,3               ; @XO_STYLE_XML
	.comm	_XO_STYLE_HTML,8,3              ; @XO_STYLE_HTML
l_.str.1:                               ; @.str.1
	.asciz	"\""

	.no_dead_strip	_xo_format_units
.subsections_via_symbols
