	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archimedes_convert_node
_archimedes_convert_node:               ## @archimedes_convert_node
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	cmpq	$4, %rax
	jb	LBB0_6
## %bb.3:
	cmpb	$44, -4(%rax,%rbx)
	jne	LBB0_6
## %bb.4:
	leaq	(%rbx,%rax), %rdi
	addq	$-3, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	movq	16(%r15), %rax
	movq	(%rax), %rbx
LBB0_6:
	cmpb	$33, (%rbx)
	jne	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_assert
	movl	$1, %edi
	movl	$20, %esi
	callq	_ecalloc
	movq	%rax, %r14
	movq	16(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_riscos_date
	movl	%eax, %ebx
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$10, %edx
	callq	_memcpy
	movl	12(%r14), %esi
	callq	_cd9660_731
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_cd9660_731
	movq	_RO_ACCESS_UR@GOTPCREL(%rip), %rax
	movq	_RO_ACCESS_OR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	cmpb	$33, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_CDFS_PLING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_9:
	movl	%r12d, 4(%r14)
	movq	%r14, 8(%r15)
	movl	$20, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARCHIMEDES"

	.comm	_RO_ACCESS_UR,4,2               ## @RO_ACCESS_UR
	.comm	_RO_ACCESS_OR,4,2               ## @RO_ACCESS_OR
	.comm	_CDFS_PLING,4,2                 ## @CDFS_PLING
	.no_dead_strip	_archimedes_convert_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archimedes_convert_node
_archimedes_convert_node:               ; @archimedes_convert_node
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	cbz	x0, LBB0_1
; %bb.3:
	cmp	x0, #4
	b.lo	LBB0_7
; %bb.4:
	add	x8, x0, x20
	ldurb	w8, [x8, #-4]
	cmp	w8, #44
	b.ne	LBB0_7
; %bb.5:
	add	x8, x20, x0
	sub	x0, x8, #3
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x20, [x8]
LBB0_7:
	ldrb	w8, [x20]
	cmp	w8, #33
	b.ne	LBB0_1
LBB0_8:
	mov	w0, #0
	bl	_assert
	mov	w22, #20
	mov	w0, #1
	mov	w1, #20
	bl	_ecalloc
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_riscos_date
	mov	x21, x0
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #10
	bl	_memcpy
	ldr	w1, [x20, #12]
	bl	_cd9660_731
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_cd9660_731
Lloh2:
	adrp	x8, _RO_ACCESS_UR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RO_ACCESS_UR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RO_ACCESS_OR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RO_ACCESS_OR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w8, [x8]
Lloh8:
	adrp	x9, _CDFS_PLING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CDFS_PLING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #33
	csel	w8, w9, wzr, eq
	str	w8, [x20, #4]
	str	x20, [x19, #8]
	str	w22, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARCHIMEDES"

	.comm	_RO_ACCESS_UR,4,2               ; @RO_ACCESS_UR
	.comm	_RO_ACCESS_OR,4,2               ; @RO_ACCESS_OR
	.comm	_CDFS_PLING,4,2                 ; @CDFS_PLING
	.no_dead_strip	_archimedes_convert_node
.subsections_via_symbols
