	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_fw_init
_wait_fw_init:                          ## @wait_fw_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	movq	_FW_PRE_INIT_TIMEOUT_MILI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FW_INIT_WARN_MESSAGE_INTERVAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_BUILD_BUG_ON
	movq	%r15, %rdi
	callq	_fw_initializing
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%r14, %rbx
	movq	_FW_INIT_WAIT_MS@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_fw_initializing
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%r13, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	subq	%rbx, %rdi
	callq	_jiffies_to_msecs
	cltq
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx5_core_warn
	movq	%r13, %rbx
	movq	%r15, %r13
	movq	%r14, %r15
	movq	(%r12), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_msecs_to_jiffies
	addq	%r14, %rax
	movq	%r15, %r14
	movq	%r13, %r15
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_8:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_9:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_FW_PRE_INIT_TIMEOUT_MILI,8,3   ## @FW_PRE_INIT_TIMEOUT_MILI
	.comm	_FW_INIT_WARN_MESSAGE_INTERVAL,8,3 ## @FW_INIT_WARN_MESSAGE_INTERVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for FW initialization, timeout abort in %ds\n"

	.comm	_FW_INIT_WAIT_MS,4,2            ## @FW_INIT_WAIT_MS
	.no_dead_strip	_wait_fw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_fw_init
_wait_fw_init:                          ; @wait_fw_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x23, [x24]
	mov	x0, x2
	bl	_msecs_to_jiffies
	mov	x22, x0
	ldr	x25, [x24]
	mov	x0, x21
	bl	_msecs_to_jiffies
	mov	x21, x0
Lloh2:
	adrp	x8, _FW_PRE_INIT_TIMEOUT_MILI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FW_PRE_INIT_TIMEOUT_MILI@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _FW_INIT_WARN_MESSAGE_INTERVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FW_INIT_WARN_MESSAGE_INTERVAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_BUILD_BUG_ON
	mov	x0, x20
	bl	_fw_initializing
	cbz	x0, LBB0_8
; %bb.1:
	add	x21, x21, x25
	add	x23, x22, x23
Lloh8:
	adrp	x25, _FW_INIT_WAIT_MS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FW_INIT_WAIT_MS@GOTPAGEOFF]
	mov	w26, #19923
	movk	w26, #4194, lsl #16
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	bl	_msleep
	mov	x0, x20
	bl	_fw_initializing
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24]
	mov	x1, x23
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x21, x23
	bl	_jiffies_to_msecs
	smull	x8, w0, w26
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w2, w8, w9
	mov	x0, x20
	mov	x1, x22
	bl	_mlx5_core_warn
	ldr	x23, [x24]
	mov	x0, x19
	bl	_msecs_to_jiffies
	add	x23, x0, x23
	b	LBB0_2
LBB0_7:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_FW_PRE_INIT_TIMEOUT_MILI,8,3   ; @FW_PRE_INIT_TIMEOUT_MILI
	.comm	_FW_INIT_WARN_MESSAGE_INTERVAL,8,3 ; @FW_INIT_WARN_MESSAGE_INTERVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for FW initialization, timeout abort in %ds\n"

	.comm	_FW_INIT_WAIT_MS,4,2            ; @FW_INIT_WAIT_MS
	.no_dead_strip	_wait_fw_init
.subsections_via_symbols
