	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function float_32_to_16
LCPI0_0:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x44800000                      ## float 1024
LCPI0_2:
	.long	0x45000000                      ## float 2048
LCPI0_3:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_float_32_to_16:                        ## @float_32_to_16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_2
	jp	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_23
LBB0_2:
	movq	%rdi, %rbx
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_isnan
	movw	$31745, %cx                     ## imm = 0x7C01
	testq	%rax, %rax
	jne	LBB0_23
## %bb.3:
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_isinf
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorps	%xmm0, %xmm0
	xorl	%ecx, %ecx
	ucomiss	(%rbx), %xmm0
	setbe	%cl
	shll	$15, %ecx
	addl	$-1024, %ecx                    ## imm = 0xFC00
	jmp	LBB0_23
LBB0_5:
	movaps	-32(%rbp), %xmm2                ## 16-byte Reload
	andps	LCPI0_0(%rip), %xmm2
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addss	%xmm2, %xmm2
	decl	%eax
	ucomiss	%xmm2, %xmm0
	ja	LBB0_6
	jmp	LBB0_10
LBB0_7:
	ucomiss	LCPI0_2(%rip), %xmm2
	jb	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	mulss	%xmm0, %xmm2
	incl	%eax
	ucomiss	%xmm1, %xmm2
	jae	LBB0_9
LBB0_10:
	cvttss2si	%xmm2, %rcx
	movl	%ecx, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdx, %xmm0
	subss	%xmm0, %xmm2
	ucomiss	LCPI0_3(%rip), %xmm2
	sbbl	$-1, %ecx
	movl	$31744, %edx                    ## imm = 0x7C00
	cmpl	$5, %eax
	jg	LBB0_22
## %bb.11:
	leal	25(%rax), %edx
	cmpl	$-25, %eax
	jg	LBB0_20
## %bb.12:
	movl	%eax, %esi
	negl	%esi
	andl	$7, %esi
	je	LBB0_16
## %bb.13:
	negl	%esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	shrl	%ecx
	decl	%edi
	cmpl	%edi, %esi
	jne	LBB0_14
## %bb.15:
	subl	%edi, %edx
LBB0_16:
	addl	$31, %eax
	cmpl	$7, %eax
	jb	LBB0_19
## %bb.17:
	decl	%edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	shrl	$8, %ecx
	addl	$8, %edx
	jne	LBB0_18
LBB0_19:
	andl	$1023, %ecx                     ## imm = 0x3FF
	jmp	LBB0_21
LBB0_20:
	shll	$10, %edx
	andl	$1023, %ecx                     ## imm = 0x3FF
	orl	%edx, %ecx
LBB0_21:
	movl	%ecx, %edx
LBB0_22:
	xorps	%xmm0, %xmm0
	xorl	%ecx, %ecx
	ucomiss	(%rbx), %xmm0
	seta	%cl
	shll	$15, %ecx
	orl	%edx, %ecx
LBB0_23:
	movzwl	%cx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_float_32_to_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function float_32_to_16
_float_32_to_16:                        ; @float_32_to_16
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	ldr	s8, [x0]
	fcmp	s8, #0.0
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_20
LBB0_2:
	mov	x19, x0
	fmov	s0, s8
	bl	_isnan
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #31745
	b	LBB0_20
LBB0_4:
	ldr	s0, [x19]
	bl	_isinf
	cbz	x0, LBB0_6
; %bb.5:
	ldr	s0, [x19]
	fcmp	s0, #0.0
	mov	w8, #31744
	mov	w9, #-1024
	csel	w8, w9, w8, mi
	b	LBB0_20
LBB0_6:
	fabs	s0, s8
	mov	w8, #1149239296
	fmov	s1, w8
	fcmp	s0, s1
	b.pl	LBB0_9
; %bb.7:
	mov	w8, #0
	mov	w9, #1149239296
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	fadd	s0, s0, s0
	sub	w8, w8, #1
	fmov	s1, w9
	fcmp	s0, s1
	b.mi	LBB0_8
	b	LBB0_12
LBB0_9:
	movi.2s	v1, #69, lsl #24
	mov	w8, #0
	fcmp	s0, s1
	b.lt	LBB0_12
; %bb.10:
	fmov	s1, #0.50000000
	movi.2s	v2, #69, lsl #24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	fmul	s0, s0, s1
	add	w8, w8, #1
	fcmp	s0, s2
	b.ge	LBB0_11
LBB0_12:
	fcvtzu	w9, s0
	fcvtzu	s1, s0
	ucvtf	s1, s1
	fsub	s0, s0, s1
	fmov	s1, #0.50000000
	fcmp	s0, s1
	cinc	w9, w9, ge
	cmp	w8, #5
	b.le	LBB0_14
; %bb.13:
	mov	w9, #31744
	b	LBB0_19
LBB0_14:
	cmn	w8, #25
	b.gt	LBB0_18
; %bb.15:
	add	w8, w8, #24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	lsr	w9, w9, #1
	adds	w8, w8, #1
	b.lo	LBB0_16
; %bb.17:
	ubfx	w9, w10, #1, #10
	b	LBB0_19
LBB0_18:
	add	w8, w8, #25
	bfi	w9, w8, #10, #22
LBB0_19:
	ldr	s0, [x19]
	fcmp	s0, #0.0
	cset	w8, mi
	orr	w8, w9, w8, lsl #15
LBB0_20:
	and	w0, w8, #0xffff
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_float_32_to_16
.subsections_via_symbols
