	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function scalbn
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
LCPI0_1:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_scalbn
	.p2align	4, 0x90
_scalbn:                                ## @scalbn
	.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
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_EXTRACT_WORDS
	movq	_two54@GOTPCREL(%rip), %rax
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	mulsd	(%rax), %xmm0
	movapd	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_GET_HIGH_WORD
	cmpl	$-50001, %ebx                   ## imm = 0xFFFF3CAF
	jg	LBB0_3
## %bb.1:
	movq	_tiny@GOTPCREL(%rip), %rax
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
LBB0_2:
	mulsd	(%rax), %xmm0
	jmp	LBB0_11
LBB0_3:
	cmpl	$2101, %ebx                     ## imm = 0x835
	jl	LBB0_5
## %bb.4:
	movq	_huge@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movapd	-32(%rbp), %xmm2                ## 16-byte Reload
	andpd	LCPI0_0(%rip), %xmm2
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [NaN,NaN]
	andpd	%xmm0, %xmm1
	orpd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm1
LBB0_10:
	movapd	%xmm1, %xmm0
	jmp	LBB0_11
LBB0_5:
	cmpl	$55, %ebx
	jl	LBB0_7
## %bb.6:
	shll	$20, %ebx
	addl	$-56623104, %ebx                ## imm = 0xFCA00000
	movaps	-32(%rbp), %xmm0                ## 16-byte Reload
	movl	%ebx, %edi
	callq	_SET_HIGH_WORD
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	testl	%ebx, %ebx
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	jle	LBB0_9
## %bb.8:
	shll	$20, %ebx
	movl	%ebx, %edi
	callq	_SET_HIGH_WORD
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	movq	_twom54@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	_tiny@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	andpd	LCPI0_0(%rip), %xmm0
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [NaN,NaN]
	andpd	%xmm2, %xmm1
	orpd	%xmm0, %xmm1
	mulsd	%xmm2, %xmm1
	jmp	LBB0_10
	.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	_scalbn                         ; -- Begin function scalbn
	.p2align	2
_scalbn:                                ; @scalbn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	d0, d0, d8
	str	q0, [sp]                        ; 16-byte Folded Spill
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	_GET_HIGH_WORD
	mov	w8, #-50001
	cmp	w19, w8
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _tiny@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	fmul	d1, d1, d0
	mov.16b	v0, v1
	b	LBB0_9
LBB0_2:
	cmp	w19, #2101
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _huge@GOTPAGE
Lloh7:
	ldr	x8, [x8, _huge@GOTPAGEOFF]
Lloh8:
	ldr	d0, [x8]
	movi.2d	v1, #0xffffffffffffffff
	fneg.2d	v1, v1
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	bsl.16b	v1, v0, v2
	fmul	d0, d0, d1
	b	LBB0_9
LBB0_4:
	cmp	w19, #55
	b.lt	LBB0_6
; %bb.5:
	mov	w8, #-56623104
	add	w0, w8, w19, lsl #20
	ldr	q0, [sp]                        ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	_SET_HIGH_WORD
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	b	LBB0_9
LBB0_6:
	cmp	w19, #0
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	b.le	LBB0_8
; %bb.7:
	lsl	w0, w19, #20
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	_SET_HIGH_WORD
	ldr	q0, [sp]                        ; 16-byte Folded Reload
Lloh9:
	adrp	x8, _twom54@GOTPAGE
Lloh10:
	ldr	x8, [x8, _twom54@GOTPAGEOFF]
Lloh11:
	ldr	d1, [x8]
	fmul	d0, d0, d1
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _tiny@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
Lloh14:
	ldr	d2, [x8]
	movi.2d	v1, #0xffffffffffffffff
	fneg.2d	v1, v1
	bsl.16b	v1, v2, v0
	fmul	d0, d2, d1
LBB0_9:
                                        ; kill: def $d0 killed $d0 killed $q0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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
