	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_poll_work
_tg3_poll_work:                         ## @tg3_poll_work
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	48(%rdi), %r15
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	(%rdi), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tg3_tx
	movq	_TX_RECOVERY_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	movq	%rax, %rdi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	(%rax), %rax
	cmpq	16(%rbx), %rax
	je	LBB0_5
## %bb.4:
	subl	%r14d, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_tg3_rx
	addl	%r14d, %eax
	movl	%eax, %r14d
LBB0_5:
	movq	_ENABLE_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	16(%r15), %rcx
	leaq	56(%rcx), %rax
	cmpq	%rbx, %rax
	jne	LBB0_18
## %bb.7:
	leaq	24(%rcx), %r12
	movq	24(%rcx), %rdx
	movq	32(%rcx), %rax
	movl	$0, (%r15)
	cmpl	$0, 4(%r15)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.9:
	leaq	80(%rcx), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tg3_rx_prodring_xfer
	movl	%eax, %ebx
	cmpl	$2, 4(%r15)
	jl	LBB0_12
## %bb.10:
	movl	$1, %r13d
	movl	$136, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incq	%r13
	movq	16(%r15), %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tg3_rx_prodring_xfer
	orl	%eax, %ebx
	movslq	4(%r15), %rax
	addq	$56, %r14
	cmpq	%rax, %r13
	jl	LBB0_11
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
LBB0_12:
	xorl	%eax, %eax
	callq	_wmb
	movq	(%r12), %rsi
	cmpq	%rsi, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	_TG3_RX_STD_PROD_IDX_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw32_rx_mbox
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rsi
	cmpq	%rsi, -64(%rbp)                 ## 8-byte Folded Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_16
## %bb.15:
	movq	_TG3_RX_JMB_PROD_IDX_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw32_rx_mbox
LBB0_16:
	xorl	%eax, %eax
	callq	_mmiowb
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movq	_HOSTCC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_tw32_f
LBB0_18:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RECOVERY_PENDING,4,2        ## @TX_RECOVERY_PENDING
	.comm	_ENABLE_RSS,4,2                 ## @ENABLE_RSS
	.comm	_TG3_RX_STD_PROD_IDX_REG,4,2    ## @TG3_RX_STD_PROD_IDX_REG
	.comm	_TG3_RX_JMB_PROD_IDX_REG,4,2    ## @TG3_RX_JMB_PROD_IDX_REG
	.comm	_HOSTCC_MODE,4,2                ## @HOSTCC_MODE
	.no_dead_strip	_tg3_poll_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_poll_work
_tg3_poll_work:                         ; @tg3_poll_work
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldp	x8, x20, [x0, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_tg3_tx
Lloh0:
	adrp	x8, _TX_RECOVERY_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_RECOVERY_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	bl	_unlikely
	cbnz	x0, LBB0_18
LBB0_2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.3:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	sub	w1, w22, w19
	mov	x0, x21
	bl	_tg3_rx
	add	w19, w0, w19
LBB0_5:
Lloh3:
	adrp	x8, _ENABLE_RSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENABLE_RSS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x23, [x20, #16]
	add	x8, x23, #56
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.7:
	mov	x22, x23
	ldp	x25, x24, [x22, #24]!
	str	wzr, [x20]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	add	x2, x23, #80
	mov	x0, x20
	mov	x1, x22
	bl	_tg3_rx_prodring_xfer
	mov	x21, x0
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.9:
	mov	w26, #1
	mov	w27, #136
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x26, x26, #1
	ldr	x8, [x20, #16]
	add	x2, x8, x27
	mov	x0, x20
	mov	x1, x22
	bl	_tg3_rx_prodring_xfer
	orr	w21, w0, w21
	ldrsw	x8, [x20, #4]
	add	x27, x27, #56
	cmp	x26, x8
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	bl	_wmb
	ldr	x1, [x22]
	cmp	x25, x1
	b.eq	LBB0_14
; %bb.13:
Lloh6:
	adrp	x8, _TG3_RX_STD_PROD_IDX_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TG3_RX_STD_PROD_IDX_REG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_tw32_rx_mbox
LBB0_14:
	ldr	x1, [x23, #32]
	cmp	x24, x1
	b.eq	LBB0_16
; %bb.15:
Lloh9:
	adrp	x8, _TG3_RX_JMB_PROD_IDX_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TG3_RX_JMB_PROD_IDX_REG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_tw32_rx_mbox
LBB0_16:
	bl	_mmiowb
	cbz	w21, LBB0_18
; %bb.17:
Lloh12:
	adrp	x8, _HOSTCC_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HOSTCC_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_tw32_f
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RECOVERY_PENDING,4,2        ; @TX_RECOVERY_PENDING
	.comm	_ENABLE_RSS,4,2                 ; @ENABLE_RSS
	.comm	_TG3_RX_STD_PROD_IDX_REG,4,2    ; @TG3_RX_STD_PROD_IDX_REG
	.comm	_TG3_RX_JMB_PROD_IDX_REG,4,2    ; @TG3_RX_JMB_PROD_IDX_REG
	.comm	_HOSTCC_MODE,4,2                ; @HOSTCC_MODE
	.no_dead_strip	_tg3_poll_work
.subsections_via_symbols
