	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_converter_set_encoding
_php_converter_set_encoding:            ## @php_converter_set_encoding
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_ucnv_open
	movq	%rax, %r15
	movq	-40(%rbp), %rdi
	movq	_U_AMBIGUOUS_ALIAS_WARNING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ucnv_getName
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_U_FAILURE
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rbx, %rcx
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
	jmp	LBB0_2
LBB0_5:
	callq	_U_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	-40(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_THROW_UFAILURE
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_php_converter_set_callbacks
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_ucnv_close
LBB0_11:
	movq	%r15, (%r14)
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_u_errorName
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_php_error_docref
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ZERO_ERROR,8,3               ## @U_ZERO_ERROR
	.comm	_U_AMBIGUOUS_ALIAS_WARNING,8,3  ## @U_AMBIGUOUS_ALIAS_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(unknown)"

	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Ambiguous encoding specified, using %s"

L_.str.2:                               ## @.str.2
	.asciz	"ucnv_open"

L_.str.3:                               ## @.str.3
	.asciz	"Error setting encoding: %d - %s"

	.no_dead_strip	_php_converter_set_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_converter_set_encoding
_php_converter_set_encoding:            ; @php_converter_set_encoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _U_ZERO_ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _U_ZERO_ERROR@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x2
	bl	_ucnv_open
	mov	x21, x0
	ldr	x0, [sp, #24]
Lloh2:
	adrp	x8, _U_AMBIGUOUS_ALIAS_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _U_AMBIGUOUS_ALIAS_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	str	x8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	bl	_ucnv_getName
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_U_FAILURE
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x8, x22, x8, eq
Lloh7:
	adrp	x9, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_5
LBB0_2:
	bl	_U_FAILURE
	cbz	x0, LBB0_5
; %bb.3:
	cbz	x20, LBB0_10
; %bb.4:
	ldr	x2, [sp, #24]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_THROW_UFAILURE
	b	LBB0_11
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_php_converter_set_callbacks
	cbz	w0, LBB0_12
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_ucnv_close
LBB0_9:
	str	x21, [x19]
	mov	w0, #1
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	ldr	x20, [sp, #24]
	mov	x0, x20
	bl	_u_errorName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x1, x19
	bl	_php_error_docref
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ZERO_ERROR,8,3               ; @U_ZERO_ERROR
	.comm	_U_AMBIGUOUS_ALIAS_WARNING,8,3  ; @U_AMBIGUOUS_ALIAS_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(unknown)"

	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Ambiguous encoding specified, using %s"

l_.str.2:                               ; @.str.2
	.asciz	"ucnv_open"

l_.str.3:                               ; @.str.3
	.asciz	"Error setting encoding: %d - %s"

	.no_dead_strip	_php_converter_set_encoding
.subsections_via_symbols
