	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtdev
_rtdev:                                 ## @rtdev
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_puffs_getroot
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	movl	$1, %ebx
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	callq	_dtfs_baseattrs
	movl	$1, (%r12)
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	callq	_makedev
	movl	%eax, 4(%r12)
	movq	_VBLK@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.3:
	movq	_S_IFBLK@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_S_IFCHR@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r12)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_puffs_setrootinfo
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*s %d %d"

	.comm	_VBLK,4,2                       ## @VBLK
	.comm	_S_IFBLK,4,2                    ## @S_IFBLK
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.no_dead_strip	_rtdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtdev
_rtdev:                                 ; @rtdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_puffs_getroot
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	bl	_sscanf
	mov	w22, #1
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #2
	bl	_dtfs_baseattrs
	str	w22, [x21]
	ldp	w1, w0, [sp, #8]
	bl	_makedev
	mov	x3, x0
Lloh2:
	adrp	x8, _VBLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VBLK@GOTPAGEOFF]
	str	w0, [x21, #4]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _S_IFBLK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S_IFBLK@GOTPAGEOFF]
Lloh7:
	adrp	x10, _S_IFCHR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _S_IFCHR@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_puffs_setrootinfo
	mov	w22, #0
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*s %d %d"

	.comm	_VBLK,4,2                       ; @VBLK
	.comm	_S_IFBLK,4,2                    ; @S_IFBLK
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.no_dead_strip	_rtdev
.subsections_via_symbols
