	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxfw_fsm_state_wait
_mlxfw_fsm_state_wait:                  ## @mlxfw_fsm_state_wait
	.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	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_MLXFW_FSM_STATE_WAIT_ROUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rdi), %rax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_MLXFW_FSM_STATE_ERR_OK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	cmpl	(%r14), %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, -44(%rbp)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r13d
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLXFW_FSM_STATE_WAIT_CYCLE_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_10
LBB0_3:
	movq	_mlxfw_fsm_state_err_str@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r14
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_NL_SET_ERR_MSG_MOD
	xorl	%eax, %eax
	subl	(%r14), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXFW_FSM_STATE_WAIT_ROUNDS,4,2 ## @MLXFW_FSM_STATE_WAIT_ROUNDS
	.comm	_MLXFW_FSM_STATE_ERR_OK,4,2     ## @MLXFW_FSM_STATE_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware flash failed: %s\n"

	.comm	_mlxfw_fsm_state_err_str,8,3    ## @mlxfw_fsm_state_err_str
L_.str.1:                               ## @.str.1
	.asciz	"Firmware flash failed"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Timeout reached on FSM state change"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MLXFW_FSM_STATE_WAIT_CYCLE_MS,4,2 ## @MLXFW_FSM_STATE_WAIT_CYCLE_MS
	.no_dead_strip	_mlxfw_fsm_state_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxfw_fsm_state_wait
_mlxfw_fsm_state_wait:                  ; @mlxfw_fsm_state_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MLXFW_FSM_STATE_WAIT_ROUNDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXFW_FSM_STATE_WAIT_ROUNDS@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x2, sp, #8
	add	x3, sp, #12
	blr	x8
	cbnz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x24, _MLXFW_FSM_STATE_ERR_OK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MLXFW_FSM_STATE_ERR_OK@GOTPAGEOFF]
Lloh5:
	adrp	x25, _MLXFW_FSM_STATE_WAIT_CYCLE_MS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MLXFW_FSM_STATE_WAIT_CYCLE_MS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_msleep
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	blr	x8
	cbz	w0, LBB0_2
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x9, _mlxfw_fsm_state_err_str@GOTPAGE
Lloh8:
	ldr	x9, [x9, _mlxfw_fsm_state_err_str@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh12:
	adrp	x21, _EINVAL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str.1@PAGE
Lloh15:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_pr_err
Lloh18:
	adrp	x21, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x21, [x21, _ETIMEDOUT@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_NL_SET_ERR_MSG_MOD
	ldr	w8, [x21]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXFW_FSM_STATE_WAIT_ROUNDS,4,2 ; @MLXFW_FSM_STATE_WAIT_ROUNDS
	.comm	_MLXFW_FSM_STATE_ERR_OK,4,2     ; @MLXFW_FSM_STATE_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware flash failed: %s\n"

	.comm	_mlxfw_fsm_state_err_str,8,3    ; @mlxfw_fsm_state_err_str
l_.str.1:                               ; @.str.1
	.asciz	"Firmware flash failed"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Timeout reached on FSM state change"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MLXFW_FSM_STATE_WAIT_CYCLE_MS,4,2 ; @MLXFW_FSM_STATE_WAIT_CYCLE_MS
	.no_dead_strip	_mlxfw_fsm_state_wait
.subsections_via_symbols
