	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_value                      ## -- Begin function get_value
	.p2align	4, 0x90
_get_value:                             ## @get_value
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpl	$0, _get_value.mask(%rip)
	jne	LBB0_9
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.2:
	leal	-1(%r15), %ecx
	movl	%r15d, %eax
	andl	$7, %eax
	cmpl	$7, %ecx
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	%r15d, %edx
	andl	$-8, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ecx
	orl	$255, %ecx
	addl	$-8, %edx
	jne	LBB0_5
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	incl	%ecx
	decl	%eax
	jne	LBB0_7
LBB0_8:
	movl	%ecx, _get_value.mask(%rip)
LBB0_9:
	leaq	-96(%rbp), %r14
	movq	%r14, %rsi
	callq	_get_token
	leaq	L_.str(%rip), %rsi
	leaq	-104(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sscanf
	movl	_get_value.mask(%rip), %esi
	andl	-104(%rbp), %esi
	cmpl	$7, %r15d
	jg	LBB0_17
## %bb.10:
	movl	$8, %eax
	xorl	%edx, %edx
	idivl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.11:
	leal	-1(%rax), %ecx
	movl	%eax, %edx
	andl	$3, %edx
	cmpl	$3, %ecx
	jb	LBB0_14
## %bb.12:
	andl	$-4, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	xorl	%ebx, %ebx
	orl	%esi, %edi
	setne	%bl
	movl	%ebx, %esi
	shll	%cl, %esi
	xorl	%edi, %edi
	orl	%ebx, %esi
	setne	%dil
	movl	%edi, %esi
	shll	%cl, %esi
	xorl	%ebx, %ebx
	orl	%edi, %esi
	setne	%bl
	movl	%ebx, %edi
	shll	%cl, %edi
	xorl	%esi, %esi
	orl	%ebx, %edi
	setne	%sil
	addl	$-4, %eax
	jne	LBB0_13
LBB0_14:
	movl	%esi, %eax
	testl	%edx, %edx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	xorl	%eax, %eax
	orl	%esi, %edi
	setne	%al
	movl	%eax, %esi
	decl	%edx
	jne	LBB0_15
	jmp	LBB0_18
LBB0_17:
	movl	%esi, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_value.mask,4,2 ## @get_value.mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_value                      ; -- Begin function get_value
	.p2align	2
_get_value:                             ; @get_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	adrp	x20, _get_value.mask@PAGE
	ldr	w8, [x20, _get_value.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
	mov	x10, x8
	mov	w8, #1
	bfi	w8, w10, #1, #31
	subs	w9, w9, #1
	b.ne	LBB0_2
; %bb.3:
	str	w8, [x20, _get_value.mask@PAGEOFF]
LBB0_4:
	add	x1, sp, #8
	bl	_get_token
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, sp
	bl	_sscanf
	ldr	w8, [sp]
	ldr	w9, [x20, _get_value.mask@PAGEOFF]
	and	w0, w9, w8
	cmp	w19, #7
	b.gt	LBB0_7
; %bb.5:
	mov	w8, #8
	sdiv	w8, w8, w19
	cmp	w8, #1
	b.lt	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w0, w19
	orr	w9, w9, w0
	cmp	w9, #0
	cset	w0, ne
	subs	w8, w8, #1
	b.ne	LBB0_6
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_value.mask,4,2 ; @get_value.mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu"

.subsections_via_symbols
