	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucl_copy_or_store_ptr
_ucl_copy_or_store_ptr:                 ## @ucl_copy_or_store_ptr
	.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
	movq	%r8, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	16(%rbp), %r12d
	movl	%r12d, %eax
	orl	%r9d, %eax
	je	LBB0_1
LBB0_4:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	incq	%rbx
	movq	%rbx, %rdi
	callq	_UCL_ALLOC
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	callq	_ucl_strlcpy_tolower
	jmp	LBB0_9
LBB0_1:
	cmpl	$0, 24(%rbp)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rdi)
	jne	LBB0_4
LBB0_3:
	movq	_UCL_PARSER_ZEROCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	%ebx, %r14d
	jmp	LBB0_17
LBB0_5:
	movq	_UCL_EINTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	4(%rdi), %rcx
	leaq	L_.str(%rip), %rdx
	callq	_ucl_set_err
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_8:
	callq	_ucl_strlcpy_unsafe
LBB0_9:
	movl	%eax, %r14d
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.10:
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_ucl_unescape_json_string
	movl	%eax, %r14d
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	24(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	(%r15), %r13
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_ucl_expand_variable
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.14:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_UCL_FREE
	movl	%r12d, %r14d
	jmp	LBB0_15
LBB0_13:
	movq	%r13, (%r15)
LBB0_15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	%rax, (%rcx)
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCL_PARSER_ZEROCOPY,4,2        ## @UCL_PARSER_ZEROCOPY
	.comm	_UCL_EINTERNAL,4,2              ## @UCL_EINTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate memory for a string"

	.no_dead_strip	_ucl_copy_or_store_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucl_copy_or_store_ptr
_ucl_copy_or_store_ptr:                 ; @ucl_copy_or_store_ptr
	.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	x23, x7
	mov	x27, x6
	mov	x25, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x26, x1
	mov	x21, x0
	orr	w8, w6, w5
	cbz	w8, LBB0_8
LBB0_1:
	add	x24, x22, #1
	mov	x0, x24
	bl	_UCL_ALLOC
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.2:
	mov	x1, x26
	mov	x2, x24
	cbz	w27, LBB0_13
; %bb.3:
	bl	_ucl_strlcpy_tolower
	mov	x22, x0
	cbz	w25, LBB0_5
LBB0_4:
	ldr	x0, [x20]
	mov	x1, x22
	bl	_ucl_unescape_json_string
	mov	x22, x0
LBB0_5:
	cbz	w23, LBB0_15
; %bb.6:
	ldr	x23, [x20]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_ucl_expand_variable
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.7:
	mov	x21, x0
	mov	x0, x24
	mov	x1, x23
	bl	_UCL_FREE
	mov	x22, x21
	b	LBB0_15
LBB0_8:
	cbz	w23, LBB0_10
; %bb.9:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_1
LBB0_10:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _UCL_PARSER_ZEROCOPY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UCL_PARSER_ZEROCOPY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.11:
	str	x26, [x19]
	b	LBB0_16
LBB0_12:
Lloh3:
	adrp	x8, _UCL_EINTERNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UCL_EINTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, x21, #4
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ucl_set_err
	mov	w22, #0
	b	LBB0_16
LBB0_13:
	bl	_ucl_strlcpy_unsafe
	mov	x22, x0
	cbnz	w25, LBB0_4
	b	LBB0_5
LBB0_14:
	str	x23, [x20]
LBB0_15:
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_16:
	mov	x0, x22
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UCL_PARSER_ZEROCOPY,4,2        ; @UCL_PARSER_ZEROCOPY
	.comm	_UCL_EINTERNAL,4,2              ; @UCL_EINTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate memory for a string"

	.no_dead_strip	_ucl_copy_or_store_ptr
.subsections_via_symbols
