	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvtchar
_cvtchar:                               ## @cvtchar
	.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	%rdi, %r14
	movb	(%rdi), %bl
	movsbl	%bl, %eax
	cmpl	$94, %eax
	je	LBB0_21
## %bb.1:
	movl	$1, %r15d
	cmpl	$92, %eax
	jne	LBB0_11
## %bb.2:
	movb	1(%r14), %al
	movsbl	%al, %edi
	leal	-36(%rdi), %ecx
	cmpl	$56, %ecx
	ja	LBB0_3
## %bb.4:
	movl	$61440, %edx                    ## imm = 0xF000
	btq	%rcx, %rdx
	jb	LBB0_7
## %bb.5:
	movabsq	$72057594037927947, %rdx        ## imm = 0x10000000000000B
	btq	%rcx, %rdx
	jae	LBB0_3
LBB0_6:
	movl	$2, %r15d
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_21:
	movb	1(%r14), %bl
	andb	$31, %bl
	movl	$2, %r15d
LBB0_11:
	movzbl	%bl, %r14d
	movl	%r14d, %edi
	callq	_isgraph
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leal	-39(%rbx), %eax
	cmpb	$53, %al
	ja	LBB0_14
## %bb.13:
	movzbl	%al, %eax
	movabsq	$9007199255265313, %rcx         ## imm = 0x20000000080021
	btq	%rax, %rcx
	jae	LBB0_14
LBB0_15:
	movq	_dp@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_save_string
	movl	%eax, (%r12)
	cmpb	$100, %bl
	jb	LBB0_17
## %bb.16:
	leal	(%r14,%r14,4), %ecx
	leal	(%r14,%rcx,8), %ecx
	shrl	$12, %ecx
	orb	$48, %cl
	movzbl	%cl, %esi
	movl	%eax, %edi
	callq	_save_char
	movl	%eax, (%r12)
	jmp	LBB0_18
LBB0_17:
	cmpb	$10, %bl
	jb	LBB0_19
LBB0_18:
	imull	$205, %r14d, %ecx
	shrl	$11, %ecx
	imull	$205, %ecx, %edx
	shrl	$10, %edx
	andl	$-2, %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %cl
	orb	$48, %cl
	movzbl	%cl, %esi
	movl	%eax, %edi
	callq	_save_char
	movl	%eax, (%r12)
LBB0_19:
	imull	$205, %r14d, %ecx
	shrl	$10, %ecx
	andl	$-2, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subb	%cl, %bl
	orb	$48, %bl
	movzbl	%bl, %esi
	movl	%eax, %edi
	callq	_save_char
	movl	%eax, (%r12)
	movl	%eax, %edi
	movl	$125, %esi
LBB0_20:
	callq	_save_char
	movq	_dp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_UChar
	addl	$-48, %eax
	cmpl	$9, %eax
	ja	LBB0_8
## %bb.9:
	movl	$1, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shlb	$3, %bl
	addb	(%r14,%r15), %bl
	addb	$-48, %bl
	movsbl	1(%r14,%r15), %edi
	callq	_UChar
	addl	$-48, %eax
	incq	%r15
	cmpl	$10, %eax
	jb	LBB0_10
	jmp	LBB0_11
LBB0_14:
	movq	_dp@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_save_string
	movl	%eax, (%r14)
	movsbl	%bl, %esi
	movl	%eax, %edi
	callq	_save_char
	movl	%eax, (%r14)
	movl	%eax, %edi
	movl	$39, %esi
	jmp	LBB0_20
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	movb	$92, %bl
	testl	%edi, %edi
	je	LBB0_11
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dp,4,2                         ## @dp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%'"

L_.str.1:                               ## @.str.1
	.asciz	"%{"

	.no_dead_strip	_cvtchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvtchar
_cvtchar:                               ; @cvtchar
	.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	x19, x0
	ldrsb	w8, [x0]
	cmp	w8, #94
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #92
	b.ne	LBB0_7
; %bb.2:
	ldrsb	w8, [x19, #1]
	and	w21, w8, #0xff
	sub	w9, w8, #36
	cmp	w9, #56
	b.hi	LBB0_22
; %bb.3:
	mov	w10, #1
	lsl	x10, x10, x9
	tst	x10, #0xf000
	b.ne	LBB0_17
; %bb.4:
	mov	w10, #1
	lsl	x9, x10, x9
	mov	x10, #11
	movk	x10, #256, lsl #48
	tst	x9, x10
	b.eq	LBB0_22
; %bb.5:
	mov	w19, #2
	b	LBB0_9
LBB0_6:
	ldrb	w8, [x19, #1]
	and	w21, w8, #0x1f
	mov	w19, #2
	b	LBB0_9
LBB0_7:
	and	w21, w8, #0xff
LBB0_8:
	mov	w19, #1
LBB0_9:
	and	w20, w21, #0xff
	mov	x0, x20
	bl	_isgraph
Lloh0:
	adrp	x22, _dp@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dp@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.10:
	sub	w8, w20, #39
	cmp	w8, #53
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #33
	movk	x9, #8, lsl #16
	movk	x9, #32, lsl #48
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_21
LBB0_11:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_save_string
	str	w0, [x22]
	and	w8, w21, #0xff
	cmp	w20, #100
	b.lo	LBB0_13
; %bb.12:
	mov	w9, #41
	mul	w8, w8, w9
	lsr	w8, w8, #12
	orr	w1, w8, #0x30
	bl	_save_char
	str	w0, [x22]
	b	LBB0_14
LBB0_13:
	cmp	w8, #10
	b.lo	LBB0_15
LBB0_14:
	and	w8, w21, #0xff
	mov	w9, #205
	mul	w8, w8, w9
	lsr	w8, w8, #11
	mul	w9, w8, w9
	lsr	w9, w9, #11
	mov	w10, #10
	msub	w8, w9, w10, w8
	orr	w8, w8, #0x30
	and	w1, w8, #0xff
	bl	_save_char
	str	w0, [x22]
LBB0_15:
	and	w8, w21, #0xff
	mov	w9, #205
	mul	w8, w8, w9
	lsr	w8, w8, #11
	mov	w9, #10
	msub	w8, w8, w9, w21
	orr	w8, w8, #0x30
	and	w1, w8, #0xff
	bl	_save_char
	str	w0, [x22]
	mov	w1, #125
LBB0_16:
	bl	_save_char
	str	w0, [x22]
	mov	x0, x19
	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
LBB0_17:
	sxtb	w0, w21
	bl	_UChar
	sub	w8, w0, #48
	cmp	w8, #9
	b.hi	LBB0_23
; %bb.18:
	mov	x20, #0
	mov	w21, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x20
	ldrb	w9, [x8, #1]
	add	w9, w9, w21, lsl #3
	sub	w21, w9, #48
	ldrsb	w0, [x8, #2]
	bl	_UChar
	sub	w8, w0, #48
	add	x20, x20, #1
	cmp	w8, #10
	b.lo	LBB0_19
; %bb.20:
	add	w19, w20, #1
	b	LBB0_9
LBB0_21:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_save_string
	str	w0, [x22]
	sxtb	w1, w21
	bl	_save_char
	str	w0, [x22]
	mov	w1, #39
	b	LBB0_16
LBB0_22:
	mov	w9, #1
	mov	w10, #92
	mov	w11, #2
	cmp	w8, #0
	csel	w21, w10, w21, eq
	csel	w19, w9, w11, eq
	b	LBB0_9
LBB0_23:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dp,4,2                         ; @dp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%'"

l_.str.1:                               ; @.str.1
	.asciz	"%{"

	.no_dead_strip	_cvtchar
.subsections_via_symbols
