	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_env_get_module_info      ## -- Begin function mlxsw_env_get_module_info
	.p2align	4, 0x90
_mlxsw_env_get_module_info:             ## @mlxsw_env_get_module_info
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-52(%rbp), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_mlxsw_env_query_module_eeprom
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	cmpl	%ebx, -52(%rbp)
	jae	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_4:
	movq	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_SFP_DIAGMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	callq	_mlxsw_env_query_module_eeprom
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	cmpl	$0, -52(%rbp)
	je	LBB0_2
## %bb.8:
	movq	_ETH_MODULE_SFF_8472@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	cmpl	$0, -56(%rbp)
	movq	_ETH_MODULE_SFF_8472_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_15
## %bb.9:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%r14)
	jmp	LBB0_16
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %eax
	movq	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
LBB0_12:
	movq	_ETH_MODULE_SFF_8436@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_ETH_MODULE_SFF_8436_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ETH_MODULE_SFF_8636@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_ETH_MODULE_SFF_8636_LEN@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	movl	%eax, (%r14)
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE,4,2 ## @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID,8,3 ## @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID,8,3 ## @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID
	.comm	_ETH_MODULE_SFF_8436,8,3        ## @ETH_MODULE_SFF_8436
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ## @ETH_MODULE_SFF_8436_LEN
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636,4,2 ## @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636
	.comm	_ETH_MODULE_SFF_8636,8,3        ## @ETH_MODULE_SFF_8636
	.comm	_ETH_MODULE_SFF_8636_LEN,4,2    ## @ETH_MODULE_SFF_8636_LEN
	.comm	_SFP_DIAGMON,4,2                ## @SFP_DIAGMON
	.comm	_ETH_MODULE_SFF_8472,8,3        ## @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,4,2    ## @ETH_MODULE_SFF_8472_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_env_get_module_info      ; -- Begin function mlxsw_env_get_module_info
	.p2align	2
_mlxsw_env_get_module_info:             ; @mlxsw_env_get_module_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	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, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x5, x29, #64
	mov	w2, #0
	mov	x3, x23
	mov	x4, x22
	bl	_mlxsw_env_query_module_eeprom
	cbnz	w0, LBB0_4
; %bb.1:
	ldur	w8, [x29, #-64]
	cmp	w8, w23
	b.hs	LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w8, [x22, x8, lsl #2]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.7:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh18:
	adrp	x8, _SFP_DIAGMON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SFP_DIAGMON@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	sub	x4, x29, #60
	sub	x5, x29, #64
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	bl	_mlxsw_env_query_module_eeprom
	cbnz	w0, LBB0_4
; %bb.9:
	ldur	w8, [x29, #-64]
	cbz	w8, LBB0_2
; %bb.10:
Lloh21:
	adrp	x8, _ETH_MODULE_SFF_8472@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETH_MODULE_SFF_8472@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldur	w9, [x29, #-60]
Lloh24:
	adrp	x8, _ETH_MODULE_SFF_8472_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_MODULE_SFF_8472_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w0, #0
	cbz	w9, LBB0_16
; %bb.11:
	str	w8, [x19]
	b	LBB0_4
LBB0_12:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
Lloh29:
	adrp	x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w8, [x22, x8, lsl #2]
Lloh32:
	adrp	x9, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_15
LBB0_14:
	mov	w0, #0
Lloh35:
	adrp	x8, _ETH_MODULE_SFF_8436@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETH_MODULE_SFF_8436@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh38:
	adrp	x8, _ETH_MODULE_SFF_8436_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ETH_MODULE_SFF_8436_LEN@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_4
LBB0_15:
	mov	w0, #0
Lloh41:
	adrp	x8, _ETH_MODULE_SFF_8636@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ETH_MODULE_SFF_8636@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh44:
	adrp	x8, _ETH_MODULE_SFF_8636_LEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETH_MODULE_SFF_8636_LEN@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_4
LBB0_16:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
                                        ; -- End function
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE,4,2 ; @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID,8,3 ; @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID,8,3 ; @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID
	.comm	_ETH_MODULE_SFF_8436,8,3        ; @ETH_MODULE_SFF_8436
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ; @ETH_MODULE_SFF_8436_LEN
	.comm	_MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636,4,2 ; @MLXSW_REG_MCIA_EEPROM_MODULE_INFO_REV_ID_8636
	.comm	_ETH_MODULE_SFF_8636,8,3        ; @ETH_MODULE_SFF_8636
	.comm	_ETH_MODULE_SFF_8636_LEN,4,2    ; @ETH_MODULE_SFF_8636_LEN
	.comm	_SFP_DIAGMON,4,2                ; @SFP_DIAGMON
	.comm	_ETH_MODULE_SFF_8472,8,3        ; @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,4,2    ; @ETH_MODULE_SFF_8472_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
