	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exr_halflt2uint
_exr_halflt2uint:                       ## @exr_halflt2uint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movl	%edi, %edx
	sarl	$10, %edx
	leal	-15(%rdx), %ecx
	cmpl	$-15, %ecx
	ja	LBB0_4
## %bb.1:
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_3
## %bb.2:
	shrl	$9, %eax
	popq	%rbp
	retq
LBB0_4:
	shll	$6, %eax
	addl	$65536, %eax                    ## imm = 0x10000
	movb	$15, %cl
	subb	%dl, %cl
	sarl	%cl, %eax
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
	testl	$32768, %eax                    ## imm = 0x8000
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exr_halflt2uint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exr_halflt2uint
_exr_halflt2uint:                       ; @exr_halflt2uint
	.cfi_startproc
; %bb.0:
	asr	w8, w0, #10
	sub	w9, w8, #15
	lsl	w10, w0, #6
	add	w10, w10, #16, lsl #12          ; =65536
	mov	w11, #15
	sub	w8, w11, w8
	asr	w8, w10, w8
	tst	w0, #0x8000
	mov	w10, #65535
	csel	w10, w10, wzr, eq
	lsr	w11, w0, #9
	cmp	w0, #1023
	csel	w10, w10, w11, hi
	cmn	w9, #15
	csel	w0, w8, w10, hi
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exr_halflt2uint
.subsections_via_symbols
