	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_exp_bitstring            ## -- Begin function write_exp_bitstring
	.p2align	4, 0x90
_write_exp_bitstring:                   ## @write_exp_bitstring
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_HOST_CHAR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rdi,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_BYTES_TO_EXP_ELEM
	movl	%eax, %r15d
	movq	_expout_ptr@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	(%r15,%rax), %esi
	addl	$2, %esi
	movq	_expout_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	%edi, %esi
	jl	LBB0_2
## %bb.1:
	addl	%edi, %edi
	addl	$10, %esi
	callq	_max
	movl	%eax, (%rbx)
	movq	_expout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r12
	movl	%eax, %edi
	callq	_EXP_ELEM_TO_BYTES
	leaq	8(%rax), %rsi
	movq	%r12, %rdi
	movq	_expout_ptr@GOTPCREL(%rip), %r12
	callq	_xrealloc
	movq	%rax, (%rbx)
LBB0_2:
	movq	%r13, %rbx
	shrq	$32, %rbx
	movl	%r13d, %edi
	callq	_write_exp_elt_longcst
	movq	_expout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r15d, (%r12)
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_exp_elt_longcst          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_CHAR_BIT,4,2              ## @HOST_CHAR_BIT
	.comm	_expout_ptr,4,2                 ## @expout_ptr
	.comm	_expout_size,4,2                ## @expout_size
	.comm	_expout,8,3                     ## @expout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_exp_bitstring            ; -- Begin function write_exp_bitstring
	.p2align	2
_write_exp_bitstring:                   ; @write_exp_bitstring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _HOST_CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST_CHAR_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w19, w8
	sub	w9, w9, #1
	sdiv	w20, w9, w8
	mov	x0, x20
	bl	_BYTES_TO_EXP_ELEM
	mov	x21, x0
Lloh3:
	adrp	x23, _expout_ptr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _expout_ptr@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w0, w8
	add	w8, w8, #2
Lloh5:
	adrp	x22, _expout_size@GOTPAGE
Lloh6:
	ldr	x22, [x22, _expout_size@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh7:
	adrp	x24, _expout@GOTPAGE
Lloh8:
	ldr	x24, [x24, _expout@GOTPAGEOFF]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	lsl	w0, w9, #1
	add	w1, w8, #10
	bl	_max
	str	w0, [x22]
	ldr	x22, [x24]
	bl	_EXP_ELEM_TO_BYTES
	add	x1, x0, #8
	mov	x0, x22
	bl	_xrealloc
	str	x0, [x24]
LBB0_2:
	lsr	x22, x19, #32
	mov	x0, x19
	bl	_write_exp_elt_longcst
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldrsw	x9, [x23]
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x23]
	add	w8, w8, w21
	str	w8, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_exp_elt_longcst
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_CHAR_BIT,4,2              ; @HOST_CHAR_BIT
	.comm	_expout_ptr,4,2                 ; @expout_ptr
	.comm	_expout_size,4,2                ; @expout_size
	.comm	_expout,8,3                     ; @expout
.subsections_via_symbols
