	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shquote
_shquote:                               ## @shquote
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, _shquote.buf(%rip)
	jne	LBB0_8
## %bb.1:
	movq	__SC_ARG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.4:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	leaq	1(,%rbx,4), %rdi
	movq	%rdi, _shquote.buf_size(%rip)
	callq	_malloc
	movq	%rax, _shquote.buf(%rip)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_8:
	movq	(%r14), %r15
	movq	_shquote.buf(%rip), %rax
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	_VIS_CSTYLE@GOTPCREL(%rip), %r13
	movq	%rax, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movb	$32, (%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_18
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	addq	$8, %r14
	cmpb	$0, (%r15)
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %r12
	notq	%r12
	addq	_shquote.buf_size(%rip), %r12
	addq	%rax, %r12
	shrq	$2, %r12
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%r12, %rax
	cmovbq	%rax, %r12
	movl	(%r13), %ecx
	movq	_VIS_NL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strvisx
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rcx
	cmpb	$0, (%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_shquote.buf(%rip), %rax
	movq	_shquote.buf_size(%rip), %rdx
	addq	%rax, %rdx
	subq	%rcx, %rdx
	leaq	-1(%rbx), %rcx
	cmpq	$4, %rdx
	jae	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, %rbx
	jmp	LBB0_12
LBB0_18:
	cmpq	%rax, %rbx
	je	LBB0_20
## %bb.19:
	leaq	-1(%rbx), %rax
	cmpb	$32, -1(%rbx)
	cmovneq	%rbx, %rax
LBB0_20:
	movb	$0, (%rax)
	movq	_shquote.buf(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movb	$0, (%rax)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_shquote.buf_size,8,3 ## @shquote.buf_size
.zerofill __DATA,__bss,_shquote.buf,8,3 ## @shquote.buf
	.comm	__SC_ARG_MAX,4,2                ## @_SC_ARG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysconf _SC_ARG_MAX failed"

	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"sysconf _SC_ARG_MAX preposterously large"

L_.str.2:                               ## @.str.2
	.asciz	"malloc failed"

	.comm	_VIS_NL,4,2                     ## @VIS_NL
	.comm	_VIS_CSTYLE,4,2                 ## @VIS_CSTYLE
	.no_dead_strip	_shquote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shquote
_shquote:                               ; @shquote
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	adrp	x22, _shquote.buf@PAGE
	ldr	x8, [x22, _shquote.buf@PAGEOFF]
	cbnz	x8, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, __SC_ARG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_ARG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x20, x0
	cmn	x0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
Lloh5:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.ge	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.lt	LBB0_6
LBB0_5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	mov	w0, #1
	bfi	x0, x20, #2, #62
	adrp	x8, _shquote.buf_size@PAGE
	str	x0, [x8, _shquote.buf_size@PAGEOFF]
	bl	_malloc
	str	x0, [x22, _shquote.buf@PAGEOFF]
	cbnz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	ldr	x21, [x19]
	ldr	x0, [x22, _shquote.buf@PAGEOFF]
	cbz	x21, LBB0_20
; %bb.9:
	adrp	x23, _shquote.buf_size@PAGE
Lloh15:
	adrp	x24, _VIS_NL@GOTPAGE
Lloh16:
	ldr	x24, [x24, _VIS_NL@GOTPAGEOFF]
Lloh17:
	adrp	x25, _VIS_CSTYLE@GOTPAGE
Lloh18:
	ldr	x25, [x25, _VIS_CSTYLE@GOTPAGEOFF]
	mov	w26, #32
	mov	x20, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	strb	w26, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x21, [x19, #8]!
	cbz	x21, LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrb	w8, [x21]
	cbz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23, _shquote.buf_size@PAGEOFF]
	mvn	x9, x20
	add	x8, x8, x9
	add	x8, x8, x0
	lsr	x27, x8, #2
	mov	x0, x21
	bl	_strlen
	cmp	x0, x27
	csel	x2, x0, x27, lo
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_strvisx
	mov	x8, x20
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x20], #1
	add	x8, x8, #1
	cbnz	w9, LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x23, _shquote.buf_size@PAGEOFF]
	ldr	x0, [x22, _shquote.buf@PAGEOFF]
	add	x9, x9, x0
	sub	x9, x9, x8
	sub	x8, x20, #1
	cmp	x9, #4
	b.hs	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x20, x8
	b	LBB0_11
LBB0_17:
	cmp	x20, x0
	b.eq	LBB0_19
; %bb.18:
	mov	x8, x20
	ldrb	w9, [x8, #-1]!
	cmp	w9, #32
	csel	x0, x8, x20, eq
LBB0_19:
	strb	wzr, [x0]
	ldr	x0, [x22, _shquote.buf@PAGEOFF]
	b	LBB0_21
LBB0_20:
	strb	wzr, [x0]
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_shquote.buf_size,8,3 ; @shquote.buf_size
.zerofill __DATA,__bss,_shquote.buf,8,3 ; @shquote.buf
	.comm	__SC_ARG_MAX,4,2                ; @_SC_ARG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysconf _SC_ARG_MAX failed"

	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"sysconf _SC_ARG_MAX preposterously large"

l_.str.2:                               ; @.str.2
	.asciz	"malloc failed"

	.comm	_VIS_NL,4,2                     ; @VIS_NL
	.comm	_VIS_CSTYLE,4,2                 ; @VIS_CSTYLE
	.no_dead_strip	_shquote
.subsections_via_symbols
