	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_has_work
_tg3_has_work:                          ## @tg3_has_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r12
	movq	32(%rdi), %r15
	movq	_USE_LINKCHG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_POLL_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_SD_STATUS_LINK_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r12)
	setne	%bl
LBB0_3:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	movl	$1, %eax
	cmovnel	%eax, %ebx
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	(%rcx), %rcx
	cmpq	16(%r14), %rcx
	cmovnel	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_LINKCHG_REG,4,2            ## @USE_LINKCHG_REG
	.comm	_POLL_SERDES,4,2                ## @POLL_SERDES
	.comm	_SD_STATUS_LINK_CHG,4,2         ## @SD_STATUS_LINK_CHG
	.no_dead_strip	_tg3_has_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_has_work
_tg3_has_work:                          ; @tg3_has_work
	.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
	ldp	x21, x20, [x0, #24]
Lloh0:
	adrp	x8, _USE_LINKCHG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USE_LINKCHG_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _POLL_SERDES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLL_SERDES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	cbz	x0, LBB0_6
LBB0_2:
	mov	w8, #0
LBB0_3:
	ldr	x9, [x21, #8]
	ldr	x10, [x9]
	ldp	x11, x9, [x19]
	cmp	x10, x11
	csinc	w0, w8, wzr, eq
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x8, [x9]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	csinc	w0, w0, wzr, eq
LBB0_5:
	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	w8, [x21]
Lloh6:
	adrp	x9, _SD_STATUS_LINK_CHG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SD_STATUS_LINK_CHG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_LINKCHG_REG,4,2            ; @USE_LINKCHG_REG
	.comm	_POLL_SERDES,4,2                ; @POLL_SERDES
	.comm	_SD_STATUS_LINK_CHG,4,2         ; @SD_STATUS_LINK_CHG
	.no_dead_strip	_tg3_has_work
.subsections_via_symbols
