	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_fixstring                  ## -- Begin function ide_fixstring
	.p2align	4, 0x90
_ide_fixstring:                         ## @ide_fixstring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	andl	$-2, %r14d
	movslq	%r14d, %r12
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movq	%r12, %r13
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_be16_to_cpus
	addq	$2, %rbx
	addq	$-2, %r13
	jne	LBB0_3
LBB0_4:
	leaq	(%r15,%r12), %rsi
	movq	%r15, %rax
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, (%r15,%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_6
	jmp	LBB0_17
LBB0_8:
	addq	%r15, %rax
LBB0_9:
	cmpq	%rsi, %rax
	je	LBB0_17
## %bb.10:
	incq	%rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movb	%cl, (%r15)
	incq	%r15
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%rax), %rcx
	cmpq	%rsi, %rax
	movq	%rcx, %rax
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$32, %cl
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rsi, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	$-33, (%rax)
	je	LBB0_16
	jmp	LBB0_15
LBB0_17:
	cmpq	%rsi, %r15
	je	LBB0_19
## %bb.18:
	subq	%r15, %rsi
	movq	%r15, %rdi
	callq	___bzero
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_fixstring                  ; -- Begin function ide_fixstring
	.p2align	2
_ide_fixstring:                         ; @ide_fixstring
	.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	x19, x0
	and	w8, w1, #0xfffffffe
	sxtw	x21, w8
	cbz	w2, LBB0_4
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	mov	x22, x21
	mov	x20, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_be16_to_cpus
	add	x20, x20, #2
	subs	x22, x22, #2
	b.ne	LBB0_3
LBB0_4:
	add	x8, x19, x21
	mov	x9, x19
	cbz	w21, LBB0_9
; %bb.5:
	mov	x9, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19, x9]
	cmp	w10, #32
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x21, x9
	b.ne	LBB0_6
	b	LBB0_17
LBB0_8:
	add	x9, x19, x9
LBB0_9:
	cmp	x9, x8
	b.eq	LBB0_17
; %bb.10:
	add	x9, x9, #1
	mov	x0, x19
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	strb	w10, [x0], #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x9, #1
	cmp	x9, x8
	mov	x9, x10
	b.eq	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w10, [x9, #-1]
	cbz	w10, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w10, #32
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w11, [x9]
	orr	w11, w11, #0x20
	cmp	w11, #32
	b.eq	LBB0_12
	b	LBB0_11
LBB0_17:
	mov	x0, x19
LBB0_18:
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.19:
	add	x8, x19, x21
	sub	x1, x8, x0
	bl	_bzero
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
