	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function escape_quotes_bki
_escape_quotes_bki:                     ## @escape_quotes_bki
	.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
	callq	_escape_quotes
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$34, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movq	%rax, %rdi
	movl	$34, %esi
	callq	_strchr
	addl	$3, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movl	%ebx, %ebx
	addq	$3, %rbx
	jmp	LBB0_5
LBB0_1:
	movl	$3, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_strlen
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_pg_malloc
	movq	%rax, %r15
	movb	$34, (%rax)
	movq	%rax, %r13
	incq	%r13
	leaq	L_.str(%rip), %r12
	movq	%r14, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	addq	$4, %r13
	incq	%rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$34, %al
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r13)
	incq	%r13
	incq	%rbx
	jmp	LBB0_6
LBB0_9:
	movw	$34, (%r13)
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rax
	addq	$8, %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	"\\042"

	.no_dead_strip	_escape_quotes_bki
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function escape_quotes_bki
_escape_quotes_bki:                     ; @escape_quotes_bki
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_escape_quotes
	mov	x19, x0
	mov	w22, #34
	mov	w1, #34
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	mov	w1, #34
	bl	_strchr
	add	w20, w20, #3
	cbnz	x0, LBB0_2
; %bb.3:
	add	x20, x20, #3
	b	LBB0_5
LBB0_4:
	mov	w20, #3
LBB0_5:
	mov	x0, x19
	bl	_strlen
	add	x0, x20, x0
	bl	_pg_malloc
	mov	x20, x0
	mov	x21, x0
	strb	w22, [x21], #1
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x23, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_strcpy
	add	x21, x21, #4
	add	x23, x23, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23]
	cmp	w8, #34
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x21], #1
	add	x23, x23, #1
	b	LBB0_7
LBB0_10:
	mov	w8, #34
	strh	w8, [x21]
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\042"

	.no_dead_strip	_escape_quotes_bki
.subsections_via_symbols
