	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn_drvinit
_cn_drvinit:                            ## @cn_drvinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_mambo_consdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_CN_DEAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	8(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	_mambo_ttydevsw@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_tty_alloc
	movq	_tp@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_tty_init_console
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	xorl	%esi, %esi
	callq	_tty_makedev
	movq	_polltime@GOTPCREL(%rip), %r14
	movl	$1, (%r14)
	movq	_mambo_callout@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_callout_init
	movl	(%r14), %esi
	movq	_mambo_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mambo_consdev,16,3             ## @mambo_consdev
	.comm	_CN_DEAD,8,3                    ## @CN_DEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/mambo"

	.comm	_mambo_ttydevsw,4,2             ## @mambo_ttydevsw
	.comm	_tp,4,2                         ## @tp
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"mambocons"

	.comm	_polltime,4,2                   ## @polltime
	.comm	_mambo_callout,4,2              ## @mambo_callout
	.comm	_mambo_timeout,4,2              ## @mambo_timeout
	.no_dead_strip	_cn_drvinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn_drvinit
_cn_drvinit:                            ; @cn_drvinit
	.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
Lloh0:
	adrp	x8, _mambo_consdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mambo_consdev@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _CN_DEAD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CN_DEAD@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x8, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, _mambo_ttydevsw@GOTPAGE
Lloh8:
	ldr	x0, [x0, _mambo_ttydevsw@GOTPAGEOFF]
	mov	x1, #0
	bl	_tty_alloc
Lloh9:
	adrp	x19, _tp@GOTPAGE
Lloh10:
	ldr	x19, [x19, _tp@GOTPAGEOFF]
	str	w0, [x19]
	mov	w1, #0
	bl	_tty_init_console
	ldr	w0, [x19]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_tty_makedev
Lloh15:
	adrp	x20, _polltime@GOTPAGE
Lloh16:
	ldr	x20, [x20, _polltime@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x20]
Lloh17:
	adrp	x19, _mambo_callout@GOTPAGE
Lloh18:
	ldr	x19, [x19, _mambo_callout@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #1
	bl	_callout_init
Lloh19:
	adrp	x8, _mambo_timeout@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mambo_timeout@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_callout_reset
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mambo_consdev,16,3             ; @mambo_consdev
	.comm	_CN_DEAD,8,3                    ; @CN_DEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/mambo"

	.comm	_mambo_ttydevsw,4,2             ; @mambo_ttydevsw
	.comm	_tp,4,2                         ; @tp
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"mambocons"

	.comm	_polltime,4,2                   ; @polltime
	.comm	_mambo_callout,4,2              ; @mambo_callout
	.comm	_mambo_timeout,4,2              ; @mambo_timeout
	.no_dead_strip	_cn_drvinit
.subsections_via_symbols
