	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_string_to_number_if_possible ## -- Begin function collator_convert_string_to_number_if_possible
	.p2align	4, 0x90
_collator_convert_string_to_number_if_possible: ## @collator_convert_string_to_number_if_possible
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -28(%rbp)
	movq	$0, -40(%rbp)
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_2:
	movq	%r15, %rdi
	callq	_Z_STRVAL_P
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_Z_STRLEN_P
	movl	%eax, %edi
	callq	_UCHARS
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %r8d
	callq	_collator_is_numeric
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	movq	_IS_LONG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_ZVAL_LONG
LBB0_5:
	movq	_IS_DOUBLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.6:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	%r14, %rdi
	callq	_ZVAL_DOUBLE
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_8:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_IS_LONG,4,2                    ## @IS_LONG
	.comm	_IS_DOUBLE,4,2                  ## @IS_DOUBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_string_to_number_if_possible ; -- Begin function collator_convert_string_to_number_if_possible
	.p2align	2
_collator_convert_string_to_number_if_possible: ; @collator_convert_string_to_number_if_possible
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	str	xzr, [sp]
	bl	_Z_TYPE_P
Lloh0:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_2:
	mov	x0, x20
	bl	_Z_STRVAL_P
	mov	x21, x0
	mov	x0, x20
	bl	_Z_STRLEN_P
	bl	_UCHARS
	mov	x1, x0
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x21
	mov	w4, #1
	bl	_collator_is_numeric
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x8, _IS_LONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IS_LONG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_ZVAL_LONG
LBB0_5:
Lloh6:
	adrp	x8, _IS_DOUBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IS_DOUBLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	d0, [sp]
	mov	x0, x19
	bl	_ZVAL_DOUBLE
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_IS_LONG,4,2                    ; @IS_LONG
	.comm	_IS_DOUBLE,4,2                  ; @IS_DOUBLE
.subsections_via_symbols
