	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_cp
_convert_cp:                            ## @convert_cp
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_Z_TYPE_P
	movq	_IS_LONG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_Z_LVAL_P
	movq	%rax, %rbx
LBB0_2:
	movq	_UCHAR_MIN_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_4
## %bb.3:
	movq	_UCHAR_MAX_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jg	LBB0_4
## %bb.12:
	movq	%rbx, (%r14)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ZEND_SIZE_T_INT_OVFL
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_U_ILLEGAL_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_intl_error_set_code
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_U_ILLEGAL_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_intl_error_set_code
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_11:
	movq	_U_ILLEGAL_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_intl_error_set_code
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_intl_error_set_custom_msg
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movq	$-1, %rbx
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	$-1, %rcx
	callq	_U8_NEXT
	testq	%r15, %r15
	je	LBB0_2
## %bb.10:
	movq	_U_ILLEGAL_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_intl_error_set_code
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_LONG,8,3                    ## @IS_LONG
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_U_ILLEGAL_ARGUMENT_ERROR,4,2   ## @U_ILLEGAL_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input string is too long."

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Passing a UTF-8 character for codepoint requires a string which is exactly one UTF-8 codepoint long."

L_.str.2:                               ## @.str.2
	.asciz	"Invalid parameter for unicode point.  Must be either integer or UTF-8 sequence."

	.comm	_UCHAR_MIN_VALUE,8,3            ## @UCHAR_MIN_VALUE
	.comm	_UCHAR_MAX_VALUE,8,3            ## @UCHAR_MAX_VALUE
L_.str.3:                               ## @.str.3
	.asciz	"Codepoint out of range"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_convert_cp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_cp
_convert_cp:                            ; @convert_cp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_Z_TYPE_P
Lloh0:
	adrp	x8, _IS_LONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_LONG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_Z_LVAL_P
	mov	x20, x0
LBB0_2:
Lloh3:
	adrp	x8, _UCHAR_MIN_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UCHAR_MIN_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _UCHAR_MAX_VALUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UCHAR_MAX_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x20, x8
	ccmp	x20, x9, #0, ge
	b.le	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_intl_error_set_code
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_Z_TYPE_P
Lloh14:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_Z_STRLEN_P
	mov	x21, x0
	bl	_ZEND_SIZE_T_INT_OVFL
	cbz	x0, LBB0_11
; %bb.6:
Lloh17:
	adrp	x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_intl_error_set_code
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	str	x20, [x19]
Lloh22:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_intl_error_set_code
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, #0
	mov	w2, #0
	bl	_intl_error_set_custom_msg
Lloh29:
	adrp	x8, _FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	bl	_Z_STRVAL_P
	mov	x20, #-1
	mov	x1, #0
	mov	x2, x21
	mov	x3, #-1
	bl	_U8_NEXT
	cbz	x21, LBB0_2
; %bb.12:
Lloh31:
	adrp	x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _U_ILLEGAL_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_intl_error_set_code
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_LONG,8,3                    ; @IS_LONG
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_U_ILLEGAL_ARGUMENT_ERROR,4,2   ; @U_ILLEGAL_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input string is too long."

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Passing a UTF-8 character for codepoint requires a string which is exactly one UTF-8 codepoint long."

l_.str.2:                               ; @.str.2
	.asciz	"Invalid parameter for unicode point.  Must be either integer or UTF-8 sequence."

	.comm	_UCHAR_MIN_VALUE,8,3            ; @UCHAR_MIN_VALUE
	.comm	_UCHAR_MAX_VALUE,8,3            ; @UCHAR_MAX_VALUE
l_.str.3:                               ; @.str.3
	.asciz	"Codepoint out of range"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_convert_cp
.subsections_via_symbols
