	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detract                        ## -- Begin function detract
	.p2align	4, 0x90
_detract:                               ## @detract
	.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
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_GCOMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %ebx
	andl	%esi, %ebx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	notl	%r15d
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_4:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	andl	%r12d, %r15d
	cmpl	$1, %ebx
	movl	$1, %r12d
	sbbl	$-1, %r12d
	xorl	%ebx, %ebx
	movq	%r14, %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r13), %edi
	callq	_strlen
	addl	%r12d, %ebx
	addl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %r13
	testq	%r13, %r13
	je	LBB0_9
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_GMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	cmpl	%r15d, %eax
	je	LBB0_5
	jmp	LBB0_6
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.10:
	addl	$2, %ebx
	movl	%ebx, %edi
	callq	_salloc
	movq	%rax, %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movb	$32, (%rax)
	incq	%rax
	movq	%rax, %r12
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_GMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	cmpl	%r15d, %eax
	jne	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%r14), %ebx
	movl	%ebx, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_strlcpy
	cltq
	addq	%r12, %rax
	testl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$44, (%rax)
	incq	%rax
	jmp	LBB0_11
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_18:
	movb	$0, -1(%r12)
	testl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_23
## %bb.19:
	cmpb	$44, -2(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_24
## %bb.20:
	movb	$0, -2(%r12)
	jmp	LBB0_24
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCOMMA,4,2                     ## @GCOMMA
	.comm	_debug,8,3                      ## @debug
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detract asked to insert commas\n"

	.comm	_GMASK,4,2                      ## @GMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detract                        ; -- Begin function detract
	.p2align	2
_detract:                               ; @detract
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GCOMMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCOMMA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w23, w8, w1
	bic	w24, w1, w8
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	mov	w20, #0
	cmp	w23, #0
	mov	w8, #1
	cinc	w21, w8, ne
Lloh11:
	adrp	x25, _GMASK@GOTPAGE
Lloh12:
	ldr	x25, [x25, _GMASK@GOTPAGEOFF]
	mov	x22, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22, #16]
	bl	_strlen
	add	w8, w21, w20
	add	w20, w8, w0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w24, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x25]
	and	w8, w9, w8
	cmp	w8, w24
	b.eq	LBB0_4
	b	LBB0_5
LBB0_8:
	cbz	w20, LBB0_17
; %bb.9:
	add	w0, w20, #2
	bl	_salloc
	mov	x20, x0
	mov	w26, #44
	mov	w27, #32
	mov	x21, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	strb	w27, [x21], #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbz	w24, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	and	w8, w9, w8
	cmp	w8, w24
	b.ne	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w22, [x19, #16]
	mov	x0, x22
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x21
	mov	x1, x22
	bl	_strlcpy
	add	x21, x21, w0, sxtw
	cbz	w23, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	w26, [x21], #1
	b	LBB0_10
LBB0_17:
	mov	x20, #0
	b	LBB0_21
LBB0_18:
	sturb	wzr, [x21, #-1]
	cbz	w23, LBB0_21
; %bb.19:
	ldurb	w8, [x21, #-2]
	cmp	w8, #44
	b.ne	LBB0_21
; %bb.20:
	sturb	wzr, [x21, #-2]
LBB0_21:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GCOMMA,4,2                     ; @GCOMMA
	.comm	_debug,8,3                      ; @debug
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detract asked to insert commas\n"

	.comm	_GMASK,4,2                      ; @GMASK
.subsections_via_symbols
