	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_ibm_extended
_encode_ibm_extended:                   ## @encode_ibm_extended
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_mips_double_format@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_ieee_double_format@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	(%rdx), %rax
	movq	%rax, -40(%rbp)
	movq	_rvc_normal@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_normalize
	movq	-40(%rbp), %rax
LBB0_5:
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_round_for_format
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_encode_ieee_double
	movq	-48(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %r15
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_do_add
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_round_for_format
	addq	$16, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_encode_ieee_double
	jmp	LBB0_8
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ieee_double_format,8,3         ## @ieee_double_format
	.comm	_mips_double_format,8,3         ## @mips_double_format
	.comm	_rvc_normal,8,3                 ## @rvc_normal
	.no_dead_strip	_encode_ibm_extended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_ibm_extended
_encode_ibm_extended:                   ; @encode_ibm_extended
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ieee_double_format@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ieee_double_format@GOTPAGEOFF]
Lloh2:
	adrp	x10, _mips_double_format@GOTPAGE
Lloh3:
	ldr	x10, [x10, _mips_double_format@GOTPAGEOFF]
	cmp	x8, #0
	csel	x20, x10, x9, eq
	ldr	x8, [x2]
	str	x8, [sp, #16]
Lloh4:
	adrp	x21, _rvc_normal@GOTPAGE
Lloh5:
	ldr	x21, [x21, _rvc_normal@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #16
	bl	_normalize
	ldr	x8, [sp, #16]
LBB0_2:
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x20
	bl	_round_for_format
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x19
	bl	_encode_ieee_double
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x0, sp, #8
	add	x1, sp, #16
	add	x2, sp, #24
	mov	w3, #1
	bl	_do_add
	add	x1, sp, #8
	mov	x0, x20
	bl	_round_for_format
	add	x1, x19, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_encode_ieee_double
	b	LBB0_5
LBB0_4:
	stp	xzr, xzr, [x19, #16]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ieee_double_format,8,3         ; @ieee_double_format
	.comm	_mips_double_format,8,3         ; @mips_double_format
	.comm	_rvc_normal,8,3                 ; @rvc_normal
	.no_dead_strip	_encode_ibm_extended
.subsections_via_symbols
