	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_get_first_item             ## -- Begin function xml_get_first_item
	.p2align	4, 0x90
_xml_get_first_item:                    ## @xml_get_first_item
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_os_strlen
	movl	%eax, %r12d
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_xml_next_tag
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	%r12d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_xml_next_tag
	testq	%rax, %rax
	jne	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rbx
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_os_strncasecmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax
	cmpb	$47, (%rax)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rax,%rcx), %eax
	cmpb	$62, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edi
	callq	_isgraph
	testl	%eax, %eax
	jne	LBB0_3
LBB0_8:
	movl	$1, %edi
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -48(%rbp)
	movzbl	(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$60, %cl
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	incl	%edi
	jmp	LBB0_9
LBB0_14:
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movq	%rax, %r14
	movl	-48(%rbp), %edx
	subl	%ebx, %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_get_first_item             ; -- Begin function xml_get_first_item
	.p2align	2
_xml_get_first_item:                    ; @xml_get_first_item
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_os_strlen
	mov	x21, x0
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_xml_next_tag
	cbz	x0, LBB0_3
LBB0_1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	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_3:
	sxtw	x22, w21
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_xml_next_tag
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x19, x0, [sp, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_os_strncasecmp
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w8, [x8, x22]
	cmp	w8, #62
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w8
	bl	_isgraph
	cbnz	w0, LBB0_4
LBB0_9:
	mov	x8, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x19, x8
	str	x9, [sp, #8]
	ldrb	w9, [x19, x8]
	cbz	w9, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #60
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	b	LBB0_10
LBB0_13:
	add	w0, w8, #1
	bl	_os_zalloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.14:
	ldr	w8, [sp, #8]
	sub	w2, w8, w19
	mov	x0, x20
	mov	x1, x19
	bl	_os_memcpy
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
