	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_init_hw                     ## -- Begin function t3_init_hw
	.p2align	4, 0x90
_t3_init_hw:                            ## @t3_init_hw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	cmpq	$0, (%rdi)
	jle	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_calibrate_xgm_t3b
LBB0_3:
	cmpq	$0, 40(%r13)
	je	LBB0_11
## %bb.4:
	leaq	16(%r13), %rsi
	movq	%r13, %rdi
	callq	_partition_mem
	leaq	60(%r13), %rdi
	movq	40(%r13), %rsi
	movl	36(%r13), %edx
	callq	_mc7_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.5:
	leaq	56(%r13), %rdi
	movq	40(%r13), %rsi
	movl	36(%r13), %edx
	callq	_mc7_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:
	leaq	52(%r13), %rdi
	movq	40(%r13), %rsi
	movl	36(%r13), %edx
	callq	_mc7_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.7:
	leaq	48(%r13), %rdi
	movl	28(%r13), %esi
	movl	20(%r13), %ecx
	movl	24(%r13), %edx
	callq	_t3_mc5_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.8:
	xorl	%r15d, %r15d
	movq	_F_CQ@GOTPCREL(%rip), %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_clear_sge_ctxt
	testq	%rax, %rax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%r15d
	cmpl	$32, %r15d
	jne	LBB0_10
LBB0_11:
	leaq	16(%r13), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_tp_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.12:
	movl	8(%r13), %edi
	movq	_MAX_RX_COALESCING_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_t3_tp_set_coalescing_size
	movl	8(%r13), %edi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_min
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_t3_tp_set_max_rxsize
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ulp_config
	movq	%r13, %rdi
	callq	_is_pcie
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_config_pcie
	jmp	LBB0_15
LBB0_2:
	movq	%r13, %rdi
	callq	_calibrate_xgm
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_3
LBB0_14:
	movq	_A_PCIX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_F_DMASTOPEN@GOTPCREL(%rip), %rax
	movq	_F_CLIDECEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t3_set_reg_field
LBB0_15:
	leaq	8(%r13), %r15
	movq	(%r13), %rax
	movq	_T3_REV_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_A_ULPTX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_F_CFG_CQE_SOP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t3_set_reg_field
LBB0_17:
	movq	_A_PM1_RX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_t3_write_reg
	movq	_A_PM1_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	_A_PM1_TX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movl	12(%r13), %esi
	movq	%r13, %rdi
	callq	_chan_init_hw
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_t3_sge_init
	movq	_A_PL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_F_FATALPERREN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_t3_set_reg_field
	movq	_A_T3DBG_GPIO_ACT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_calc_gpio_intr
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_CIM_HOST_ACC_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	32(%r13), %r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_t3_write_reg
	movq	_A_CIM_BOOT_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	_FW_FLASH_BOOT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	callq	_V_BOOTADDR
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_t3_read_reg
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_t3_read_reg
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	jne	LBB0_18
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_23
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_CH_ERR
LBB0_22:
	movl	%r12d, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_F_CQ,4,2                       ## @F_CQ
	.comm	_MAX_RX_COALESCING_LEN,4,2      ## @MAX_RX_COALESCING_LEN
	.comm	_A_PCIX_CFG,4,2                 ## @A_PCIX_CFG
	.comm	_F_DMASTOPEN,4,2                ## @F_DMASTOPEN
	.comm	_F_CLIDECEN,4,2                 ## @F_CLIDECEN
	.comm	_T3_REV_C,8,3                   ## @T3_REV_C
	.comm	_A_ULPTX_CONFIG,4,2             ## @A_ULPTX_CONFIG
	.comm	_F_CFG_CQE_SOP_MASK,4,2         ## @F_CFG_CQE_SOP_MASK
	.comm	_A_PM1_RX_CFG,4,2               ## @A_PM1_RX_CFG
	.comm	_A_PM1_RX_MODE,4,2              ## @A_PM1_RX_MODE
	.comm	_A_PM1_TX_MODE,4,2              ## @A_PM1_TX_MODE
	.comm	_A_PL_RST,4,2                   ## @A_PL_RST
	.comm	_F_FATALPERREN,4,2              ## @F_FATALPERREN
	.comm	_A_T3DBG_GPIO_ACT_LOW,4,2       ## @A_T3DBG_GPIO_ACT_LOW
	.comm	_A_CIM_HOST_ACC_DATA,4,2        ## @A_CIM_HOST_ACC_DATA
	.comm	_A_CIM_BOOT_CFG,4,2             ## @A_CIM_BOOT_CFG
	.comm	_FW_FLASH_BOOT_ADDR,4,2         ## @FW_FLASH_BOOT_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uP initialization timed out\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_init_hw                     ; -- Begin function t3_init_hw
	.p2align	2
_t3_init_hw:                            ; @t3_init_hw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.1:
	bl	_calibrate_xgm_t3b
