	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3b2_mac_watchdog_task         ## -- Begin function t3b2_mac_watchdog_task
	.p2align	4, 0x90
_t3b2_mac_watchdog_task:                ## @t3b2_mac_watchdog_task
	.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
	movl	(%rdi), %r15d
	movl	56(%rdi), %ecx
	movl	$1, %eax
	cmpl	40(%rdi), %ecx
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rcx
	cmpq	48(%rbx), %rcx
	jne	LBB0_5
## %bb.2:
	movq	64(%rbx), %r14
	movq	_A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPCREL(%rip), %rax
	movq	24(%rbx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movl	%eax, %edi
	callq	_G_TXSPI4SOPCNT
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_A_TP_PIO_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_A_TP_TX_DROP_CNT_CH0@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_macidx
	addq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_t3_write_reg
	movq	_A_TP_PIO_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movl	%eax, %edi
	callq	_G_TXDROPCNTCH0RCVD
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	(%rbx), %r15d
	je	LBB0_5
## %bb.4:
	cmpl	$0, 20(%rbx)
	je	LBB0_7
LBB0_5:
	movl	$0, 16(%rbx)
LBB0_6:
	movl	%r15d, (%rbx)
	movl	%eax, 20(%rbx)
	movl	56(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	48(%rbx), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$4, 16(%rbx)
	movl	%r15d, (%rbx)
	movl	$0, 20(%rbx)
	movl	56(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	48(%rbx), %rax
	movq	%rax, 8(%rbx)
	jle	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_t3b2_mac_reset
	movl	$0, 16(%rbx)
	movl	$2, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_A_XGM_TX_CTRL@GOTPCREL(%rip), %r15
	movq	24(%rbx), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	24(%rbx), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rdx
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_t3_write_reg
	movq	24(%rbx), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	incl	16(%rbx)
	movl	$1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_A_XGM_TX_SPI4_SOP_EOP_CNT,8,3  ## @A_XGM_TX_SPI4_SOP_EOP_CNT
	.comm	_A_TP_PIO_ADDR,8,3              ## @A_TP_PIO_ADDR
	.comm	_A_TP_TX_DROP_CNT_CH0,8,3       ## @A_TP_TX_DROP_CNT_CH0
	.comm	_A_TP_PIO_DATA,8,3              ## @A_TP_PIO_DATA
	.comm	_A_XGM_TX_CTRL,8,3              ## @A_XGM_TX_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3b2_mac_watchdog_task         ; -- Begin function t3b2_mac_watchdog_task
	.p2align	2
_t3b2_mac_watchdog_task:                ; @t3b2_mac_watchdog_task
	.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
	ldr	w8, [x0, #56]
	ldr	w21, [x0]
	ldr	w9, [x0, #40]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #48]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x20, [x19, #64]
Lloh0:
	adrp	x8, _A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
	bl	_G_TXSPI4SOPCNT
	cbnz	w0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _A_TP_PIO_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_TP_PIO_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
Lloh6:
	adrp	x8, _A_TP_TX_DROP_CNT_CH0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_TP_TX_DROP_CNT_CH0@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_macidx
	add	x2, x0, x22
	mov	x0, x20
	mov	x1, x21
	bl	_t3_write_reg
Lloh9:
	adrp	x8, _A_TP_PIO_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _A_TP_PIO_DATA@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	bl	_G_TXDROPCNTCH0RCVD
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_10
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	str	wzr, [x19, #16]
LBB0_8:
	mov	w8, #0
	str	w21, [x19]
	str	w0, [x19, #20]
	ldr	w9, [x19, #56]
	str	w9, [x19, #40]
	ldr	x9, [x19, #48]
	str	x9, [x19, #8]
LBB0_9:
	mov	x0, x8
	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_10:
	ldr	w8, [x19, #16]
	str	w21, [x19]
	str	wzr, [x19, #20]
	ldr	w9, [x19, #56]
	str	w9, [x19, #40]
	ldr	x9, [x19, #48]
	str	x9, [x19, #8]
	cmp	w8, #4
	b.le	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_t3b2_mac_reset
	str	wzr, [x19, #16]
	mov	w8, #2
	b	LBB0_9
LBB0_12:
Lloh12:
	adrp	x21, _A_XGM_TX_CTRL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _A_XGM_TX_CTRL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, #0
	bl	_t3_write_reg
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
	ldr	x8, [x21]
	ldp	x9, x2, [x19, #24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_write_reg
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	w8, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_A_XGM_TX_SPI4_SOP_EOP_CNT,8,3  ; @A_XGM_TX_SPI4_SOP_EOP_CNT
	.comm	_A_TP_PIO_ADDR,8,3              ; @A_TP_PIO_ADDR
	.comm	_A_TP_TX_DROP_CNT_CH0,8,3       ; @A_TP_TX_DROP_CNT_CH0
	.comm	_A_TP_PIO_DATA,8,3              ; @A_TP_PIO_DATA
	.comm	_A_XGM_TX_CTRL,8,3              ; @A_XGM_TX_CTRL
.subsections_via_symbols
