	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_octal
_format_octal:                          ## @format_octal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.1:
	movslq	%edx, %rax
	addq	%rax, %rsi
	xorl	%r10d, %r10d
	testl	%edi, %edi
	cmovlel	%r10d, %edi
	leal	-1(%rdx), %r8d
	movl	%edx, %r9d
	andl	$3, %r9d
	je	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	movl	%ecx, %eax
	andb	$7, %al
	orb	$48, %al
	movb	%al, -1(%rsi)
	decq	%rsi
	shrl	$3, %edi
	incl	%r10d
	cmpl	%r10d, %r9d
	jne	LBB0_3
## %bb.4:
	movl	%edx, %r9d
	subl	%r10d, %r9d
	cmpl	$3, %r8d
	jae	LBB0_6
	jmp	LBB0_8
LBB0_12:
	xorl	%eax, %eax
	testl	%edi, %edi
	setg	%al
	negl	%eax
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %r9d
                                        ## implicit-def: $ecx
	cmpl	$3, %r8d
	jb	LBB0_8
LBB0_6:
	decl	%r9d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	andb	$7, %al
	orb	$48, %al
	movb	%al, -1(%rsi)
	movl	%edi, %eax
	shrb	$3, %al
	andb	$7, %al
	orb	$48, %al
	movb	%al, -2(%rsi)
	movl	%edi, %eax
	shrl	$6, %eax
	andb	$7, %al
	orb	$48, %al
	movb	%al, -3(%rsi)
	movl	%edi, %ecx
	shrl	$9, %ecx
	movl	%ecx, %eax
	andb	$7, %al
	orb	$48, %al
	movb	%al, -4(%rsi)
	addq	$-4, %rsi
	shrl	$12, %edi
	addl	$-4, %r9d
	cmpl	$-2, %r9d
	jb	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	cmpl	$8, %ecx
	adcl	$-1, %eax
	cmpl	$8, %ecx
	jb	LBB0_11
## %bb.9:
	testl	%edx, %edx
	jle	LBB0_11
## %bb.10:
	movl	%edx, %edx
	movq	%rsi, %rdi
	movl	$55, %esi
	callq	_memset
	movl	$-1, %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_format_octal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_octal
_format_octal:                          ; @format_octal
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	cmp	w0, #0
	csel	w10, w0, wzr, gt
	add	w8, w2, #1
	add	x0, x1, w2, sxtw
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	mov	w10, #48
	bfxil	w10, w9, #0, #3
	strb	w10, [x0, #-1]!
	lsr	w10, w9, #3
	sub	w8, w8, #1
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.3:
	cmp	w9, #7
	csetm	w8, hi
	cmp	w9, #8
	b.lo	LBB0_7
; %bb.4:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w2, w2
	mov	w1, #55
	bl	_memset
	mov	w8, #-1
	b	LBB0_7
LBB0_6:
	cmp	w0, #0
	csetm	w8, gt
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_format_octal
.subsections_via_symbols
