	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_ssa_markup
_write_ssa_markup:                      ## @write_ssa_markup
	.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	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	_ITALIC@GOTPCREL(%rip), %rax
	movl	(%rsi), %ecx
	movl	4(%rsi), %edi
	xorl	%r14d, %r14d
	movl	(%rax), %eax
	andl	%ecx, %eax
	setne	%r14b
	movq	_BOLD@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	(%rax), %eax
	andl	%ecx, %eax
	setne	%r12b
	movq	_UNDERLINE@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	andl	(%rax), %ecx
	setne	%r13b
	sarl	$8, %edi
	callq	_HB_RGB_TO_BGR
	movzbl	4(%rbx), %ecx
	xorl	$255, %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_3
LBB0_1:
	movb	$0, 4(%r15)
	movl	$2104646779, (%r15)             ## imm = 0x7D725C7B
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\\r}"

L_.str.1:                               ## @.str.1
	.asciz	"{\\i%d\\b%d\\u%d\\1c&H%X&\\1a&H%02X&}"

	.comm	_ITALIC,4,2                     ## @ITALIC
	.comm	_BOLD,4,2                       ## @BOLD
	.comm	_UNDERLINE,4,2                  ## @UNDERLINE
	.no_dead_strip	_write_ssa_markup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_ssa_markup
_write_ssa_markup:                      ; @write_ssa_markup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _ITALIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ITALIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x1]
	tst	w8, w9
	cset	w21, ne
Lloh3:
	adrp	x8, _BOLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BOLD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w22, ne
Lloh6:
	adrp	x8, _UNDERLINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNDERLINE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w23, ne
	asr	w0, w10, #8
	bl	_HB_RGB_TO_BGR
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w8, [x20, #4]
	eor	w8, w8, #0xff
	stp	x0, x8, [sp, #24]
	stp	x22, x23, [sp, #8]
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	b	LBB0_3
LBB0_2:
	strb	wzr, [x19, #4]
	mov	w8, #23675
	movk	w8, #32114, lsl #16
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #112
	b	_strlen
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\\r}"

l_.str.1:                               ; @.str.1
	.asciz	"{\\i%d\\b%d\\u%d\\1c&H%X&\\1a&H%02X&}"

	.comm	_ITALIC,4,2                     ; @ITALIC
	.comm	_BOLD,4,2                       ; @BOLD
	.comm	_UNDERLINE,4,2                  ; @UNDERLINE
	.no_dead_strip	_write_ssa_markup
.subsections_via_symbols
