	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_devlink_info_get
_mlxsw_devlink_info_get:                ## @mlxsw_devlink_info_get
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_devlink_priv
	movq	%rax, %rbx
	movq	_MLXSW_REG_MGIR_FW_INFO_PSID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MLXSW_REG_MGIR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devlink_info_driver_name_put
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_mlxsw_reg_mgir_pack
	movq	_mgir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_mlxsw_reg_query
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	leaq	-96(%rbp), %rsi
	leaq	-92(%rbp), %rcx
	leaq	-88(%rbp), %r8
	leaq	-84(%rbp), %r9
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_mlxsw_reg_mgir_unpack
	movl	-96(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devlink_info_version_fixed_put
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devlink_info_version_fixed_put
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %ecx
	movl	-84(%rbp), %r8d
	leaq	L_.str.3(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devlink_info_version_running_put
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_MGIR_FW_INFO_PSID_SIZE,4,2 ## @MLXSW_REG_MGIR_FW_INFO_PSID_SIZE
	.comm	_MLXSW_REG_MGIR_LEN,4,2         ## @MLXSW_REG_MGIR_LEN
	.comm	_mgir,4,2                       ## @mgir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%X"

L_.str.1:                               ## @.str.1
	.asciz	"hw.revision"

L_.str.2:                               ## @.str.2
	.asciz	"fw.psid"

L_.str.3:                               ## @.str.3
	.asciz	"%d.%d.%d"

L_.str.4:                               ## @.str.4
	.asciz	"fw.version"

	.no_dead_strip	_mlxsw_devlink_info_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_devlink_info_get
_mlxsw_devlink_info_get:                ; @mlxsw_devlink_info_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #64
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_devlink_priv
	mov	x22, x0
Lloh3:
	adrp	x8, _MLXSW_REG_MGIR_FW_INFO_PSID_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_MGIR_FW_INFO_PSID_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MLXSW_REG_MGIR_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_REG_MGIR_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x0]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devlink_info_driver_name_put
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_mlxsw_reg_mgir_pack
Lloh13:
	adrp	x8, _mgir@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mgir@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_mlxsw_reg_query
	cbnz	w0, LBB0_5
; %bb.2:
	sub	x1, x29, #76
	sub	x3, x29, #80
	sub	x4, x29, #84
	sub	x5, x29, #88
	mov	x0, x21
	mov	x2, x20
	bl	_mlxsw_reg_mgir_unpack
	ldur	w2, [x29, #-76]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #72
	bl	_sprintf
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #72
	mov	x0, x19
	bl	_devlink_info_version_fixed_put
	cbnz	w0, LBB0_5
; %bb.3:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_devlink_info_version_fixed_put
	cbnz	w0, LBB0_5
; %bb.4:
	ldp	w8, w2, [x29, #-84]
	ldur	w9, [x29, #-88]
	stp	x8, x9, [sp, #-16]!
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #72
	bl	_sprintf
	add	sp, sp, #16
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #72
	mov	x0, x19
	bl	_devlink_info_version_running_put
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_MGIR_FW_INFO_PSID_SIZE,4,2 ; @MLXSW_REG_MGIR_FW_INFO_PSID_SIZE
	.comm	_MLXSW_REG_MGIR_LEN,4,2         ; @MLXSW_REG_MGIR_LEN
	.comm	_mgir,4,2                       ; @mgir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%X"

l_.str.1:                               ; @.str.1
	.asciz	"hw.revision"

l_.str.2:                               ; @.str.2
	.asciz	"fw.psid"

l_.str.3:                               ; @.str.3
	.asciz	"%d.%d.%d"

l_.str.4:                               ; @.str.4
	.asciz	"fw.version"

	.no_dead_strip	_mlxsw_devlink_info_get
.subsections_via_symbols
