	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dconsole_init
_dconsole_init:                         ## @dconsole_init
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_dcons_started@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	movl	$1, (%rax)
	movq	_DCONS_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_dcons_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_page
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VTOP
	movq	_dcons_paddr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_setenv
	movq	_sc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dcons_init
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sprintf
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_setenv
	xorl	%eax, %eax
	callq	_fw_enable
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dcons_started,4,2              ## @dcons_started
	.comm	_DCONS_BUF_SIZE,4,2             ## @DCONS_BUF_SIZE
	.comm	_dcons_buffer,8,3               ## @dcons_buffer
	.comm	_dcons_paddr,4,2                ## @dcons_paddr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%08x"

L_.str.1:                               ## @.str.1
	.asciz	"dcons.addr"

	.comm	_sc,4,2                         ## @sc
L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"dcons.size"

	.no_dead_strip	_dconsole_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dconsole_init
_dconsole_init:                         ; @dconsole_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _dcons_started@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dcons_started@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x8, _DCONS_BUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCONS_BUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _dcons_buffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dcons_buffer@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_round_page
	mov	x20, x0
	bl	_VTOP
	mov	x2, x0
Lloh11:
	adrp	x8, _dcons_paddr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dcons_paddr@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
Lloh18:
	adrp	x8, _sc@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sc@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_dcons_init
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
	bl	_fw_enable
LBB0_3:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_dcons_started,4,2              ; @dcons_started
	.comm	_DCONS_BUF_SIZE,4,2             ; @DCONS_BUF_SIZE
	.comm	_dcons_buffer,8,3               ; @dcons_buffer
	.comm	_dcons_paddr,4,2                ; @dcons_paddr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%08x"

l_.str.1:                               ; @.str.1
	.asciz	"dcons.addr"

	.comm	_sc,4,2                         ; @sc
l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"dcons.size"

	.no_dead_strip	_dconsole_init
.subsections_via_symbols
