	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function outputushort
LCPI0_0:
	.long	1040384                         ## 0xfe000
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
LCPI0_1:
	.long	36864                           ## 0x9000
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
LCPI0_2:
	.long	87                              ## 0x57
	.long	87                              ## 0x57
	.long	87                              ## 0x57
	.long	87                              ## 0x57
LCPI0_3:
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
LCPI0_4:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_outputushort
	.p2align	4, 0x90
_outputushort:                          ## @outputushort
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	js	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movl	%edi, %ecx
	shrl	$8, %ecx
	movl	%edi, %edx
	shrl	$4, %edx
	movd	%edi, %xmm1
	pinsrd	$1, %ecx, %xmm1
	pinsrd	$2, %edx, %xmm1
	pinsrd	$3, %edi, %xmm1
	pand	LCPI0_0(%rip), %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	LCPI0_1(%rip), %xmm0
	movaps	LCPI0_3(%rip), %xmm2            ## xmm2 = [48,48,48,48]
	blendvps	%xmm0, LCPI0_2(%rip), %xmm2
	shrl	$12, %eax
	pinsrd	$0, %eax, %xmm1
	paddd	%xmm2, %xmm1
	pshufb	LCPI0_4(%rip), %xmm1            ## xmm1 = xmm1[0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u]
	movd	%xmm1, _outputushort.buff(%rip)
	leaq	_outputushort.buff(%rip), %rsi
	popq	%rbp
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	$1, %edi
	movl	$5, %edx
	xorl	%eax, %eax
	jmp	_write                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @outputushort.buff
_outputushort.buff:
	.ascii	"\000\000\000\000\n"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xxxx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function outputushort
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_outputushort
	.p2align	2
_outputushort:                          ; @outputushort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	tbnz	w0, #31, LBB0_2
; %bb.1:
	and	w8, w0, #0xfe000
	mov	w9, #48
	mov	w10, #87
	cmp	w8, #9, lsl #12                 ; =36864
	csel	w8, w10, w9, hi
	add	w11, w8, w0, lsr #12
Lloh0:
	adrp	x8, _outputushort.buff@PAGE
Lloh1:
	add	x8, x8, _outputushort.buff@PAGEOFF
	strb	w11, [x8]
	dup.2s	v0, w0
Lloh2:
	adrp	x11, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x11, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #15
	and.8b	v0, v0, v1
	movi.2s	v1, #9
	cmhi.2s	v1, v0, v1
	movi.2s	v2, #48
	movi.2s	v3, #87
	bsl.8b	v1, v3, v2
	add.2s	v0, v1, v0
	mov.s	w11, v0[1]
	strb	w11, [x8, #2]
	fmov	w11, s0
	strb	w11, [x8, #1]
	and	w11, w0, #0xf
	cmp	w11, #9
	csel	w9, w10, w9, hi
	add	w9, w9, w11
	strb	w9, [x8, #3]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
LBB0_3:
	mov	w9, #5
	stp	x8, x9, [sp]
	mov	w0, #1
	bl	_write
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_outputushort.buff:                     ; @outputushort.buff
	.ascii	"\000\000\000\000\n"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xxxx\n"

.subsections_via_symbols
