	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_xml_text
_trim_xml_text:                         ## @trim_xml_text
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	$4, %rdi
	leaq	-112(%rbp), %r14
	movq	%r14, %rbx
	cmpq	$64, %rdi
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_AGALOC
	movq	%rax, %rbx
LBB0_2:
	leaq	_trim_xml_text.fmt(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_sprintf
	movq	%rax, %r12
	movb	$32, (%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strstr
	movq	%rax, %r13
	cmpq	%r14, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_AGFREE
LBB0_4:
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	movq	_OPTION_LOAD_UNCOOKED@GOTPCREL(%rip), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rax
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_SPN_WHITESPACE_BACK
LBB0_9:
	addq	%r12, %r13
	movq	_NUL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_trim_xml_text.fmt:                     ## @trim_xml_text.fmt
	.asciz	"</%s>"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scan name"

	.comm	_OPTION_LOAD_UNCOOKED,8,3       ## @OPTION_LOAD_UNCOOKED
	.comm	_NUL,1,0                        ## @NUL
	.no_dead_strip	_trim_xml_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_xml_text
_trim_xml_text:                         ; @trim_xml_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x0, x8, #4
	add	x24, sp, #8
	add	x23, sp, #8
	cmp	x0, #64
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AGALOC
	mov	x23, x0
LBB0_2:
Lloh5:
	adrp	x1, _trim_xml_text.fmt@PAGE
Lloh6:
	add	x1, x1, _trim_xml_text.fmt@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_sprintf
	mov	x21, x0
	mov	w8, #32
	strb	w8, [x19]
	mov	x0, x19
	mov	x1, x23
	bl	_strstr
	mov	x22, x0
	cmp	x23, x24
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_AGFREE
LBB0_4:
	cbz	x22, LBB0_8
; %bb.5:
	add	x21, x22, x21
Lloh7:
	adrp	x8, _OPTION_LOAD_UNCOOKED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPTION_LOAD_UNCOOKED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	bl	_SPN_WHITESPACE_BACK
	mov	x22, x0
LBB0_7:
Lloh10:
	adrp	x8, _NUL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NUL@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x22]
	b	LBB0_9
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_trim_xml_text.fmt:                     ; @trim_xml_text.fmt
	.asciz	"</%s>"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scan name"

	.comm	_OPTION_LOAD_UNCOOKED,8,3       ; @OPTION_LOAD_UNCOOKED
	.comm	_NUL,1,0                        ; @NUL
	.no_dead_strip	_trim_xml_text
.subsections_via_symbols