LBB0_2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
; %bb.3:
	add	x1, x20, #16
	mov	x0, x20
	bl	_partition_mem
	add	x0, x20, #60
	ldr	x1, [x20, #40]
	ldr	w2, [x20, #36]
	bl	_mc7_init
	cbnz	x0, LBB0_23
; %bb.4:
	add	x0, x20, #56
	ldr	x1, [x20, #40]
	ldr	w2, [x20, #36]
	bl	_mc7_init
	cbnz	x0, LBB0_23
; %bb.5:
	add	x0, x20, #52
	ldr	x1, [x20, #40]
	ldr	w2, [x20, #36]
	bl	_mc7_init
	cbnz	x0, LBB0_23
; %bb.6:
	add	x0, x20, #48
	ldp	w2, w1, [x20, #24]
	ldr	w3, [x20, #20]
	bl	_t3_mc5_init
	cbnz	x0, LBB0_23
; %bb.7:
	mov	w22, #0
Lloh3:
	adrp	x23, _F_CQ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _F_CQ@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_clear_sge_ctxt
	cbnz	x0, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	cmp	w22, #32
	b.ne	LBB0_8
LBB0_10:
	add	x23, x20, #16
	mov	x0, x20
	mov	x1, x23
	bl	_tp_init
	cbnz	x0, LBB0_23
; %bb.11:
	mov	x22, x20
	ldr	w0, [x22, #8]!
Lloh5:
	adrp	x8, _MAX_RX_COALESCING_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_RX_COALESCING_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_min
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_t3_tp_set_coalescing_size
	ldr	w0, [x22]
	mov	w1, #16384
	bl	_min
	mov	x1, x0
	mov	x0, x20
	bl	_t3_tp_set_max_rxsize
	mov	x0, x20
	mov	x1, x23
	bl	_ulp_config
	mov	x0, x20
	bl	_is_pcie
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x20
	bl	_config_pcie
	b	LBB0_15
LBB0_13:
	bl	_calibrate_xgm
	cbnz	x0, LBB0_23
	b	LBB0_2
LBB0_14:
Lloh8:
	adrp	x8, _A_PCIX_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _A_PCIX_CFG@GOTPAGEOFF]
Lloh10:
	adrp	x9, _F_DMASTOPEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _F_DMASTOPEN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _F_CLIDECEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _F_CLIDECEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	w2, #0
	bl	_t3_set_reg_field
LBB0_15:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _T3_REV_C@GOTPAGE
Lloh18:
	ldr	x9, [x9, _T3_REV_C@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh20:
	adrp	x8, _A_ULPTX_CONFIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _A_ULPTX_CONFIG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _F_CFG_CQE_SOP_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_CFG_CQE_SOP_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_t3_set_reg_field
LBB0_17:
Lloh26:
	adrp	x8, _A_PM1_RX_CFG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _A_PM1_RX_CFG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_t3_write_reg
Lloh29:
	adrp	x8, _A_PM1_RX_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _A_PM1_RX_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_t3_write_reg
Lloh32:
	adrp	x8, _A_PM1_TX_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _A_PM1_TX_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_t3_write_reg
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_chan_init_hw
	mov	x0, x20
	mov	x1, x22
	bl	_t3_sge_init
Lloh35:
	adrp	x8, _A_PL_RST@GOTPAGE
Lloh36:
	ldr	x8, [x8, _A_PL_RST@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _F_FATALPERREN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _F_FATALPERREN@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_t3_set_reg_field
Lloh41:
	adrp	x8, _A_T3DBG_GPIO_ACT_LOW@GOTPAGE
Lloh42:
	ldr	x8, [x8, _A_T3DBG_GPIO_ACT_LOW@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_calc_gpio_intr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_t3_write_reg
Lloh44:
	adrp	x22, _A_CIM_HOST_ACC_DATA@GOTPAGE
Lloh45:
	ldr	x22, [x22, _A_CIM_HOST_ACC_DATA@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x20, #32]
	orr	w2, w8, w21
	mov	x0, x20
	bl	_t3_write_reg
Lloh46:
	adrp	x23, _A_CIM_BOOT_CFG@GOTPAGE
Lloh47:
	ldr	x23, [x23, _A_CIM_BOOT_CFG@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh48:
	adrp	x8, _FW_FLASH_BOOT_ADDR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FW_FLASH_BOOT_ADDR@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	asr	w0, w8, #2
	bl	_V_BOOTADDR
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_t3_write_reg
	ldr	w1, [x23]
	mov	x0, x20
	bl	_t3_read_reg
	mov	w21, #-100
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x20
	bl	_t3_read_reg
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	adds	w21, w21, #1
	b.lo	LBB0_18
	b	LBB0_22
LBB0_20:
	cbz	w21, LBB0_22
; %bb.21:
	mov	w19, #0
	b	LBB0_23
LBB0_22:
Lloh51:
	adrp	x1, l_.str@PAGE
Lloh52:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_CH_ERR
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_F_CQ,4,2                       ; @F_CQ
	.comm	_MAX_RX_COALESCING_LEN,4,2      ; @MAX_RX_COALESCING_LEN
	.comm	_A_PCIX_CFG,4,2                 ; @A_PCIX_CFG
	.comm	_F_DMASTOPEN,4,2                ; @F_DMASTOPEN
	.comm	_F_CLIDECEN,4,2                 ; @F_CLIDECEN
	.comm	_T3_REV_C,8,3                   ; @T3_REV_C
	.comm	_A_ULPTX_CONFIG,4,2             ; @A_ULPTX_CONFIG
	.comm	_F_CFG_CQE_SOP_MASK,4,2         ; @F_CFG_CQE_SOP_MASK
	.comm	_A_PM1_RX_CFG,4,2               ; @A_PM1_RX_CFG
	.comm	_A_PM1_RX_MODE,4,2              ; @A_PM1_RX_MODE
	.comm	_A_PM1_TX_MODE,4,2              ; @A_PM1_TX_MODE
	.comm	_A_PL_RST,4,2                   ; @A_PL_RST
	.comm	_F_FATALPERREN,4,2              ; @F_FATALPERREN
	.comm	_A_T3DBG_GPIO_ACT_LOW,4,2       ; @A_T3DBG_GPIO_ACT_LOW
	.comm	_A_CIM_HOST_ACC_DATA,4,2        ; @A_CIM_HOST_ACC_DATA
	.comm	_A_CIM_BOOT_CFG,4,2             ; @A_CIM_BOOT_CFG
	.comm	_FW_FLASH_BOOT_ADDR,4,2         ; @FW_FLASH_BOOT_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uP initialization timed out\n"

.subsections_via_symbols
