	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exr_half2float
_exr_half2float:                        ## @exr_half2float
	.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
	andl	$1023, %edx                     ## imm = 0x3FF
	movq	_HALF_FLOAT_MAX_BIASED_EXP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	andl	%edi, %ecx
	cmpl	%esi, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_FLOAT_MAX_BIASED_EXP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %edx
	movl	$8388607, %esi                  ## imm = 0x7FFFFF
	cmovel	%edx, %esi
	jmp	LBB0_10
LBB0_2:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.9:
	shll	$13, %edx
	shll	$13, %ecx
	movq	_HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPCREL(%rip), %rsi
	addl	(%rsi), %ecx
	movl	%edx, %esi
	jmp	LBB0_10
LBB0_3:
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	movq	_HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_7
## %bb.6:
	movl	%edx, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rdx), %esi
	addl	$-8388608, %ecx                 ## imm = 0xFF800000
	testl	$256, %edx                      ## imm = 0x100
	movl	%esi, %edx
	jne	LBB0_7
LBB0_8:
	shll	$14, %esi
	andl	$8372224, %esi                  ## imm = 0x7FC000
	jmp	LBB0_10
LBB0_4:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
LBB0_10:
	shll	$16, %eax
	andl	$-2147483648, %eax              ## imm = 0x80000000
	orl	%esi, %eax
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HALF_FLOAT_MAX_BIASED_EXP,4,2  ## @HALF_FLOAT_MAX_BIASED_EXP
	.comm	_FLOAT_MAX_BIASED_EXP,4,2       ## @FLOAT_MAX_BIASED_EXP
	.comm	_HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP,4,2 ## @HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP
	.no_dead_strip	_exr_half2float
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exr_half2float
_exr_half2float:                        ; @exr_half2float
	.cfi_startproc
; %bb.0:
	and	w9, w0, #0x3ff
Lloh0:
	adrp	x8, _HALF_FLOAT_MAX_BIASED_EXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HALF_FLOAT_MAX_BIASED_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	and	w8, w10, w0
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FLOAT_MAX_BIASED_EXP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLOAT_MAX_BIASED_EXP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w10, #8388607
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	b	LBB0_9
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	lsl	w9, w9, #13
Lloh6:
	adrp	x10, _HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w8, w10, w8, lsl #13
	b	LBB0_9
LBB0_4:
	cbz	w9, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tbz	w0, #9, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	lsl	w9, w9, #1
	sub	w8, w8, #2048, lsl #12          ; =8388608
	tbnz	w10, #8, LBB0_6
LBB0_7:
	ubfiz	w9, w9, #14, #9
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	lsr	w10, w0, #15
	bfi	w9, w10, #31, #1
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HALF_FLOAT_MAX_BIASED_EXP,4,2  ; @HALF_FLOAT_MAX_BIASED_EXP
	.comm	_FLOAT_MAX_BIASED_EXP,4,2       ; @FLOAT_MAX_BIASED_EXP
	.comm	_HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP,4,2 ; @HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP
	.no_dead_strip	_exr_half2float
.subsections_via_symbols
