	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handleUnknownEncoding
_handleUnknownEncoding:                 ## @handleUnknownEncoding
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1024, %edx                     ## imm = 0x400
	movl	$255, %esi
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movl	40(%r15), %edi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rsi
	callq	*%rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_XmlSizeOfUnknownEncoding
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MALLOC
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	cmpq	$0, 32(%r15)
	jne	LBB0_6
## %bb.7:
	movq	_XmlInitUnknownEncoding@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_3:
	movq	-40(%rbp), %rcx
	movq	_XML_ERROR_NO_MEMORY@GOTPCREL(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	*%rcx
	movl	(%rbx), %eax
	jmp	LBB0_14
LBB0_6:
	movq	_XmlInitUnknownEncodingNS@GOTPCREL(%rip), %rbx
LBB0_8:
	movq	-32(%rbp), %rdx
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rcx
	movl	%eax, %edi
	callq	*%rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%r15)
	movq	-40(%rbp), %rcx
	movq	%rcx, 8(%r15)
	movq	%rax, (%r15)
	movq	_XML_ERROR_NONE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	jmp	LBB0_14
LBB0_11:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi
	callq	*%rax
LBB0_13:
	movq	_XML_ERROR_UNKNOWN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XML_ERROR_NO_MEMORY,4,2        ## @XML_ERROR_NO_MEMORY
	.comm	_XML_ERROR_NONE,4,2             ## @XML_ERROR_NONE
	.comm	_XML_ERROR_UNKNOWN_ENCODING,4,2 ## @XML_ERROR_UNKNOWN_ENCODING
	.no_dead_strip	_handleUnknownEncoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleUnknownEncoding
_handleUnknownEncoding:                 ; @handleUnknownEncoding
	.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
	ldr	x21, [x0, #48]
	cbz	x21, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w1, #255
	mov	w2, #1024
	bl	_memset
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w0, [x19, #40]
	mov	x2, sp
	mov	x1, x20
	blr	x21
	cbz	x0, LBB0_5
; %bb.2:
	bl	_XmlSizeOfUnknownEncoding
	mov	x1, x0
	mov	x0, x19
	bl	_MALLOC
	str	w0, [x19, #24]
	cbz	w0, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _XmlInitUnknownEncodingNS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XmlInitUnknownEncodingNS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _XmlInitUnknownEncoding@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XmlInitUnknownEncoding@GOTPAGEOFF]
	ldr	x10, [x19, #32]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	x2, [sp, #24]
	ldp	x1, x3, [sp]
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
	ldp	x8, x9, [sp, #8]
	stp	x9, x8, [x19, #8]
	str	x0, [x19]
Lloh4:
	adrp	x8, _XML_ERROR_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XML_ERROR_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	blr	x8
LBB0_7:
Lloh6:
	adrp	x8, _XML_ERROR_UNKNOWN_ENCODING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XML_ERROR_UNKNOWN_ENCODING@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
LBB0_9:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x0, [sp, #8]
	blr	x8
LBB0_11:
Lloh8:
	adrp	x8, _XML_ERROR_NO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XML_ERROR_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XML_ERROR_NO_MEMORY,4,2        ; @XML_ERROR_NO_MEMORY
	.comm	_XML_ERROR_NONE,4,2             ; @XML_ERROR_NONE
	.comm	_XML_ERROR_UNKNOWN_ENCODING,4,2 ; @XML_ERROR_UNKNOWN_ENCODING
	.no_dead_strip	_handleUnknownEncoding
.subsections_via_symbols
