	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xo_do_close_leaf_list
_xo_do_close_leaf_list:                 ## @xo_do_close_leaf_list
	.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, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r15d
	movl	%r15d, %edi
	callq	_alloca
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_3:
	movq	_XSF_DTRT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%rcx,%rax)
	je	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_xo_failure
	movq	_XO_FAILURE_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_6:
	movq	%r12, %rdi
	callq	_xo_style
	cmpl	$129, %eax
	je	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.8:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movl	8(%rcx,%rdx), %edx
	movq	_XSF_NOT_FIRST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%edx, %esi
	je	LBB0_9
## %bb.10:
	movq	_XOF_PRETTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_XOF_ISSET
	testl	%eax, %eax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rax, %r15
	movl	(%rbx), %esi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movl	8(%rcx,%rdx), %edx
	jmp	LBB0_11
LBB0_12:
	movq	_XO_OP_CLOSE_LEAF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_xo_encoder_handle
	movl	%eax, %ebx
LBB0_13:
	movq	_XSS_CLOSE_LEAF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_XSF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_xo_depth_change
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str(%rip), %r15
LBB0_11:
	orl	%esi, %edx
	shlq	$4, %rax
	movl	%edx, 8(%rcx,%rax)
	movq	_XSS_CLOSE_LEAF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_XSF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_xo_depth_change
	movq	%r12, %rdi
	callq	_xo_indent
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str(%rip), %r8
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_xo_printf
	movl	%eax, %ebx
LBB0_14:
	movq	_XSF_NOT_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	shlq	$4, %rcx
	orl	%eax, 8(%rdx,%rcx)
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_XSF_DTRT,4,2                   ## @XSF_DTRT
L_.str.1:                               ## @.str.1
	.asciz	"missing name without 'dtrt' mode"

	.comm	_XO_FAILURE_NAME,8,3            ## @XO_FAILURE_NAME
	.comm	_XSF_NOT_FIRST,4,2              ## @XSF_NOT_FIRST
	.comm	_XOF_PRETTY,4,2                 ## @XOF_PRETTY
L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_XSS_CLOSE_LEAF_LIST,4,2        ## @XSS_CLOSE_LEAF_LIST
	.comm	_XSF_LIST,4,2                   ## @XSF_LIST
L_.str.3:                               ## @.str.3
	.asciz	"%s%*s]"

	.comm	_XO_OP_CLOSE_LEAF_LIST,4,2      ## @XO_OP_CLOSE_LEAF_LIST
	.no_dead_strip	_xo_do_close_leaf_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xo_do_close_leaf_list
_xo_do_close_leaf_list:                 ; @xo_do_close_leaf_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	cbnz	x1, LBB0_6
; %bb.1:
	ldp	x9, x8, [x19]
	lsl	x10, x9, #4
	ldr	x21, [x8, x10]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_strlen
	add	w22, w0, #1
	mov	x0, x22
	bl	_alloca
	mov	x20, x0
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	b	LBB0_6
LBB0_3:
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
Lloh0:
	adrp	x9, _XSF_DTRT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XSF_DTRT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_xo_failure
Lloh5:
	adrp	x8, _XO_FAILURE_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XO_FAILURE_NAME@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
LBB0_6:
	mov	x0, x19
	bl	_xo_style
Lloh8:
	adrp	x22, _XSF_NOT_FIRST@GOTPAGE
Lloh9:
	ldr	x22, [x22, _XSF_NOT_FIRST@GOTPAGEOFF]
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_12
; %bb.8:
	ldp	x10, x8, [x19]
	add	x9, x8, x10, lsl #4
	ldr	w11, [x9, #8]
	ldr	w9, [x22]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	tst	w9, w11
	b.eq	LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _XOF_PRETTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XOF_PRETTY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XOF_ISSET
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x21, x21, x8, eq
	ldr	w9, [x22]
	ldp	x10, x8, [x19]
	add	x11, x8, x10, lsl #4
	ldr	w11, [x11, #8]
LBB0_10:
	add	x8, x8, x10, lsl #4
	orr	w9, w11, w9
	str	w9, [x8, #8]
Lloh17:
	adrp	x8, _XSS_CLOSE_LEAF_LIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XSS_CLOSE_LEAF_LIST@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
Lloh20:
	adrp	x8, _XSF_LIST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XSF_LIST@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1
	mov	w3, #-1
	bl	_xo_depth_change
	mov	x0, x19
	bl	_xo_indent
	mov	x3, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh25:
	adrp	x4, l_.str@PAGE
Lloh26:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_xo_printf
	mov	x21, x0
	b	LBB0_14
LBB0_11:
Lloh27:
	adrp	x8, _XO_OP_CLOSE_LEAF_LIST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XO_OP_CLOSE_LEAF_LIST@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	mov	w4, #0
	bl	_xo_encoder_handle
	mov	x21, x0
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
Lloh30:
	adrp	x8, _XSS_CLOSE_LEAF_LIST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XSS_CLOSE_LEAF_LIST@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
Lloh33:
	adrp	x8, _XSF_LIST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _XSF_LIST@GOTPAGEOFF]
Lloh35:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1
	mov	w3, #0
	bl	_xo_depth_change
LBB0_14:
	ldr	w8, [x22]
	ldp	x10, x9, [x19]
	add	x9, x9, x10, lsl #4
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_XSF_DTRT,4,2                   ; @XSF_DTRT
l_.str.1:                               ; @.str.1
	.asciz	"missing name without 'dtrt' mode"

	.comm	_XO_FAILURE_NAME,8,3            ; @XO_FAILURE_NAME
	.comm	_XSF_NOT_FIRST,4,2              ; @XSF_NOT_FIRST
	.comm	_XOF_PRETTY,4,2                 ; @XOF_PRETTY
l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_XSS_CLOSE_LEAF_LIST,4,2        ; @XSS_CLOSE_LEAF_LIST
	.comm	_XSF_LIST,4,2                   ; @XSF_LIST
l_.str.3:                               ; @.str.3
	.asciz	"%s%*s]"

	.comm	_XO_OP_CLOSE_LEAF_LIST,4,2      ; @XO_OP_CLOSE_LEAF_LIST
	.no_dead_strip	_xo_do_close_leaf_list
.subsections_via_symbols
