	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltCountKeys
_xsltCountKeys:                         ## @xsltCountKeys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_xsltNextImport
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_3:
	movl	$0, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_5:
	movl	$1, (%rbx)
LBB0_7:
	movq	8(%rbx), %rax
	movl	$0, 4(%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rdi
	callq	_xsltNextImport
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%rbx), %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%edx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, 4(%rbx)
	jmp	LBB0_13
LBB0_14:
	movl	4(%rbx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xsltCountKeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsltCountKeys
_xsltCountKeys:                         ; @xsltCountKeys
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_xsltNextImport
	cbnz	x0, LBB0_2
	b	LBB0_7
LBB0_4:
	mov	w0, #-1
	b	LBB0_14
LBB0_5:
	str	wzr, [x19, #4]
	b	LBB0_14
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	ldr	x0, [x19, #8]
	str	wzr, [x19, #4]
	cbnz	x0, LBB0_9
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_xsltNextImport
	cbz	x0, LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x19, #4]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w9, w9, #1
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w9, [x19, #4]
	b	LBB0_8
LBB0_13:
	ldr	w0, [x19, #4]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xsltCountKeys
.subsections_via_symbols
