	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output
_output:                                ## @output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	movq	_CUR_BITS_FINISHED@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_masks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rsi), %rdx
	andq	(%rax,%rcx,8), %rdx
	movq	%rdi, %rax
	shlq	%cl, %rax
	orq	%rdx, %rax
	testq	%rcx, %rcx
	cmoveq	%rdi, %rax
	movq	%rax, 8(%rsi)
	addq	16(%rsi), %rcx
	movq	%rcx, (%rsi)
	cmpq	$8, %rcx
	jb	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	movq	%rbx, %rsi
	callq	_char_out
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	sarq	$8, %rax
	movq	%rax, 8(%rbx)
	addq	$-8, %rcx
	movq	%rcx, (%rbx)
	cmpq	$7, %rcx
	ja	LBB0_2
LBB0_3:
	movq	24(%rbx), %rcx
	movq	56(%rbx), %rax
	cmpq	32(%rbx), %rcx
	jle	LBB0_4
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	16(%rbx), %rdi
	incq	%rdi
	movq	%rdi, 16(%rbx)
	movq	_maxbits@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_9
## %bb.8:
	movq	_maxmaxcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_4:
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	40(%rbx), %rdi
	movq	%rdi, 16(%rbx)
	callq	_MAXCODE
	movq	%rax, 32(%rbx)
	movq	$0, 56(%rbx)
LBB0_11:
	cmpq	%r14, 48(%rbx)
	jne	LBB0_16
LBB0_12:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.13:
	movq	8(%rbx), %rax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	movq	%rbx, %rsi
	callq	_char_out
	movq	8(%rbx), %rax
	sarq	$8, %rax
	movq	%rax, 8(%rbx)
	addq	$-8, (%rbx)
	jne	LBB0_14
LBB0_15:
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_char                     ## TAILCALL
LBB0_9:
	callq	_MAXCODE
LBB0_10:
	movq	%rax, 32(%rbx)
	cmpq	%r14, 48(%rbx)
	je	LBB0_12
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUR_BITS_FINISHED,8,3          ## @CUR_BITS_FINISHED
	.comm	_masks,8,3                      ## @masks
	.comm	_maxbits,8,3                    ## @maxbits
	.comm	_maxmaxcode,8,3                 ## @maxmaxcode
	.no_dead_strip	_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output
_output:                                ; @output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _CUR_BITS_FINISHED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CUR_BITS_FINISHED@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x9, _masks@GOTPAGE
Lloh3:
	ldr	x9, [x9, _masks@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	ldp	x10, x11, [x1, #8]
	and	x9, x10, x9
	lsl	x10, x0, x8
	orr	x9, x9, x10
	cmp	x8, #0
	csel	x9, x0, x9, eq
	add	x8, x11, x8
	stp	x8, x9, [x1]
	cmp	x8, #8
	b.lo	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w9, #0xff
	mov	x1, x19
	bl	_char_out
	ldp	x10, x8, [x19]
	asr	x9, x8, #8
	sub	x8, x10, #8
	stp	x8, x9, [x19]
	cmp	x8, #7
	b.hi	LBB0_2
LBB0_3:
	ldp	x9, x10, [x19, #24]
	ldr	x8, [x19, #56]
	cmp	x9, x10
	b.le	LBB0_7
; %bb.4:
	cbnz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	add	x0, x8, #1
	str	x0, [x19, #16]
Lloh5:
	adrp	x8, _maxbits@GOTPAGE
Lloh6:
	ldr	x8, [x8, _maxbits@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.6:
Lloh8:
	adrp	x8, _maxmaxcode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _maxmaxcode@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	b	LBB0_9
LBB0_7:
	cbz	x8, LBB0_9
LBB0_8:
	ldr	x0, [x19, #40]
	str	x0, [x19, #16]
	bl	_MAXCODE
	str	x0, [x19, #32]
	str	xzr, [x19, #56]
LBB0_9:
	ldr	x8, [x19, #48]
	cmp	x8, x20
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	mov	x1, x19
	bl	_char_out
	ldp	x9, x8, [x19]
	asr	x8, x8, #8
	subs	x9, x9, #8
	stp	x9, x8, [x19]
	b.ne	LBB0_12
LBB0_13:
	ldr	x8, [x21]
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_flush_char
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	_MAXCODE
	str	x0, [x19, #32]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CUR_BITS_FINISHED,8,3          ; @CUR_BITS_FINISHED
	.comm	_masks,8,3                      ; @masks
	.comm	_maxbits,8,3                    ; @maxbits
	.comm	_maxmaxcode,8,3                 ; @maxmaxcode
	.no_dead_strip	_output
.subsections_via_symbols
