	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_init_hw_modules             ## -- Begin function t1_init_hw_modules
	.p2align	4, 0x90
_t1_init_hw_modules:                    ## @t1_init_hw_modules
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	callq	_board_info
	movq	%rax, %r15
	cmpl	$0, 12(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_A_MC4_CFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_F_READY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_F_MC4_SLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r12), %rsi
	addq	24(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_F_M_BUS_ENABLE@GOTPCREL(%rip), %rax
	movq	_F_TCAM_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_A_MC5_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	callq	_t1_espi_init
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movl	12(%rbx), %edi
	leaq	4(%rbx), %rsi
	movl	(%r15), %edx
	callq	_t1_tp_reset
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t1_sge_configure               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_A_MC4_CFG,8,3                  ## @A_MC4_CFG
	.comm	_F_READY,4,2                    ## @F_READY
	.comm	_F_MC4_SLOW,4,2                 ## @F_MC4_SLOW
	.comm	_F_M_BUS_ENABLE,4,2             ## @F_M_BUS_ENABLE
	.comm	_F_TCAM_RESET,4,2               ## @F_TCAM_RESET
	.comm	_A_MC5_CONFIG,8,3               ## @A_MC5_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_init_hw_modules             ; -- Begin function t1_init_hw_modules
	.p2align	2
_t1_init_hw_modules:                    ; @t1_init_hw_modules
	.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	x19, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_board_info
	mov	x20, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x22, _A_MC4_CFG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _A_MC4_CFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _F_READY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_READY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _F_MC4_SLOW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _F_MC4_SLOW@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh10:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #24]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh11:
	adrp	x8, _F_M_BUS_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_M_BUS_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _F_TCAM_RESET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _F_TCAM_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #24]
Lloh17:
	adrp	x9, _A_MC5_CONFIG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _A_MC5_CONFIG@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
LBB0_3:
	ldp	w2, w1, [x20, #4]
	bl	_t1_espi_init
	cbnz	x0, LBB0_5
LBB0_4:
	ldr	w0, [x19, #12]
	add	x1, x19, #4
	ldr	w2, [x20]
	bl	_t1_tp_reset
	cbz	x0, LBB0_6
LBB0_5:
	neg	w0, w21
	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
LBB0_6:
	ldr	w0, [x19, #8]
	mov	x1, x19
	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
	b	_t1_sge_configure
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_A_MC4_CFG,8,3                  ; @A_MC4_CFG
	.comm	_F_READY,4,2                    ; @F_READY
	.comm	_F_MC4_SLOW,4,2                 ; @F_MC4_SLOW
	.comm	_F_M_BUS_ENABLE,4,2             ; @F_M_BUS_ENABLE
	.comm	_F_TCAM_RESET,4,2               ; @F_TCAM_RESET
	.comm	_A_MC5_CONFIG,8,3               ; @A_MC5_CONFIG
.subsections_via_symbols
