	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g_utf8_make_valid              ## -- Begin function g_utf8_make_valid
	.p2align	4, 0x90
_g_utf8_make_valid:                     ## @g_utf8_make_valid
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	xorl	%esi, %esi
	callq	_g_return_val_if_fail
	movq	%rbx, %rsi
	testq	%rbx, %rbx
	js	LBB0_1
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rsi
	testl	%esi, %esi
	je	LBB0_10
LBB0_3:
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	leaq	-48(%rbp), %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_g_string_append_len
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_g_string_append
	notl	%r15d
	movq	-48(%rbp), %rbx
	addq	$4, %rbx
	addl	%r15d, %r13d
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_g_utf8_validate
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %r15
	subq	%rbx, %r15
	shrq	$2, %r15
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	callq	_g_string_sized_new
	movq	%rax, %r12
	jmp	LBB0_7
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	testq	%r12, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_g_string_append_len
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_g_string_append_c
	movq	(%r12), %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_g_utf8_validate
	movq	%rax, %rdi
	callq	_g_assert
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_string_free
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_g_strndup
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\357\277\275"

	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g_utf8_make_valid              ; -- Begin function g_utf8_make_valid
	.p2align	2
_g_utf8_make_valid:                     ; @g_utf8_make_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	mov	x1, #0
	bl	_g_return_val_if_fail
	tbnz	x21, #63, LBB0_2
; %bb.1:
	cbnz	w21, LBB0_3
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	cbz	w21, LBB0_10
LBB0_3:
	mov	x20, #0
	mov	x22, x21
	mov	x23, x19
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsr	x25, x25, #2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_g_string_append_len
	mov	x0, x20
	mov	x1, x24
	bl	_g_string_append
	mvn	w8, w25
	ldr	x9, [sp, #8]
	add	x23, x9, #4
	adds	w22, w22, w8
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_g_utf8_validate
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	sub	x25, x8, x23
	cbnz	x20, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_g_string_sized_new
	mov	x20, x0
	b	LBB0_4
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_g_string_append_len
	mov	x0, x20
	mov	w1, #0
	bl	_g_string_append_c
	ldr	x0, [x20]
	mov	w1, #-1
	mov	x2, #0
	bl	_g_utf8_validate
	bl	_g_assert
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_g_string_free
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_g_strndup
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\357\277\275"

	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
