	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function workspaces_string_cb
_workspaces_string_cb:                  ## @workspaces_string_cb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.11:
	movq	$0, -48(%rbp)
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_sasprintf
	movq	-48(%rbp), %rdi
	callq	_get_output_by_name
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	8(%r12), %rsi
	movq	%rax, 8(%rsi)
	movl	(%rax), %edi
	movq	_tailq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_TAILQ_INSERT_TAIL
LBB0_13:
	movq	-48(%rbp), %rdi
	jmp	LBB0_14
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sstrndup
	movq	8(%r12), %rcx
	movl	%eax, 28(%rcx)
	movq	_config@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	orq	8(%rbx), %rax
	je	LBB0_8
## %bb.2:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	js	LBB0_8
## %bb.3:
	leaq	_workspaces_string_cb.ws_num(%rip), %r13
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strspn
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpb	$58, (%r15,%rax)
	sete	%cl
	addq	%rax, %rcx
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.6:
	cmpq	%r14, %rcx
	jae	LBB0_16
## %bb.7:
	addq	%rcx, %r15
	subq	%rcx, %r14
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i3string_from_markup_with_length
	jmp	LBB0_9
LBB0_16:
	leaq	_workspaces_string_cb.ws_num(%rip), %rdi
	callq	_i3string_from_markup
LBB0_9:
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, %rdi
	callq	_predict_text_width
	movq	8(%r12), %rcx
	movl	%eax, 24(%rcx)
	movl	28(%rcx), %r14d
	movq	16(%rcx), %rdi
	callq	_i3string_as_utf8
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movl	24(%rax), %ebx
	movq	16(%rax), %rdi
	callq	_i3string_get_num_glyphs
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_DLOG
	movq	(%r12), %rdi
LBB0_14:
	callq	_FREE
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_config,16,3                    ## @config
.zerofill __DATA,__bss,_workspaces_string_cb.ws_num,10,0 ## @workspaces_string_cb.ws_num
L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"Got workspace canonical: %s, name: '%s', name_width: %d, glyphs: %zu\n"

L_.str.3:                               ## @.str.3
	.asciz	"output"

L_.str.4:                               ## @.str.4
	.asciz	"%.*s"

	.comm	_tailq,4,2                      ## @tailq
	.no_dead_strip	_workspaces_string_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function workspaces_string_cb
_workspaces_string_cb:                  ; @workspaces_string_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.2:
	mov	w0, #0
	b	LBB0_18
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_sstrndup
	ldr	x8, [x19, #8]
	str	w0, [x8, #28]
Lloh4:
	adrp	x23, _config@GOTPAGE
Lloh5:
	ldr	x23, [x23, _config@GOTPAGEOFF]
	ldp	x9, x10, [x23]
	orr	x9, x9, x10
	cbz	x9, LBB0_7
; %bb.4:
	ldr	x3, [x8]
	tbnz	x3, #63, LBB0_7
; %bb.5:
Lloh6:
	adrp	x22, _workspaces_string_cb.ws_num@PAGE
Lloh7:
	add	x22, x22, _workspaces_string_cb.ws_num@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w1, #10
	bl	_snprintf
	mov	x0, x21
	mov	x1, x22
	bl	_strspn
	cbz	x0, LBB0_12
; %bb.6:
	ldrb	w8, [x21, x0]
	cmp	w8, #58
	cinc	x8, x0, eq
	ldr	x9, [x23]
	cbnz	x9, LBB0_13
	b	LBB0_15
LBB0_7:
	mov	x0, x21
	mov	x1, x20
LBB0_8:
	bl	_i3string_from_markup_with_length
	b	LBB0_16
LBB0_9:
	str	xzr, [sp, #8]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	mov	x3, x21
	bl	_sasprintf
	ldr	x0, [sp, #8]
	bl	_get_output_by_name
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x1, [x19, #8]
	str	x0, [x1, #8]
	ldr	w0, [x0]
Lloh12:
	adrp	x8, _tailq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tailq@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_TAILQ_INSERT_TAIL
LBB0_11:
	ldr	x0, [sp, #8]
	b	LBB0_17
LBB0_12:
	mov	x8, #0
	ldr	x9, [x23]
	cbz	x9, LBB0_15
LBB0_13:
	cmp	x8, x20
	b.hs	LBB0_15
; %bb.14:
	add	x0, x21, x8
	sub	x1, x20, x8
	b	LBB0_8
LBB0_15:
Lloh15:
	adrp	x0, _workspaces_string_cb.ws_num@PAGE
Lloh16:
	add	x0, x0, _workspaces_string_cb.ws_num@PAGEOFF
	bl	_i3string_from_markup
LBB0_16:
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	bl	_predict_text_width
	ldr	x8, [x19, #8]
	str	w0, [x8, #24]
	ldr	w20, [x8, #28]
	ldr	x0, [x8, #16]
	bl	_i3string_as_utf8
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w22, [x8, #24]
	ldr	x0, [x8, #16]
	bl	_i3string_get_num_glyphs
	mov	x4, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_DLOG
	ldr	x0, [x19]
LBB0_17:
	bl	_FREE
	mov	w0, #1
LBB0_18:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_config,16,3                    ; @config
.zerofill __DATA,__bss,_workspaces_string_cb.ws_num,10,0 ; @workspaces_string_cb.ws_num
l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"Got workspace canonical: %s, name: '%s', name_width: %d, glyphs: %zu\n"

l_.str.3:                               ; @.str.3
	.asciz	"output"

l_.str.4:                               ; @.str.4
	.asciz	"%.*s"

	.comm	_tailq,4,2                      ; @tailq
	.no_dead_strip	_workspaces_string_cb
.subsections_via_symbols
