	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_cmd_exec                 ## -- Begin function mlxsw_cmd_exec
	.p2align	4, 0x90
_mlxsw_cmd_exec:                        ## @mlxsw_cmd_exec
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	40(%rbp), %rax
	movq	24(%rbp), %rcx
                                        ## kill: def $eax killed $eax killed $rax def $rax
	orl	%ecx, %eax
	xorl	%edi, %edi
	testb	$3, %al
	setne	%dil
	callq	_BUG_ON
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	16(%rbp), %r13
	movq	(%rbx), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_mlxsw_cmd_opcode_str
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	movq	%r13, %r14
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	testq	%r13, %r13
	movq	24(%rbp), %r13
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_mlxsw_core_buf_dump_dbg
LBB0_4:
	movq	16(%rbx), %rax
	movl	8(%rbx), %edi
	leaq	-64(%rbp), %r10
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	%r14, %r9
	pushq	%r10
	movq	40(%rbp), %r14
	pushq	%r14
	movq	32(%rbp), %r15
	pushq	%r15
	pushq	%r13
	callq	*(%rax)
	addq	$32, %rsp
	movl	%eax, %r13d
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mlxsw_core_buf_dump_dbg
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:
	cmpl	%ecx, %r13d
	jne	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdx
	movq	_MLXSW_CMD_STATUS_RUNNING_RESET@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_16
LBB0_10:
	cmpl	%ecx, %r13d
	jne	LBB0_13
## %bb.11:
	movq	-64(%rbp), %rax
	movq	_MLXSW_CMD_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_13:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_15
## %bb.14:
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_mlxsw_cmd_opcode_str
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_12:
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_mlxsw_cmd_opcode_str
	movl	%eax, %r15d
	movq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_mlxsw_cmd_status_str
	movl	%eax, %r10d
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_dev_err
	addq	$16, %rsp
LBB0_15:
	movl	%r13d, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cmd exec (opcode=%x(%s),opcode_mod=%x,in_mod=%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Input mailbox:\n"

L_.str.2:                               ## @.str.2
	.asciz	"Output mailbox:\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_MLXSW_CMD_STATUS_RUNNING_RESET,8,3 ## @MLXSW_CMD_STATUS_RUNNING_RESET
	.comm	_MLXSW_CMD_STATUS_OK,8,3        ## @MLXSW_CMD_STATUS_OK
L_.str.3:                               ## @.str.3
	.asciz	"Cmd exec failed (opcode=%x(%s),opcode_mod=%x,in_mod=%x,status=%x(%s))\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.4:                               ## @.str.4
	.asciz	"Cmd exec timed-out (opcode=%x(%s),opcode_mod=%x,in_mod=%x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_cmd_exec                 ; -- Begin function mlxsw_cmd_exec
	.p2align	2
_mlxsw_cmd_exec:                        ; @mlxsw_cmd_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x7
	mov	x26, x6
	mov	x24, x5
	mov	x28, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x29, #24]
	orr	w8, w25, w23
	tst	x8, #0x3
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.1:
	str	w24, [sp, #44]                  ; 4-byte Folded Spill
	ldr	x27, [x29, #16]
	ldr	x8, [x22]
	ldr	w24, [x8]
	mov	x0, x21
	bl	_mlxsw_cmd_opcode_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
	stp	x20, x19, [sp, #16]
	stp	x21, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_dbg
	cbz	x26, LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x22
	mov	x1, x26
	mov	x2, x23
	bl	_mlxsw_core_buf_dump_dbg
LBB0_3:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldr	w0, [x22, #8]
	add	x9, sp, #56
	stp	x25, x9, [sp]
	mov	x1, x21
	mov	x24, x20
	mov	x2, x20
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x28
	mov	x5, x26
	mov	x6, x23
	mov	x7, x27
	blr	x8
	mov	x23, x0
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	cbz	x27, LBB0_6
; %bb.4:
	cbnz	w23, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x22
	mov	x1, x27
	mov	x2, x25
	bl	_mlxsw_core_buf_dump_dbg
LBB0_6:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	cbz	w19, LBB0_10
; %bb.7:
	cmp	w23, w8
	b.ne	LBB0_10
; %bb.8:
	ldr	x9, [sp, #56]
Lloh9:
	adrp	x10, _MLXSW_CMD_STATUS_RUNNING_RESET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MLXSW_CMD_STATUS_RUNNING_RESET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
	mov	w23, #0
	b	LBB0_17
LBB0_10:
	cmp	w23, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [sp, #56]
Lloh12:
	adrp	x9, _MLXSW_CMD_STATUS_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLXSW_CMD_STATUS_OK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_12:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w23, w8
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	b.ne	LBB0_17
; %bb.13:
	ldr	x8, [x22]
	ldr	w22, [x8]
	mov	x0, x21
	bl	_mlxsw_cmd_opcode_str
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x4, x24
	mov	x5, x19
	b	LBB0_16
LBB0_14:
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_15:
	ldr	x8, [x22]
	ldr	w22, [x8]
	mov	x0, x21
	bl	_mlxsw_cmd_opcode_str
	mov	x19, x0
	ldr	x25, [sp, #56]
	mov	x0, x25
	bl	_mlxsw_cmd_status_str
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x24
	ldr	x5, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
LBB0_16:
	bl	_dev_err
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cmd exec (opcode=%x(%s),opcode_mod=%x,in_mod=%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Input mailbox:\n"

l_.str.2:                               ; @.str.2
	.asciz	"Output mailbox:\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_MLXSW_CMD_STATUS_RUNNING_RESET,8,3 ; @MLXSW_CMD_STATUS_RUNNING_RESET
	.comm	_MLXSW_CMD_STATUS_OK,8,3        ; @MLXSW_CMD_STATUS_OK
l_.str.3:                               ; @.str.3
	.asciz	"Cmd exec failed (opcode=%x(%s),opcode_mod=%x,in_mod=%x,status=%x(%s))\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.4:                               ; @.str.4
	.asciz	"Cmd exec timed-out (opcode=%x(%s),opcode_mod=%x,in_mod=%x)\n"

.subsections_via_symbols
