	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_trim_string                ## -- Begin function dlg_trim_string
	.p2align	4, 0x90
_dlg_trim_string:                       ## @dlg_trim_string
	.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
	movq	%rdi, %r14
	movq	_dialog_vars@GOTPCREL(%rip), %r15
	cmpl	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	setne	%r12b
LBB0_3:
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_36
## %bb.4:
	movq	%r14, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_9 Depth=1
	movb	$32, (%r13)
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_37
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	_TAB@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$32, (%r14)
	movb	$32, %al
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	testb	%r12b, %r12b
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %al
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$92, %al
	jne	LBB0_33
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$110, 1(%r14)
	jne	LBB0_33
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$10, (%r13)
	addq	$2, %r14
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_UCH
	movl	%eax, %edi
	callq	_isblank
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	cmpb	$10, -1(%rbx)
	cmoveq	%rbx, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r15), %rbx
	movsbl	%al, %edi
	callq	_UCH
	movl	%eax, %edi
	callq	_isblank
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rax, %rax
	je	LBB0_29
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movsbl	-1(%r13), %edi
	callq	_UCH
	movl	%eax, %edi
	callq	_isblank
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%rax, %rax
	je	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_trim_blank
	testl	%eax, %eax
	jne	LBB0_7
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	(%r14), %al
	movb	%al, (%r13)
	jmp	LBB0_6
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 8(%r15)
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_trim_blank
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_5
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	(%r14), %al
	cmpb	$10, %al
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_21
LBB0_31:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movb	$10, (%r13)
	jmp	LBB0_34
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	(%r14), %al
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movb	%al, (%r13)
LBB0_34:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	jmp	LBB0_8
LBB0_36:
	movq	%r14, %r13
LBB0_37:
	movb	$0, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_vars,32,3               ## @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\n"

	.comm	_TAB,1,0                        ## @TAB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_trim_string                ; -- Begin function dlg_trim_string
	.p2align	2
_dlg_trim_string:                       ; @dlg_trim_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _dialog_vars@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dialog_vars@GOTPAGEOFF]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_30
; %bb.1:
	mov	w22, #0
	ldrb	w8, [x19]
	cbz	w8, LBB0_31
LBB0_2:
Lloh2:
	adrp	x24, _TAB@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TAB@GOTPAGEOFF]
	mov	w25, #32
	mov	w26, #10
	mov	x23, x19
	mov	x20, x19
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w25, [x23], #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_32
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldrb	w9, [x24]
	ldr	w10, [x21]
	cmp	w9, w8, uxtb
	ccmp	w10, #0, #0, eq
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	and	w9, w8, #0xff
	cmp	w9, #10
	b.eq	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #92
	b.ne	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w9, [x20, #1]
	cmp	w9, #110
	b.ne	LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	strb	w26, [x23]
	add	x20, x20, #2
	mov	x27, x20
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x27], #1
	bl	_UCH
	bl	_isblank
	cbnz	x0, LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldurb	w8, [x27, #-1]
	cmp	w8, #10
	csel	x20, x27, x20, eq
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #32
	strb	w8, [x20]
	cbnz	w22, LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [x21, #16]
	sxtb	w0, w8
	bl	_UCH
	bl	_isblank
	cbz	x27, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x0, LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldursb	w0, [x23, #-1]
	bl	_UCH
	bl	_isblank
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_trim_blank
	cbnz	w0, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	strb	w8, [x23], #1
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_trim_blank
	cbnz	w0, LBB0_4
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #10
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_17
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	strb	w26, [x23], #1
	b	LBB0_5
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20], #1
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x23], #1
	b	LBB0_5
LBB0_30:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cmp	x0, #0
	cset	w22, ne
	ldrb	w8, [x19]
	cbnz	w8, LBB0_2
LBB0_31:
	mov	x23, x19
LBB0_32:
	strb	wzr, [x23]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_vars,32,3               ; @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\n"

	.comm	_TAB,1,0                        ; @TAB
.subsections_via_symbols
