	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_emad_reg_access
_mlxsw_emad_reg_access:                 ## @mlxsw_emad_reg_access
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %r12d
	movl	%r12d, %edi
	callq	_mlxsw_reg_id_str
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_mlxsw_core_reg_access_type_str
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	32(%rbp), %edx
	movl	%r12d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_dev_dbg
	movq	%r14, %r12
	movl	(%r14), %esi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mlxsw_emad_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	16(%rbp), %r15
	leaq	24(%rbx), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 72(%rbx)
	movq	%r13, 16(%rbx)
	movq	_MLXSW_PORT_CPU_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 36(%rbx)
	movl	$1, 32(%rbx)
	leaq	68(%rbx), %rdi
	movq	_mlxsw_emad_trans_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	32(%rbp), %eax
	movl	%eax, 40(%rbx)
	leaq	64(%rbx), %rdi
	callq	_init_completion
	movq	%r15, 56(%rbx)
	movq	24(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%r12, 48(%rbx)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rbx)
	movl	40(%rbx), %r8d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlxsw_emad_construct
	movq	8(%r14), %rax
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	28(%rbx), %r12
	leaq	4(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail_rcu
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_emad_transmit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	callq	_list_del_rcu
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_del
	movq	16(%rbx), %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$56, %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 reg access (tid=%llx,reg_id=%x(%s),type=%s)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_PORT_CPU_PORT,4,2        ## @MLXSW_PORT_CPU_PORT
	.comm	_mlxsw_emad_trans_timeout_work,4,2 ## @mlxsw_emad_trans_timeout_work
	.no_dead_strip	_mlxsw_emad_reg_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_emad_reg_access
_mlxsw_emad_reg_access:                 ; @mlxsw_emad_reg_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x7, x2, [sp]                    ; 16-byte Folded Spill
	mov	x26, x6
	mov	x21, x5
	mov	x19, x4
	mov	x22, x3
	mov	x24, x1
	mov	x20, x0
	ldr	w27, [x29, #16]
	ldr	x8, [x0, #16]
	ldr	w28, [x8]
	ldr	w23, [x1, #4]
	mov	x0, x23
	bl	_mlxsw_reg_id_str
	mov	x25, x0
	mov	x0, x22
	bl	_mlxsw_core_reg_access_type_str
	mov	x5, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x28
	mov	x2, x27
	mov	x3, x23
	mov	x4, x25
	bl	_dev_dbg
	ldr	w1, [x24]
	mov	x0, x20
	bl	_mlxsw_emad_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x28, x0
	add	x23, x19, #24
	mov	x0, x23
	mov	x1, x21
	bl	_list_add_tail
	str	x20, [x19, #72]
	str	x28, [x19, #16]
Lloh2:
	adrp	x8, _MLXSW_PORT_CPU_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_PORT_CPU_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	w8, #1
	mov	x21, x19
	str	w8, [x21, #32]!
	add	x0, x19, #68
Lloh5:
	adrp	x8, _mlxsw_emad_trans_timeout_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mlxsw_emad_trans_timeout_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	str	w27, [x19, #40]
	add	x0, x19, #64
	bl	_init_completion
	ldp	x8, x2, [sp]                    ; 16-byte Folded Reload
	str	x8, [x19]
	stp	x24, x26, [x19, #48]
	str	w22, [x19, #8]
	ldr	w4, [x19, #40]
	mov	x0, x28
	mov	x1, x24
	mov	x3, x22
	bl	_mlxsw_emad_construct
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x28
	mov	x1, x21
	blr	x8
	mov	x0, x20
	bl	_spin_lock_bh
	add	x22, x19, #28
	add	x1, x20, #4
	mov	x0, x22
	bl	_list_add_tail_rcu
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_emad_transmit
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x22
	bl	_list_del_rcu
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x23
	bl	_list_del
	ldr	x0, [x19, #16]
	bl	_dev_kfree_skb
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EMAD reg access (tid=%llx,reg_id=%x(%s),type=%s)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_PORT_CPU_PORT,4,2        ; @MLXSW_PORT_CPU_PORT
	.comm	_mlxsw_emad_trans_timeout_work,4,2 ; @mlxsw_emad_trans_timeout_work
	.no_dead_strip	_mlxsw_emad_reg_access
.subsections_via_symbols
