	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_tx_reset
_sky2_tx_reset:                         ## @sky2_tx_reset
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_TXA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_TXA_DIS_FSYNC@GOTPCREL(%rip), %rcx
	movq	_TXA_DIS_ALLOC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_TXA_STOP_RC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_TXA_ITI_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_TXA_LIM_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_txqaddr@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r14d, %ebx
	movl	(%rax,%rbx,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	_BMU_RST_SET@GOTPCREL(%rip), %rcx
	movq	_BMU_FIFO_RST@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_PREF_UNIT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Y2_QADDR
	movq	_PREF_UNIT_RST_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_RB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RB_ADDR
	movq	_RB_RST_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GMF_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_B0_CTST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_read32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXA_CTRL,4,2                   ## @TXA_CTRL
	.comm	_TXA_DIS_FSYNC,4,2              ## @TXA_DIS_FSYNC
	.comm	_TXA_DIS_ALLOC,4,2              ## @TXA_DIS_ALLOC
	.comm	_TXA_STOP_RC,4,2                ## @TXA_STOP_RC
	.comm	_TXA_ITI_INI,4,2                ## @TXA_ITI_INI
	.comm	_TXA_LIM_INI,4,2                ## @TXA_LIM_INI
	.comm	_txqaddr,8,3                    ## @txqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_BMU_RST_SET,8,3                ## @BMU_RST_SET
	.comm	_BMU_FIFO_RST,8,3               ## @BMU_FIFO_RST
	.comm	_PREF_UNIT_CTRL,4,2             ## @PREF_UNIT_CTRL
	.comm	_PREF_UNIT_RST_SET,8,3          ## @PREF_UNIT_RST_SET
	.comm	_RB_CTRL,4,2                    ## @RB_CTRL
	.comm	_RB_RST_SET,8,3                 ## @RB_RST_SET
	.comm	_TX_GMF_CTRL_T,4,2              ## @TX_GMF_CTRL_T
	.comm	_GMF_RST_SET,4,2                ## @GMF_RST_SET
	.comm	_B0_CTST,4,2                    ## @B0_CTST
	.no_dead_strip	_sky2_tx_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_tx_reset
_sky2_tx_reset:                         ; @sky2_tx_reset
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TXA_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXA_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh3:
	adrp	x8, _TXA_DIS_FSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXA_DIS_FSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TXA_DIS_ALLOC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXA_DIS_ALLOC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TXA_STOP_RC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TXA_STOP_RC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sky2_write8
Lloh12:
	adrp	x8, _TXA_ITI_INI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXA_ITI_INI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_sky2_write32
Lloh15:
	adrp	x8, _TXA_LIM_INI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXA_LIM_INI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_sky2_write32
Lloh18:
	adrp	x21, _txqaddr@GOTPAGE
Lloh19:
	ldr	x21, [x21, _txqaddr@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, w20
	lsl	x22, x9, #2
	ldr	w0, [x8, x22]
Lloh20:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
Lloh23:
	adrp	x8, _BMU_RST_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BMU_RST_SET@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _BMU_FIFO_RST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BMU_FIFO_RST@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_sky2_write32
	ldr	x8, [x21]
	ldr	w0, [x8, x22]
Lloh29:
	adrp	x8, _PREF_UNIT_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PREF_UNIT_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_Y2_QADDR
	mov	x1, x0
Lloh32:
	adrp	x8, _PREF_UNIT_RST_SET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PREF_UNIT_RST_SET@GOTPAGEOFF]
Lloh34:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_sky2_write32
	ldr	x8, [x21]
	ldr	w0, [x8, x22]
Lloh35:
	adrp	x8, _RB_CTRL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RB_CTRL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_RB_ADDR
	mov	x1, x0
Lloh38:
	adrp	x8, _RB_RST_SET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RB_RST_SET@GOTPAGEOFF]
Lloh40:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_sky2_write32
Lloh41:
	adrp	x8, _TX_GMF_CTRL_T@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TX_GMF_CTRL_T@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh44:
	adrp	x8, _GMF_RST_SET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GMF_RST_SET@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
Lloh47:
	adrp	x8, _B0_CTST@GOTPAGE
Lloh48:
	ldr	x8, [x8, _B0_CTST@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, 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	_sky2_read32
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.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 AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXA_CTRL,4,2                   ; @TXA_CTRL
	.comm	_TXA_DIS_FSYNC,4,2              ; @TXA_DIS_FSYNC
	.comm	_TXA_DIS_ALLOC,4,2              ; @TXA_DIS_ALLOC
	.comm	_TXA_STOP_RC,4,2                ; @TXA_STOP_RC
	.comm	_TXA_ITI_INI,4,2                ; @TXA_ITI_INI
	.comm	_TXA_LIM_INI,4,2                ; @TXA_LIM_INI
	.comm	_txqaddr,8,3                    ; @txqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_BMU_RST_SET,8,3                ; @BMU_RST_SET
	.comm	_BMU_FIFO_RST,8,3               ; @BMU_FIFO_RST
	.comm	_PREF_UNIT_CTRL,4,2             ; @PREF_UNIT_CTRL
	.comm	_PREF_UNIT_RST_SET,8,3          ; @PREF_UNIT_RST_SET
	.comm	_RB_CTRL,4,2                    ; @RB_CTRL
	.comm	_RB_RST_SET,8,3                 ; @RB_RST_SET
	.comm	_TX_GMF_CTRL_T,4,2              ; @TX_GMF_CTRL_T
	.comm	_GMF_RST_SET,4,2                ; @GMF_RST_SET
	.comm	_B0_CTST,4,2                    ; @B0_CTST
	.no_dead_strip	_sky2_tx_reset
.subsections_via_symbols
