	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function byte_to_nibble
_byte_to_nibble:                        ## @byte_to_nibble
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpb	$0, (%rdx)
	je	LBB0_3
## %bb.1:
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_9
## %bb.2:
	addb	$-48, %al
	orb	%al, (%rsi)
	incq	%rdi
	movb	$0, (%rdx)
	movl	$1, %eax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movb	(%rdi), %r8b
	testb	%r8b, %r8b
	je	LBB0_8
## %bb.5:
	movl	%eax, %eax
	addq	$2, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	shlb	$4, %r8b
	movb	%r8b, (%rsi,%rax)
	movzbl	-1(%rdi), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addb	$-48, %cl
	orb	%r8b, %cl
	movb	%cl, (%rsi,%rax)
	incq	%rax
	movzbl	(%rdi), %r8d
	addq	$2, %rdi
	testb	%r8b, %r8b
	jne	LBB0_6
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	movb	$1, (%rdx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_byte_to_nibble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function byte_to_nibble
_byte_to_nibble:                        ; @byte_to_nibble
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldrb	w9, [x2]
	cbz	w9, LBB0_3
; %bb.1:
	ldrb	w9, [x8]
	cbz	w9, LBB0_8
; %bb.2:
	add	x8, x8, #1
	sub	w9, w9, #48
	ldrb	w10, [x1]
	orr	w9, w10, w9
	strb	w9, [x1]
	strb	wzr, [x2]
	mov	w0, #1
	ldrb	w9, [x8]
	cbnz	w9, LBB0_4
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ldrb	w9, [x8]
	cbz	w9, LBB0_7
LBB0_4:
	mov	w0, w0
	add	x8, x8, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #4
	strb	w9, [x1, x0]
	ldurb	w10, [x8, #-1]
	cbz	w10, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w10, w10, #48
	orr	w9, w10, w9
	strb	w9, [x1, x0]
	add	x0, x0, #1
	ldrb	w9, [x8], #2
	cbnz	w9, LBB0_5
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_8:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_9:
	mov	w8, #1
	strb	w8, [x2]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_byte_to_nibble
.subsections_via_symbols
