	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtokx                        ## -- Begin function strtokx
	.p2align	4, 0x90
_strtokx:                               ## @strtokx
	.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
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_strtokx.storage(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	incl	%edi
	callq	_pg_malloc
	movq	%rax, _strtokx.storage(%rip)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	_strtokx.storage(%rip), %r12
	movq	%r12, _strtokx.string(%rip)
LBB0_2:
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movq	_strtokx.string(%rip), %r14
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strspn
	movl	%eax, %ecx
	movb	(%r14,%rcx), %al
	testb	%al, %al
	je	LBB0_5
## %bb.6:
	addq	%rcx, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movsbl	%al, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	1(%r14), %rbx
	movb	1(%r14), %al
	testb	%al, %al
	jne	LBB0_21
	jmp	LBB0_24
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_43
LBB0_9:
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.10:
	movb	(%r14), %al
	orb	$32, %al
	cmpb	$101, %al
	jne	LBB0_13
## %bb.11:
	cmpb	$39, 1(%r14)
	jne	LBB0_13
## %bb.12:
	leaq	1(%r14), %r13
	movb	$92, %r15b
	leaq	L_.str(%rip), %r12
	movb	$39, %al
	jmp	LBB0_26
LBB0_5:
	movq	%r12, %rdi
	callq	_free
	movq	$0, _strtokx.storage(%rip)
	movq	$0, _strtokx.string(%rip)
	xorl	%r14d, %r14d
	jmp	LBB0_43
LBB0_13:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_14
## %bb.25:
	movb	(%r14), %al
	movq	%r14, %r13
LBB0_26:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	leaq	1(%r13), %rbx
	movb	(%r13), %r12b
	movb	1(%r13), %al
	testb	%al, %al
	jne	LBB0_29
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpb	$0, 1(%rbx)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	incq	%rbx
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rbx, %rdi
	movl	24(%rbp), %esi
	callq	_PQmblen
	cltq
	leaq	(%rbx,%rax), %r13
	movzbl	(%rbx,%rax), %eax
	movq	%r13, %rbx
	testb	%al, %al
	je	LBB0_41
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	cmpb	%r15b, %al
	je	LBB0_30
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpb	%r12b, %al
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	1(%rbx), %r13
	movzbl	1(%rbx), %eax
	cmpb	%r12b, %al
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r13, %rbx
	jmp	LBB0_35
LBB0_14:
	movb	$1, %r15b
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_27:
	xorl	%r15d, %r15d
LBB0_15:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcspn
	movl	%eax, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_strcspn
	cmpl	%eax, %ebx
	cmovael	%eax, %ebx
LBB0_17:
	testb	%r15b, %r15b
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcspn
	cmpl	%eax, %ebx
	cmovael	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	leaq	(%r14,%rax), %rbx
	movb	(%r14,%rax), %al
	testb	%al, %al
	je	LBB0_24
LBB0_21:
	movsbl	%al, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	leaq	1(%rbx), %r15
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
LBB0_23:
	movb	$0, (%rbx)
	incq	%rbx
LBB0_24:
	movq	%rbx, _strtokx.string(%rip)
LBB0_43:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	testb	%al, %al
	je	LBB0_41
## %bb.37:
	movsbl	%al, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	leaq	2(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_memmove
LBB0_39:
	movb	$0, 1(%rbx)
	addq	$2, %rbx
LBB0_40:
	movq	%rbx, %r13
LBB0_41:
	movq	%r13, _strtokx.string(%rip)
	cmpl	$0, 16(%rbp)
	je	LBB0_43
## %bb.42:
	movsbl	%r12b, %esi
	movsbl	%r15b, %edx
	movq	%r14, %rdi
	movl	24(%rbp), %ecx
	callq	_strip_quotes
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_strtokx.storage,8,3 ## @strtokx.storage
.zerofill __DATA,__bss,_strtokx.string,8,3 ## @strtokx.string
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtokx                        ; -- Begin function strtokx
	.p2align	2
_strtokx:                               ; @strtokx
	.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	x21, x7
	mov	x20, x6
	mov	x26, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	adrp	x28, _strtokx.storage@PAGE
	ldr	x27, [x28, _strtokx.storage@PAGEOFF]
	adrp	x8, _strtokx.string@PAGE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x27
	mov	x27, x8
	bl	_free
	mov	x0, x19
	bl	_strlen
	mov	w8, #1
	bfi	w8, w0, #1, #31
	mov	x0, x8
	bl	_pg_malloc
	str	x0, [x28, _strtokx.storage@PAGEOFF]
	mov	x1, x19
	bl	_strcpy
	mov	x8, x27
	ldr	x27, [x28, _strtokx.storage@PAGEOFF]
	str	x27, [x8, _strtokx.string@PAGEOFF]
LBB0_2:
	cbz	x27, LBB0_7
; %bb.3:
	ldr	x19, [x8, _strtokx.string@PAGEOFF]
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x23, x8
	bl	_strspn
	add	x19, x19, w0, uxtw
	ldrb	w8, [x19]
	cbz	w8, LBB0_12
; %bb.4:
	mov	x27, x23
	cbz	x25, LBB0_8
; %bb.5:
	sxtb	w1, w8
	mov	x0, x25
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x19
	ldrb	w8, [x21, #1]!
	cbnz	w8, LBB0_31
	b	LBB0_34
LBB0_7:
	mov	x19, #0
	b	LBB0_35
LBB0_8:
	cbz	w26, LBB0_13
; %bb.9:
	ldrb	w8, [x19]
	orr	w8, w8, #0x20
	cmp	w8, #101
	b.ne	LBB0_13
; %bb.10:
	mov	x26, x19
	ldrb	w8, [x26, #1]!
	cmp	w8, #39
	b.ne	LBB0_13
; %bb.11:
	mov	w22, #92
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	mov	x23, x20
	b	LBB0_15
LBB0_12:
	mov	x0, x27
	bl	_free
	mov	x19, #0
	str	xzr, [x28, _strtokx.storage@PAGEOFF]
	str	xzr, [x23, _strtokx.string@PAGEOFF]
	b	LBB0_35
LBB0_13:
	cbz	x24, LBB0_24
; %bb.14:
	mov	x23, x20
	ldrb	w8, [x19]
	mov	x26, x19
LBB0_15:
	sxtb	w1, w8
	mov	x0, x24
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.16:
	mov	x24, x26
	ldrb	w8, [x24, #1]!
	ldrb	w26, [x26]
	cbnz	w8, LBB0_20
	b	LBB0_41
LBB0_17:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x9, x24
	ldrb	w10, [x9, #1]!
	cbz	w10, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x9
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_PQmblen
	add	x24, x24, w0, sxtw
	ldrb	w8, [x24]
	cbz	w8, LBB0_41
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xff
	cmp	w9, w22, uxtb
	b.eq	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w26, w8, uxtb
	b.ne	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x25, x24
	ldrb	w8, [x25, #1]!
	cmp	w8, w26
	b.ne	LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x25
	b	LBB0_19
LBB0_24:
	mov	w22, #1
	b	LBB0_26
LBB0_25:
	mov	w22, #0
LBB0_26:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strcspn
	mov	x21, x0
	cbz	x25, LBB0_28
; %bb.27:
	mov	x0, x19
	mov	x1, x25
	bl	_strcspn
	cmp	w21, w0
	csel	w21, w21, w0, lo
LBB0_28:
	tbnz	w22, #0, LBB0_30
; %bb.29:
	mov	x0, x19
	mov	x1, x24
	bl	_strcspn
	cmp	w21, w0
	csel	w21, w21, w0, lo
LBB0_30:
	add	x21, x19, w21, uxtw
	ldrb	w8, [x21]
	cbz	w8, LBB0_34
LBB0_31:
	sxtb	w1, w8
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strchr
	cbnz	x0, LBB0_33
; %bb.32:
	add	x20, x21, #1
	mov	x0, x21
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x20
	mov	x1, x21
	bl	_memmove
LBB0_33:
	strb	wzr, [x21], #1
LBB0_34:
	str	x21, [x27, _strtokx.string@PAGEOFF]
LBB0_35:
	mov	x0, x19
	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
LBB0_36:
	cbz	w8, LBB0_40
; %bb.37:
	sxtb	w1, w8
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strchr
	cbnz	x0, LBB0_39
; %bb.38:
	add	x20, x24, #2
	mov	x0, x25
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x20
	mov	x1, x25
	bl	_memmove
LBB0_39:
	strb	wzr, [x24, #1]
	add	x24, x24, #2
	b	LBB0_41
LBB0_40:
	mov	x24, x25
LBB0_41:
	str	x24, [x27, _strtokx.string@PAGEOFF]
	cbz	w23, LBB0_35
; %bb.42:
	sxtb	w1, w26
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_strip_quotes
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_strtokx.storage,8,3 ; @strtokx.storage
.zerofill __DATA,__bss,_strtokx.string,8,3 ; @strtokx.string
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'"

.subsections_via_symbols
