	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_wait_for_event_ack
_tg3_wait_for_event_ack:                ## @tg3_wait_for_event_ack
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_TG3_FW_EVENT_TIMEOUT_USEC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_usecs_to_jiffies
	addq	%rbx, %rax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	incq	%rax
	js	LBB0_4
## %bb.1:
	movq	%rax, %rdi
	callq	_jiffies_to_usecs
	movl	(%r14), %ebx
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	shrl	$3, %ebx
	incl	%ebx
	movq	_GRC_RX_CPU_EVENT@GOTPCREL(%rip), %r14
	movq	_GRC_RX_CPU_DRIVER_EVENT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_tr32
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_FW_EVENT_TIMEOUT_USEC,4,2  ## @TG3_FW_EVENT_TIMEOUT_USEC
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_GRC_RX_CPU_EVENT,4,2           ## @GRC_RX_CPU_EVENT
	.comm	_GRC_RX_CPU_DRIVER_EVENT,4,2    ## @GRC_RX_CPU_DRIVER_EVENT
	.no_dead_strip	_tg3_wait_for_event_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_wait_for_event_ack
_tg3_wait_for_event_ack:                ; @tg3_wait_for_event_ack
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x19, _TG3_FW_EVENT_TIMEOUT_USEC@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TG3_FW_EVENT_TIMEOUT_USEC@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_usecs_to_jiffies
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x9, x20, x0
	sub	x8, x9, x8
	adds	x0, x8, #1
	b.mi	LBB0_4
; %bb.1:
	bl	_jiffies_to_usecs
	ldr	w8, [x19]
	cmp	w0, w8
	csel	w8, w0, w8, lo
	lsr	w8, w8, #3
	add	w19, w8, #1
Lloh5:
	adrp	x20, _GRC_RX_CPU_EVENT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GRC_RX_CPU_EVENT@GOTPAGEOFF]
Lloh7:
	adrp	x21, _GRC_RX_CPU_DRIVER_EVENT@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GRC_RX_CPU_DRIVER_EVENT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_tr32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #8
	bl	_udelay
	subs	w19, w19, #1
	b.ne	LBB0_2
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_FW_EVENT_TIMEOUT_USEC,4,2  ; @TG3_FW_EVENT_TIMEOUT_USEC
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_GRC_RX_CPU_EVENT,4,2           ; @GRC_RX_CPU_EVENT
	.comm	_GRC_RX_CPU_DRIVER_EVENT,4,2    ; @GRC_RX_CPU_DRIVER_EVENT
	.no_dead_strip	_tg3_wait_for_event_ack
.subsections_via_symbols
