	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_hex
_print_hex:                             ## @print_hex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_9
## %bb.2:
	movl	%esi, %r9d
	xorl	%eax, %eax
	leaq	L_.str(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	andl	$15, %esi
	movzbl	(%rsi,%r8), %ecx
	movb	%cl, (%rdi,%rax)
	incq	%rax
	cmpl	$16, %edx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$4, %edx
	cmpq	%r9, %rax
	jb	LBB0_3
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	testl	%esi, %esi
	jle	LBB0_9
## %bb.7:
	movb	$48, (%rdi)
	movl	$1, %eax
                                        ## 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
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdef"

	.no_dead_strip	_print_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_hex
_print_hex:                             ; @print_hex
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	w2, LBB0_6
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x8, #0
	mov	w9, w1
Lloh0:
	adrp	x10, l_.str@PAGE
Lloh1:
	add	x10, x10, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	x11, x2, #0xf
	ldrb	w11, [x10, x11]
	strb	w11, [x0, x8]
	add	x8, x8, #1
	cmp	w2, #16
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w2, w2, #4
	cmp	x8, x9
	b.lo	LBB0_3
LBB0_5:
	mov	x0, x8
	ret
LBB0_6:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.7:
	mov	w8, #48
	strb	w8, [x0]
	mov	w8, #1
	mov	x0, x8
	ret
LBB0_8:
	mov	w8, #0
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdef"

	.no_dead_strip	_print_hex
.subsections_via_symbols
