	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_reg_trans_wait
_mlxsw_reg_trans_wait:                  ## @mlxsw_reg_trans_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	%rdi, %rbx
	movq	40(%rdi), %r15
	addq	$36, %rdi
	callq	_wait_for_completion
	leaq	32(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	(%rbx), %r14d
	movl	28(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_MLXSW_EMAD_MAX_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	24(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %rax
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_mlxsw_reg_id_str
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	callq	_mlxsw_core_reg_access_type_str
	movl	%eax, %r12d
	movl	8(%rbx), %r13d
	movl	%r13d, %edi
	callq	_mlxsw_emad_op_tlv_status_str
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r13
	callq	_dev_err
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_priv_to_devlink
	movl	%eax, %r14d
	movl	8(%rbx), %r15d
	movl	%r15d, %edi
	callq	_mlxsw_emad_op_tlv_status_str
	movl	%r14d, %edi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_trace_devlink_hwerr
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_list_del
	movq	_rcu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kfree_rcu
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EMAD retries (%d/%d) (tid=%llx)\n"

	.comm	_MLXSW_EMAD_MAX_RETRY,4,2       ## @MLXSW_EMAD_MAX_RETRY
L_.str.1:                               ## @.str.1
	.asciz	"EMAD reg access failed (tid=%llx,reg_id=%x(%s),type=%s,status=%x(%s))\n"

	.comm	_rcu,4,2                        ## @rcu
	.no_dead_strip	_mlxsw_reg_trans_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_reg_trans_wait
_mlxsw_reg_trans_wait:                  ; @mlxsw_reg_trans_wait
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0, #40]
	add	x0, x0, #36
	bl	_wait_for_completion
	add	x0, x19, #32
	bl	_cancel_delayed_work_sync
	ldr	w20, [x19]
	ldr	w2, [x19, #28]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MLXSW_EMAD_MAX_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_EMAD_MAX_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w4, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	w22, [x8]
	ldr	w23, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w24, [x8]
	mov	x0, x24
	bl	_mlxsw_reg_id_str
	mov	x25, x0
	ldr	w0, [x19, #12]
	bl	_mlxsw_core_reg_access_type_str
	mov	x26, x0
	ldr	w27, [x19, #8]
	mov	x0, x27
	bl	_mlxsw_emad_op_tlv_status_str
	mov	x7, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	bl	_dev_err
	mov	x0, x21
	bl	_priv_to_devlink
	mov	x21, x0
	ldr	w22, [x19, #8]
	mov	x0, x22
	bl	_mlxsw_emad_op_tlv_status_str
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_trace_devlink_hwerr
LBB0_4:
	add	x0, x19, #4
	bl	_list_del
Lloh7:
	adrp	x8, _rcu@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rcu@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kfree_rcu
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EMAD retries (%d/%d) (tid=%llx)\n"

	.comm	_MLXSW_EMAD_MAX_RETRY,4,2       ; @MLXSW_EMAD_MAX_RETRY
l_.str.1:                               ; @.str.1
	.asciz	"EMAD reg access failed (tid=%llx,reg_id=%x(%s),type=%s,status=%x(%s))\n"

	.comm	_rcu,4,2                        ; @rcu
	.no_dead_strip	_mlxsw_reg_trans_wait
.subsections_via_symbols
