	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldexp                          ## -- Begin function ldexp
	.p2align	4, 0x90
_ldexp:                                 ## @ldexp
	.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
	movl	%edi, %ebx
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_EXTRACT_WORDS
	movq	_two54@GOTPCREL(%rip), %rax
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	(%rax), %xmm0
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_GET_HIGH_WORD
	cmpl	$-50001, %ebx                   ## imm = 0xFFFF3CAF
	jg	LBB0_2
## %bb.1:
	movq	_tiny@GOTPCREL(%rip), %rax
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_10:
	mulsd	(%rax), %xmm0
	jmp	LBB0_11
LBB0_2:
	cmpl	$2101, %ebx                     ## imm = 0x835
	jl	LBB0_4
## %bb.3:
	movq	_huge@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_8:
	callq	__copysign
	mulsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	jmp	LBB0_11
LBB0_4:
	cmpl	$55, %ebx
	jl	LBB0_6
## %bb.5:
	shll	$20, %ebx
	addl	$-56623104, %ebx                ## imm = 0xFCA00000
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%ebx, %edi
	callq	_SET_HIGH_WORD
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	testl	%ebx, %ebx
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jle	LBB0_7
## %bb.9:
	shll	$20, %ebx
	movaps	%xmm1, %xmm0
	movl	%ebx, %edi
	callq	_SET_HIGH_WORD
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	_twom54@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_tiny@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_two54,8,3                      ## @two54
	.comm	_tiny,8,3                       ## @tiny
	.comm	_huge,8,3                       ## @huge
	.comm	_twom54,8,3                     ## @twom54
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldexp                          ; -- Begin function ldexp
	.p2align	2
_ldexp:                                 ; @ldexp
	.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
	mov	x19, x0
	fmov	d8, d0
	bl	_EXTRACT_WORDS
Lloh0:
	adrp	x8, _two54@GOTPAGE
Lloh1:
	ldr	x8, [x8, _two54@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fmul	d8, d0, d8
	fmov	d0, d8
	bl	_GET_HIGH_WORD
	mov	w8, #-50001
	cmp	w19, w8
	b.gt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _tiny@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
LBB0_2:
	ldr	d0, [x8]
	fmul	d8, d8, d0
	b	LBB0_8
LBB0_3:
	cmp	w19, #2101
	b.lt	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _huge@GOTPAGE
Lloh6:
	ldr	x8, [x8, _huge@GOTPAGEOFF]
LBB0_5:
	ldr	d9, [x8]
	fmov	d0, d9
	fmov	d1, d8
	bl	__copysign
	fmul	d8, d9, d0
	b	LBB0_8
LBB0_6:
	cmp	w19, #55
	b.lt	LBB0_9
; %bb.7:
	mov	w8, #-56623104
	add	w0, w8, w19, lsl #20
	fmov	d0, d8
	bl	_SET_HIGH_WORD
LBB0_8:
	fmov	d0, d8
	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
LBB0_9:
	cmp	w19, #0
	b.le	LBB0_11
; %bb.10:
	lsl	w0, w19, #20
	fmov	d0, d8
	bl	_SET_HIGH_WORD
Lloh7:
	adrp	x8, _twom54@GOTPAGE
Lloh8:
	ldr	x8, [x8, _twom54@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh9:
	adrp	x8, _tiny@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_two54,8,3                      ; @two54
	.comm	_tiny,8,3                       ; @tiny
	.comm	_huge,8,3                       ; @huge
	.comm	_twom54,8,3                     ; @twom54
.subsections_via_symbols
