	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function textual_leaf_to_string
_textual_leaf_to_string:                ## @textual_leaf_to_string
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movswl	2(%rdi), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_min
	cmpl	$1, %eax
	jbe	LBB0_5
## %bb.6:
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
## %bb.7:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
LBB0_5:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %edx
	shll	$2, %edx
	xorl	%eax, %eax
	addl	$-8, %edx
	je	LBB0_14
## %bb.9:
	decq	%r15
	je	LBB0_14
## %bb.10:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	andq	$-4, %rcx
	movl	12(%rbx,%rcx), %esi
	leal	(,%rax,8), %ecx
	notb	%cl
	andb	$24, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	testb	%sil, %sil
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	%sil, (%r14,%rax)
	incl	%eax
	cmpl	%edx, %eax
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rax, %r15
	ja	LBB0_11
LBB0_14:
	movl	%eax, %ecx
	movb	$0, (%r14,%rcx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_textual_leaf_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function textual_leaf_to_string
_textual_leaf_to_string:                ; @textual_leaf_to_string
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldrsh	w0, [x0, #2]
	mov	w1, #256
	bl	_min
	cmp	w0, #1
	b.ls	LBB0_5
; %bb.3:
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_5
; %bb.4:
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	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_9:
	mov	x8, x0
	mov	w0, #0
	lsl	w8, w8, #2
	sub	w8, w8, #8
	cbz	w8, LBB0_15
; %bb.10:
	sub	x9, x21, #1
	cbz	x9, LBB0_15
; %bb.11:
	mov	x0, #0
	add	x10, x20, #12
	mov	w11, #24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	and	x12, x0, #0xfffffffffffffffc
	ldr	w12, [x10, x12]
	bic	w13, w11, w0, lsl #3
	asr	w12, w12, w13
	tst	w12, #0xff
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	w12, [x19, x0]
	add	w0, w0, #1
	cmp	w0, w8
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x9, x0
	b.hi	LBB0_12
LBB0_15:
	strb	wzr, [x19, w0, uxtw]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_textual_leaf_to_string
.subsections_via_symbols
