	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_poll_fw
_tg3_poll_fw:                           ## @tg3_poll_fw
	.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
	movq	%rdi, %r13
	movq	_NO_FWARE_REPORTED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_tg3_flag
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_IS_SSB_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5906@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.12:
	movl	$200, %ebx
	movq	_VCPU_STATUS@GOTPCREL(%rip), %r15
	movq	_VCPU_STATUS_INIT_DONE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_tr32
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r13), %edi
	callq	_pci_channel_offline
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_13
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movl	$100000, %ebx                   ## imm = 0x186A0
	movq	_NIC_SRAM_FIRMWARE_MBOX_MAGIC1@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NIC_SRAM_FIRMWARE_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-44(%rbp), %rdx
	callq	_tg3_read_mem
	movl	(%r15), %eax
	notl	%eax
	cmpl	%eax, -44(%rbp)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %edi
	callq	_pci_channel_offline
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_4
LBB0_7:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_tg3_flag_set
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
LBB0_9:
	movq	%r13, %rdi
	callq	_tg3_chip_rev_id
	movq	_CHIPREV_ID_57765_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	$10, %edi
	callq	_mdelay
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_FWARE_REPORTED,4,2          ## @NO_FWARE_REPORTED
	.comm	_IS_SSB_CORE,4,2                ## @IS_SSB_CORE
	.comm	_ASIC_REV_5906,8,3              ## @ASIC_REV_5906
	.comm	_VCPU_STATUS,4,2                ## @VCPU_STATUS
	.comm	_VCPU_STATUS_INIT_DONE,4,2      ## @VCPU_STATUS_INIT_DONE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NIC_SRAM_FIRMWARE_MBOX,4,2     ## @NIC_SRAM_FIRMWARE_MBOX
	.comm	_NIC_SRAM_FIRMWARE_MBOX_MAGIC1,4,2 ## @NIC_SRAM_FIRMWARE_MBOX_MAGIC1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No firmware running\n"

	.comm	_CHIPREV_ID_57765_A0,8,3        ## @CHIPREV_ID_57765_A0
	.no_dead_strip	_tg3_poll_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_poll_fw
_tg3_poll_fw:                           ; @tg3_poll_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x20, _NO_FWARE_REPORTED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NO_FWARE_REPORTED@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_tg3_flag
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IS_SSB_CORE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_SSB_CORE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh5:
	adrp	x8, _ASIC_REV_5906@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASIC_REV_5906@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
	mov	w20, #200
Lloh8:
	adrp	x21, _VCPU_STATUS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VCPU_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x22, _VCPU_STATUS_INIT_DONE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _VCPU_STATUS_INIT_DONE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_tr32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #4]
	bl	_pci_channel_offline
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #100
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_6
LBB0_9:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_10:
	mov	w21, #34464
	movk	w21, #1, lsl #16
Lloh15:
	adrp	x22, _NIC_SRAM_FIRMWARE_MBOX@GOTPAGE
Lloh16:
	ldr	x22, [x22, _NIC_SRAM_FIRMWARE_MBOX@GOTPAGEOFF]
Lloh17:
	adrp	x23, _NIC_SRAM_FIRMWARE_MBOX_MAGIC1@GOTPAGE
Lloh18:
	ldr	x23, [x23, _NIC_SRAM_FIRMWARE_MBOX_MAGIC1@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_read_mem
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	mvn	w9, w9
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #4]
	bl	_pci_channel_offline
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_11
LBB0_14:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_tg3_flag
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_tg3_flag_set
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
LBB0_16:
	mov	x0, x19
	bl	_tg3_chip_rev_id
Lloh21:
	adrp	x8, _CHIPREV_ID_57765_A0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHIPREV_ID_57765_A0@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.17:
	mov	w0, #10
	bl	_mdelay
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_FWARE_REPORTED,4,2          ; @NO_FWARE_REPORTED
	.comm	_IS_SSB_CORE,4,2                ; @IS_SSB_CORE
	.comm	_ASIC_REV_5906,8,3              ; @ASIC_REV_5906
	.comm	_VCPU_STATUS,4,2                ; @VCPU_STATUS
	.comm	_VCPU_STATUS_INIT_DONE,4,2      ; @VCPU_STATUS_INIT_DONE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NIC_SRAM_FIRMWARE_MBOX,4,2     ; @NIC_SRAM_FIRMWARE_MBOX
	.comm	_NIC_SRAM_FIRMWARE_MBOX_MAGIC1,4,2 ; @NIC_SRAM_FIRMWARE_MBOX_MAGIC1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No firmware running\n"

	.comm	_CHIPREV_ID_57765_A0,8,3        ; @CHIPREV_ID_57765_A0
	.no_dead_strip	_tg3_poll_fw
.subsections_via_symbols
