	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode                         ## -- Begin function decode
	.p2align	4, 0x90
_decode:                                ## @decode
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -188(%rbp)                ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-176(%rbp), %r15
	leaq	L_.str(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-184(%rbp), %rdx
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movq	%r14, %rcx
	callq	_sscanf
	movq	%r14, %rdi
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	xorl	%r8d, %r8d
	leaq	-172(%rbp), %r14
	movq	%rbx, -200(%rbp)                ## 8-byte Spill
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movb	-176(%rbp), %al
	addb	$32, %al
	andb	$63, %al
	movzbl	%al, %eax
	movl	%eax, -184(%rbp)
	testb	%al, %al
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-3(%r14), %edx
	movzbl	-2(%r14), %ecx
	shlb	$2, %dl
	leal	32(%rcx), %esi
	shrb	$4, %sil
	andb	$3, %sil
	orb	%dl, %sil
	addb	$-128, %sil
	movb	%sil, -179(%rbp)
	cmpl	$3, %eax
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	shlb	$4, %cl
	movzbl	-1(%r14), %eax
	leal	32(%rax), %edx
	shrb	$2, %dl
	andb	$15, %dl
	orb	%cl, %dl
	movb	%dl, -178(%rbp)
	shlb	$6, %al
	movzbl	(%r14), %ecx
	addb	$32, %cl
	andb	$63, %cl
	orb	%al, %cl
	movb	%cl, -177(%rbp)
	movl	$3, %edx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	$1, %edx
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	shlb	$4, %cl
	movzbl	-1(%r14), %eax
	addb	$32, %al
	shrb	$2, %al
	andb	$15, %al
	orb	%cl, %al
	movb	%al, -178(%rbp)
	movl	$2, %edx
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	leal	(%rdx,%r8), %eax
	movl	-188(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %ebx
	subl	%r8d, %ebx
	xorl	%r15d, %r15d
	cmpl	%r12d, %eax
	setg	%r15b
	cmovlel	%edx, %ebx
	addl	%r8d, %r15d
	movq	%r13, %rdi
	leaq	-179(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_memmove
	movl	%r15d, %r8d
	addl	%ebx, %r8d
	cmpl	%r12d, %r8d
	jg	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_9 Depth=2
	movslq	%ebx, %rax
	addq	%rax, %r13
	movl	-184(%rbp), %ecx
	leal	-3(%rcx), %eax
	movl	%eax, -184(%rbp)
	addq	$4, %r14
	cmpl	$3, %ecx
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %r12
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%rbx, %rdx
	movq	%r8, %r14
	callq	_fgets
	movq	%r14, %r8
	xorl	%r13d, %r13d
	testl	%eax, %eax
	leaq	-172(%rbp), %r14
	jne	LBB0_7
	jmp	LBB0_18
LBB0_14:
	movl	%r8d, %r13d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r8, %r14
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rdi
	callq	_strcmp
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmovel	%r14d, %r13d
	jmp	LBB0_18
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"begin "

L_.str.1:                               ## @.str.1
	.asciz	"begin %o %s"

L_.str.2:                               ## @.str.2
	.asciz	"end\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode                         ; -- Begin function decode
	.p2align	2
_decode:                                ; @decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	w0, LBB0_16
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #6
	bl	_strncmp
	cbnz	x0, LBB0_1
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x22, sp, #8
	add	x0, sp, #8
	add	x2, sp, #4
	add	x3, sp, #8
	bl	_sscanf
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	w0, LBB0_16
; %bb.4:
	mov	w23, #0
	add	x24, x22, #3
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrb	w8, [sp, #8]
	add	w8, w8, #32
	ands	w8, w8, #0x3f
	str	w8, [sp, #4]
	b.eq	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x24
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w9, [x25, #-2]
	lsl	w10, w9, #2
	ldurb	w9, [x25, #-1]
	add	w11, w9, #32
	bfxil	w10, w11, #4, #2
	eor	w10, w10, #0x80
	strb	w10, [sp, #1]
	cmp	w8, #3
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w9, #4
	ldrb	w9, [x25]
	add	w10, w9, #32
	bfxil	w8, w10, #2, #4
	strb	w8, [sp, #2]
	ldrb	w8, [x25, #1]
	add	w8, w8, #32
	bfi	w8, w9, #6, #26
	strb	w8, [sp, #3]
	mov	w8, #3
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w9, #4
	ldrb	w9, [x25]
	add	w9, w9, #32
	bfxil	w8, w9, #2, #4
	strb	w8, [sp, #2]
	mov	w8, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #1
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w9, w20, w23
	add	w10, w8, w23
	cmp	w10, w20
	cinc	w23, w23, gt
	csel	w22, w9, w8, gt
	add	x1, sp, #1
	mov	x0, x21
	mov	x2, x22
	bl	_memmove
	add	w23, w23, w22
	cmp	w23, w20
	b.gt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, w22, sxtw
	ldr	w8, [sp, #4]
	add	x25, x25, #4
	subs	w8, w8, #3
	str	w8, [sp, #4]
	b.gt	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_5
	b	LBB0_16
LBB0_15:
	mov	x0, x23
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.17:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_18:
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	w0, LBB0_16
; %bb.19:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cmp	x0, #0
	csel	w0, w23, wzr, eq
	b	LBB0_16
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"begin "

l_.str.1:                               ; @.str.1
	.asciz	"begin %o %s"

l_.str.2:                               ; @.str.2
	.asciz	"end\n"

.subsections_via_symbols
