	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tinytest_format_hex_           ## -- Begin function tinytest_format_hex_
	.p2align	4, 0x90
_tinytest_format_hex_:                  ## @tinytest_format_hex_
	.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	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	(%rsi,%rsi), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rcx
	testq	%r14, %r14
	je	LBB0_12
## %bb.5:
	cmpq	$1, %r14
	jne	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	movq	%rax, %rcx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
LBB0_8:
	movq	%r14, %r8
	andq	$-2, %r8
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %r9
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rdi), %ebx
	movq	%rbx, %rsi
	shrq	$4, %rsi
	movzbl	(%rsi,%r9), %edx
	movb	%dl, (%rcx)
	andl	$15, %ebx
	movzbl	(%rbx,%r9), %edx
	movb	%dl, 1(%rcx)
	movzbl	1(%r15,%rdi), %edx
	movq	%rdx, %rsi
	shrq	$4, %rsi
	movzbl	(%rsi,%r9), %ebx
	movb	%bl, 2(%rcx)
	andl	$15, %edx
	movzbl	(%rdx,%r9), %edx
	movb	%dl, 3(%rcx)
	addq	$4, %rcx
	addq	$2, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:
	testb	$1, %r14b
	je	LBB0_12
## %bb.11:
	movzbl	(%r15,%rdi), %edx
	movq	%rdx, %rsi
	shrq	$4, %rsi
	leaq	L_.str.2(%rip), %rdi
	movb	(%rsi,%rdi), %bl
	movb	%bl, (%rcx)
	andl	$15, %edx
	movb	(%rdx,%rdi), %dl
	movb	%dl, 1(%rcx)
	addq	$2, %rcx
LBB0_12:
	movb	$0, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null"

L_.str.1:                               ## @.str.1
	.asciz	"<allocation failure>"

L_.str.2:                               ## @.str.2
	.asciz	"0123456789ABCDEF"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tinytest_format_hex_           ; -- Begin function tinytest_format_hex_
	.p2align	2
_tinytest_format_hex_:                  ; @tinytest_format_hex_
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w0, #1
	bfi	x0, x1, #1, #63
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x9, x0
	cbz	x20, LBB0_14
; %bb.3:
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x20, #1
	b.ne	LBB0_8
; %bb.4:
	mov	x10, #0
	mov	x9, x0
	b	LBB0_11
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strdup
LBB0_8:
	and	x10, x20, #0xfffffffffffffffe
	add	x9, x0, x10, lsl #1
	add	x11, x19, #1
	add	x12, x0, #3
	mov	x13, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w14, [x11, #-1]
	ldrb	w15, [x11], #2
	lsr	x16, x14, #4
	lsr	x17, x15, #4
	ldrb	w16, [x8, x16]
	ldrb	w17, [x8, x17]
	sturb	w16, [x12, #-3]
	and	x14, x14, #0xf
	and	x15, x15, #0xf
	ldrb	w14, [x8, x14]
	ldrb	w15, [x8, x15]
	sturb	w17, [x12, #-1]
	sturb	w14, [x12, #-2]
	strb	w15, [x12], #4
	subs	x13, x13, #2
	b.ne	LBB0_9
; %bb.10:
	cmp	x10, x20
	b.eq	LBB0_14
LBB0_11:
	sub	x11, x20, x10
	add	x10, x19, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x10], #1
	lsr	x13, x12, #4
	ldrb	w13, [x8, x13]
	strb	w13, [x9]
	and	x12, x12, #0xf
	ldrb	w13, [x8, x12]
	add	x12, x9, #2
	strb	w13, [x9, #1]
	mov	x9, x12
	subs	x11, x11, #1
	b.ne	LBB0_12
; %bb.13:
	mov	x9, x12
LBB0_14:
	strb	wzr, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null"

l_.str.1:                               ; @.str.1
	.asciz	"<allocation failure>"

l_.str.2:                               ; @.str.2
	.asciz	"0123456789ABCDEF"

.subsections_via_symbols
