	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phex                           ## -- Begin function phex
	.p2align	4, 0x90
_phex:                                  ## @phex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	cmpl	$2, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$4, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$8, %esi
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_get_cell
	movq	%rax, %rbx
	movq	_thirty_two@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	sarl	%cl, %r14d
	movzwl	%r14w, %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_get_cell
	movq	%rax, %rbx
	movzwl	%r14w, %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_get_cell
	movq	%rax, %rbx
	movzwl	%r14w, %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08lx%08lx"

	.comm	_thirty_two,4,2                 ## @thirty_two
L_.str.1:                               ## @.str.1
	.asciz	"%08lx"

L_.str.2:                               ## @.str.2
	.asciz	"%04x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phex                           ; -- Begin function phex
	.p2align	2
_phex:                                  ; @phex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	cmp	w1, #2
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #4
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #8
	b.ne	LBB0_4
; %bb.3:
	bl	_get_cell
	mov	x19, x0
Lloh0:
	adrp	x8, _thirty_two@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thirty_two@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w20, w8
	mov	w9, w20
	str	x9, [sp]
	and	w2, w8, #0xffff
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	bl	_get_cell
	mov	x19, x0
	and	w2, w20, #0xffff
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	bl	_get_cell
	mov	x19, x0
	and	w2, w20, #0xffff
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_sprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08lx%08lx"

	.comm	_thirty_two,4,2                 ; @thirty_two
l_.str.1:                               ; @.str.1
	.asciz	"%08lx"

l_.str.2:                               ; @.str.2
	.asciz	"%04x"

.subsections_via_symbols
