	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtasdev_attach
_rtasdev_attach:                        ## @rtasdev_attach
	.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
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_rtas_token_lookup
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_clock_register
LBB0_2:
	movq	_shutdown_final@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rtas_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHUTDOWN_PRI_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get-time-of-day"

	.comm	_shutdown_final,4,2             ## @shutdown_final
	.comm	_rtas_shutdown,4,2              ## @rtas_shutdown
	.comm	_SHUTDOWN_PRI_LAST,4,2          ## @SHUTDOWN_PRI_LAST
	.no_dead_strip	_rtasdev_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtasdev_attach
_rtasdev_attach:                        ; @rtasdev_attach
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rtas_token_lookup
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2000
	bl	_clock_register
LBB0_2:
Lloh2:
	adrp	x8, _shutdown_final@GOTPAGE
Lloh3:
	ldr	x8, [x8, _shutdown_final@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _rtas_shutdown@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rtas_shutdown@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SHUTDOWN_PRI_LAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SHUTDOWN_PRI_LAST@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get-time-of-day"

	.comm	_shutdown_final,4,2             ; @shutdown_final
	.comm	_rtas_shutdown,4,2              ; @rtas_shutdown
	.comm	_SHUTDOWN_PRI_LAST,4,2          ; @SHUTDOWN_PRI_LAST
	.no_dead_strip	_rtasdev_attach
.subsections_via_symbols
