	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prn_octal                      ## -- Begin function prn_octal
	.p2align	4, 0x90
_prn_octal:                             ## @prn_octal
	.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
	movq	%rdi, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	xorl	%r12d, %r12d
	callq	_mbrtowc
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, %ebx
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r15
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_mbrtowc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_27
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	$-3, %rbx
	ja	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_iswprint
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$34, %edi
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$92, %edi
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r15,%rbx), %edi
	callq	_putchar
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %r14
	movq	%r13, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_wcwidth
	addl	%eax, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$-1, %rbx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	jg	LBB0_20
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_f_octal_escape@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%dil, %esi
	leaq	_prn_octal.esc(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movl	$92, %edi
	callq	_putchar
	movsbl	1(%r13), %edi
	callq	_putchar
	addl	$2, %r12d
	jmp	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	testl	%eax, %eax
	jle	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	shll	$2, %eax
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%r14), %r13d
	movl	$92, %edi
	callq	_putchar
	movl	%r13d, %edi
	shrl	$6, %edi
	orl	$48, %edi
	callq	_putchar
	movl	%r13d, %eax
	shrb	$3, %al
	andb	$7, %al
	orb	$48, %al
	movzbl	%al, %edi
	callq	_putchar
	andb	$7, %r13b
	orb	$48, %r13b
	movzbl	%r13b, %edi
	callq	_putchar
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addl	%ebx, %r12d
	leaq	-48(%rbp), %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$-1, %rbx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$-2, %rbx
	jne	LBB0_26
LBB0_27:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @prn_octal.esc
_prn_octal.esc:
	.asciz	"\\\\\"\"\007a\bb\ff\nn\rr\tt\013v"

	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.comm	_f_octal_escape,8,3             ## @f_octal_escape
	.comm	_UCHAR_MAX,8,3                  ## @UCHAR_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prn_octal                      ; -- Begin function prn_octal
	.p2align	2
_prn_octal:                             ; @prn_octal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x24, _MB_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MB_LEN_MAX@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x0, sp, #8
	add	x3, sp, #12
	mov	x1, x19
	bl	_mbrtowc
	cbz	x0, LBB0_25
; %bb.1:
	mov	x22, x0
	mov	w20, #0
Lloh2:
	adrp	x25, _f_octal_escape@GOTPAGE
Lloh3:
	ldr	x25, [x25, _f_octal_escape@GOTPAGEOFF]
Lloh4:
	adrp	x26, _UCHAR_MAX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _UCHAR_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w22, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x22
	ldr	w2, [x24]
	add	x0, sp, #8
	add	x3, sp, #12
	mov	x1, x19
	bl	_mbrtowc
	mov	x22, x0
	cbz	x0, LBB0_26
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmn	x22, #3
	b.hi	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
	bl	_iswprint
	mov	x8, x0
	ldr	w0, [sp, #8]
	cbz	x8, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #34
	b.eq	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #92
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x23, x22, #0xffffffff
	mov	x27, x19
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x27], #1
	bl	_putchar
	subs	x23, x23, #1
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_wcwidth
	add	w20, w20, w0
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	x22, #1
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_strlen
	cmp	w0, #1
	b.ge	LBB0_20
	b	LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	w9, [x26]
	cmp	x8, #0
	ccmp	w0, w9, #0, ne
	b.gt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w1, w0
Lloh6:
	adrp	x0, _prn_octal.esc@PAGE
Lloh7:
	add	x0, x0, _prn_octal.esc@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	w0, #92
	bl	_putchar
	ldrsb	w0, [x23, #1]
	bl	_putchar
	add	w20, w20, #2
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	cmp	w0, #1
	b.lt	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w23, w0, #2
	mov	x27, x19
	mov	w28, w0
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w21, [x27], #1
	mov	w0, #92
	bl	_putchar
	lsr	w8, w21, #6
	orr	w0, w8, #0x30
	bl	_putchar
	mov	w0, #48
	bfxil	w0, w21, #3, #3
	bl	_putchar
	mov	w0, #48
	bfxil	w0, w21, #0, #3
	bl	_putchar
	subs	x28, x28, #1
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, w23
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	x22, #1
	b.eq	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	cmn	x22, #2
	b.ne	LBB0_3
	b	LBB0_26
LBB0_25:
	mov	w20, #0
LBB0_26:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_prn_octal.esc:                         ; @prn_octal.esc
	.asciz	"\\\\\"\"\007a\bb\ff\nn\rr\tt\013v"

	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.comm	_f_octal_escape,8,3             ; @f_octal_escape
	.comm	_UCHAR_MAX,8,3                  ; @UCHAR_MAX
.subsections_via_symbols
