	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	___HI
	movl	%eax, %ebx
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	callq	___LO
	movl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$20, %eax
	andl	$2047, %eax                     ## imm = 0x7FF
	cmpl	$2047, %eax                     ## imm = 0x7FF
	je	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	orl	%ebx, %ecx
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	je	LBB0_17
## %bb.3:
	movq	_two54@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	movapd	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	___HI
	cmpl	$-50001, %r14d                  ## imm = 0xFFFF3CAF
	jg	LBB0_4
## %bb.8:
	movq	_tiny@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	addsd	%xmm0, %xmm0
	jmp	LBB0_17
LBB0_4:
	shrl	$20, %eax
	andl	$2047, %eax                     ## imm = 0x7FF
	addl	$-54, %eax
LBB0_5:
	addl	%r14d, %eax
	cmpl	$2047, %eax                     ## imm = 0x7FF
	jl	LBB0_10
LBB0_6:
	movq	_huge@GOTPCREL(%rip), %rax
LBB0_7:
	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
	movapd	%xmm1, %xmm0
	jmp	LBB0_17
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.11:
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_17
LBB0_12:
	cmpl	$-54, %eax
	jg	LBB0_15
## %bb.13:
	cmpl	$50001, %r14d                   ## imm = 0xC351
	jge	LBB0_6
## %bb.14:
	movq	_tiny@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movq	_twom54@GOTPCREL(%rip), %rax
LBB0_16:
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	mulsd	(%rax), %xmm0
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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, #48
	.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
	mov	x19, x0
                                        ; kill: def $d0 killed $d0 def $q0
	str	q0, [sp]                        ; 16-byte Folded Spill
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	___HI
	mov	x20, x0
	ldr	q0, [sp]                        ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	___LO
	ubfx	w8, w20, #20, #11
	cmp	w8, #2047
	b.eq	LBB0_5
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
	and	w8, w20, #0x7fffffff
	orr	w8, w0, w8
	cbz	w8, LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _two54@GOTPAGE
Lloh1:
	ldr	x8, [x8, _two54@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmul	d0, d1, d0
	str	q0, [sp]                        ; 16-byte Folded Spill
                                        ; kill: def $d0 killed $d0 killed $q0
	bl	___HI
	mov	w8, #-50001
	cmp	w19, w8
	b.gt	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _tiny@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fadd	d0, d0, d0
	b	LBB0_17
LBB0_6:
	ubfx	w8, w0, #20, #11
	sub	w8, w8, #54
LBB0_7:
	add	w8, w8, w19
	cmp	w8, #2047
	b.lt	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _huge@GOTPAGE
Lloh6:
	ldr	x8, [x8, _huge@GOTPAGEOFF]
LBB0_9:
	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_17
LBB0_10:
	cmp	w8, #0
	b.le	LBB0_12
LBB0_11:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	b	LBB0_17
LBB0_12:
	cmn	w8, #54
	b.gt	LBB0_15
; %bb.13:
	mov	w8, #50001
	cmp	w19, w8
	b.ge	LBB0_8
; %bb.14:
Lloh7:
	adrp	x8, _tiny@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tiny@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh9:
	adrp	x8, _twom54@GOTPAGE
Lloh10:
	ldr	x8, [x8, _twom54@GOTPAGEOFF]
LBB0_16:
	ldr	d0, [x8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	fmul	d1, d1, d0
	mov.16b	v0, v1
LBB0_17:
                                        ; kill: def $d0 killed $d0 killed $q0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.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
