	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_data                       ## -- Begin function get_data
	.p2align	4, 0x90
_get_data:                              ## @get_data
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	_get_data.mask(%rip), %esi
	testl	%esi, %esi
	jne	LBB0_9
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.2:
	leal	-1(%r14), %ecx
	movl	%r14d, %eax
	andl	$7, %eax
	cmpl	$7, %ecx
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %ecx
	andl	$-8, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	sarl	$8, %esi
	orl	$255, %esi
	addl	$-8, %ecx
	jne	LBB0_5
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%esi
	orl	$128, %esi
	decl	%eax
	jne	LBB0_7
LBB0_8:
	movl	%esi, _get_data.mask(%rip)
LBB0_9:
	movl	_get_data.bits_left(%rip), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.10:
	movl	_get_data.old_value(%rip), %r9d
	jmp	LBB0_12
LBB0_11:
	callq	_fgetc
	movl	%eax, %r9d
	movl	$8, %r8d
	movl	_get_data.mask(%rip), %esi
LBB0_12:
	andl	%r9d, %esi
	movl	$8, %eax
	xorl	%edx, %edx
	idivl	%r14d
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.14:
	leal	-1(%rax), %edx
	addl	$-2, %eax
	movl	%edx, %r10d
	andl	$3, %r10d
	cmpl	$3, %eax
	jb	LBB0_17
## %bb.15:
	andl	$-4, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	movl	%r14d, %ecx
	sarl	%cl, %eax
	xorl	%ebx, %ebx
	orl	%esi, %eax
	setne	%bl
	shrl	%cl, %ebx
	xorl	%edi, %edi
	orl	%eax, %ebx
	setne	%dil
	shrl	%cl, %edi
	xorl	%eax, %eax
	orl	%ebx, %edi
	setne	%al
	shrl	%cl, %eax
	xorl	%esi, %esi
	orl	%edi, %eax
	setne	%sil
	addl	$-4, %edx
	jne	LBB0_16
LBB0_17:
	movl	%esi, %eax
	testl	%r10d, %r10d
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	xorl	%eax, %eax
	orl	%esi, %edx
	setne	%al
	movl	%eax, %esi
	decl	%r10d
	jne	LBB0_18
	jmp	LBB0_19
LBB0_13:
	movl	%esi, %eax
LBB0_19:
	movl	%r14d, %ecx
	shll	%cl, %r9d
	movzbl	%r9b, %ecx
	movl	%ecx, _get_data.old_value(%rip)
	subl	%r14d, %r8d
	movl	%r8d, _get_data.bits_left(%rip)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_data.bits_left,4,2 ## @get_data.bits_left
.zerofill __DATA,__bss,_get_data.old_value,4,2 ## @get_data.old_value
.zerofill __DATA,__bss,_get_data.mask,4,2 ## @get_data.mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_data                       ; -- Begin function get_data
	.p2align	2
_get_data:                              ; @get_data
	.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
	mov	x19, x1
	adrp	x22, _get_data.mask@PAGE
	ldr	w8, [x22, _get_data.mask@PAGEOFF]
	cmp	w8, #0
	ccmp	w1, #1, #8, eq
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #0
	mov	x9, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w8, #1
	orr	w8, w8, #0x80
	subs	w9, w9, #1
	b.ne	LBB0_2
; %bb.3:
	str	w8, [x22, _get_data.mask@PAGEOFF]
LBB0_4:
	adrp	x20, _get_data.bits_left@PAGE
	ldr	w9, [x20, _get_data.bits_left@PAGEOFF]
	adrp	x21, _get_data.old_value@PAGE
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w0, [x21, _get_data.old_value@PAGEOFF]
	b	LBB0_7
LBB0_6:
	bl	_fgetc
	ldr	w8, [x22, _get_data.mask@PAGEOFF]
	mov	w9, #8
LBB0_7:
	and	w8, w8, w0
	mov	w10, #8
	sdiv	w10, w10, w19
	cmp	w10, #2
	b.lt	LBB0_10
; %bb.8:
	sub	w10, w10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w8, w19
	orr	w8, w8, w11
	cmp	w8, #0
	cset	w8, ne
	subs	w10, w10, #1
	b.ne	LBB0_9
LBB0_10:
	lsl	w10, w0, w19
	and	w10, w10, #0xff
	str	w10, [x21, _get_data.old_value@PAGEOFF]
	sub	w9, w9, w19
	str	w9, [x20, _get_data.bits_left@PAGEOFF]
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_data.bits_left,4,2 ; @get_data.bits_left
.zerofill __DATA,__bss,_get_data.old_value,4,2 ; @get_data.old_value
.zerofill __DATA,__bss,_get_data.mask,4,2 ; @get_data.mask
.subsections_via_symbols
