	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_oct
_get_oct:                               ## @get_oct
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	movl	%edx, %r14d
	movl	%eax, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rdi
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	shlq	$3, %rbx
	orq	%r12, %rbx
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbq	(%rdi,%r15), %r13
	movq	%r13, %r12
	addq	$-48, %r12
	leal	-56(%r13), %eax
	cmpb	$-9, %al
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %edx
	movsbl	%r13b, %esi
	leaq	L_.str(%rip), %rdi
	callq	_kprintf
	andb	$-8, %r13b
	xorl	%edi, %edi
	cmpb	$48, %r13b
	sete	%dil
	callq	_assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found not octal digit(%c) at pos %d.\n"

	.no_dead_strip	_get_oct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_oct
_get_oct:                               ; @get_oct
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, #0
	mov	w22, w2
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	add	x23, x0, w1, sxtw
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	orr	x20, x24, x20, lsl #3
	add	w19, w19, #1
	add	x23, x23, #1
	subs	x22, x22, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	x8, [x23]
	sub	x24, x8, #48
	sub	w9, w8, #56
	and	w9, w9, #0xff
	cmp	w9, #247
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w25, w8, #0xff
	sxtb	w1, w25
	mov	x0, x21
	mov	x2, x19
	bl	_kprintf
	and	w8, w25, #0xf8
	cmp	w8, #48
	cset	w0, eq
	bl	_assert
	b	LBB0_2
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found not octal digit(%c) at pos %d.\n"

	.no_dead_strip	_get_oct
.subsections_via_symbols
