	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbcs_hw_init
_mbcs_hw_init:                          ## @mbcs_hw_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_MBCS_CM_REQ_TOUT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_MBCS_MMR_GET
	movq	_MBCS_CM_CONTROL_REQ_TOUT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_MBCS_MMR_SET
	movq	%r14, %rdi
	callq	_mbcs_gscr_pioaddr_set
	movq	%r14, %rdi
	callq	_mbcs_debug_pioaddr_set
	movq	_MBCS_CM_ERR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MBCS_MMR_GET
	movq	_MBCS_CM_CLR_ERR_STAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_MBCS_MMR_SET
	movq	_MBCS_CM_ERROR_DETAIL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MBCS_MMR_ZERO
	movq	_MBCS_CM_ERR_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-8519425, %edx                 ## imm = 0xFF7E00FF
	callq	_MBCS_MMR_SET
	movq	_MBCS_CM_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_MBCS_MMR_GET
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_MBCS_MMR_SET
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBCS_CM_REQ_TOUT,4,2           ## @MBCS_CM_REQ_TOUT
	.comm	_MBCS_CM_CONTROL_REQ_TOUT_MASK,4,2 ## @MBCS_CM_CONTROL_REQ_TOUT_MASK
	.comm	_MBCS_CM_ERR_STAT,4,2           ## @MBCS_CM_ERR_STAT
	.comm	_MBCS_CM_CLR_ERR_STAT,4,2       ## @MBCS_CM_CLR_ERR_STAT
	.comm	_MBCS_CM_ERROR_DETAIL1,4,2      ## @MBCS_CM_ERROR_DETAIL1
	.comm	_MBCS_CM_ERR_INT_EN,4,2         ## @MBCS_CM_ERR_INT_EN
	.comm	_MBCS_CM_CONTROL,4,2            ## @MBCS_CM_CONTROL
	.no_dead_strip	_mbcs_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbcs_hw_init
_mbcs_hw_init:                          ; @mbcs_hw_init
	.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
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _MBCS_CM_REQ_TOUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MBCS_CM_REQ_TOUT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_MBCS_MMR_GET
Lloh2:
	adrp	x8, _MBCS_CM_CONTROL_REQ_TOUT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBCS_CM_CONTROL_REQ_TOUT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_MBCS_MMR_SET
	mov	x0, x20
	bl	_mbcs_gscr_pioaddr_set
	mov	x0, x20
	bl	_mbcs_debug_pioaddr_set
Lloh5:
	adrp	x8, _MBCS_CM_ERR_STAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBCS_CM_ERR_STAT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MBCS_MMR_GET
	mov	x2, x0
Lloh8:
	adrp	x8, _MBCS_CM_CLR_ERR_STAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBCS_CM_CLR_ERR_STAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_MBCS_MMR_SET
Lloh11:
	adrp	x8, _MBCS_CM_ERROR_DETAIL1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBCS_CM_ERROR_DETAIL1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MBCS_MMR_ZERO
Lloh14:
	adrp	x8, _MBCS_CM_ERR_INT_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBCS_CM_ERR_INT_EN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	movk	w2, #65406, lsl #16
	bl	_MBCS_MMR_SET
Lloh17:
	adrp	x20, _MBCS_CM_CONTROL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _MBCS_CM_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_MBCS_MMR_GET
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_MBCS_MMR_SET
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MBCS_CM_REQ_TOUT,4,2           ; @MBCS_CM_REQ_TOUT
	.comm	_MBCS_CM_CONTROL_REQ_TOUT_MASK,4,2 ; @MBCS_CM_CONTROL_REQ_TOUT_MASK
	.comm	_MBCS_CM_ERR_STAT,4,2           ; @MBCS_CM_ERR_STAT
	.comm	_MBCS_CM_CLR_ERR_STAT,4,2       ; @MBCS_CM_CLR_ERR_STAT
	.comm	_MBCS_CM_ERROR_DETAIL1,4,2      ; @MBCS_CM_ERROR_DETAIL1
	.comm	_MBCS_CM_ERR_INT_EN,4,2         ; @MBCS_CM_ERR_INT_EN
	.comm	_MBCS_CM_CONTROL,4,2            ; @MBCS_CM_CONTROL
	.no_dead_strip	_mbcs_hw_init
.subsections_via_symbols
