	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_get_module_eeprom
_efx_mcdi_phy_get_module_eeprom:        ## @efx_mcdi_phy_get_module_eeprom
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movq	_SFP_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	_SFP_NUM_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%r12), %eax
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	4(%r15), %eax
	xorl	%edx, %edx
	divl	(%r12)
	xorl	%ecx, %ecx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	movl	%eax, %r15d
	movq	_SFP_NUM_PAGES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jae	LBB0_10
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r12d
	movq	_GET_PHY_MEDIA_INFO_IN_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_MCDI_SET_DWORD
	movq	_MC_CMD_GET_PHY_MEDIA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r14, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_efx_mcdi_rpc
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SFP_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpq	%rax, -96(%rbp)
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GET_PHY_MEDIA_INFO_OUT_DATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MCDI_DWORD
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rcx
	movl	%eax, %r14d
	movl	%r15d, %ebx
	subl	%r12d, %r14d
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r14d, %r15d
	cmovbl	%r15d, %r14d
	movl	%r12d, %eax
	movq	%rcx, %r12
	leaq	(%rcx,%rax,4), %rax
	movq	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	xorl	%ecx, %ecx
	subl	%r14d, %r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r15d
	incl	%r15d
	leaq	(%r13,%r14,4), %r13
	movq	_SFP_NUM_PAGES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movq	%r12, %r14
	jb	LBB0_3
	jmp	LBB0_10
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %ecx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX,4,2 ## @MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN,4,2 ## @MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN
	.comm	_SFP_PAGE_SIZE,4,2              ## @SFP_PAGE_SIZE
	.comm	_SFP_NUM_PAGES,4,2              ## @SFP_NUM_PAGES
	.comm	_ETH_MODULE_SFF_8079_LEN,4,2    ## @ETH_MODULE_SFF_8079_LEN
	.comm	_GET_PHY_MEDIA_INFO_IN_PAGE,4,2 ## @GET_PHY_MEDIA_INFO_IN_PAGE
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO,4,2  ## @MC_CMD_GET_PHY_MEDIA_INFO
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST,4,2 ## @MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GET_PHY_MEDIA_INFO_OUT_DATALEN,4,2 ## @GET_PHY_MEDIA_INFO_OUT_DATALEN
	.no_dead_strip	_efx_mcdi_phy_get_module_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_phy_get_module_eeprom
_efx_mcdi_phy_get_module_eeprom:        ; @efx_mcdi_phy_get_module_eeprom
	.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
	sub	sp, sp, #32
	mov	x19, x2
	mov	x23, x1
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	lsl	x8, x20, #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	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	lsl	x8, x24, #2
	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, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w27, [x1]
Lloh13:
	adrp	x26, _SFP_PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _SFP_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh15:
	adrp	x25, _SFP_NUM_PAGES@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SFP_NUM_PAGES@GOTPAGEOFF]
	ldr	w9, [x25]
	mul	w8, w9, w8
Lloh17:
	adrp	x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	w0, #0
	cbz	w27, LBB0_8
; %bb.1:
	ldr	w8, [x23, #4]
	ldr	w9, [x26]
	udiv	w23, w8, w9
	ldr	w10, [x25]
	cmp	w23, w10
	b.hs	LBB0_8
; %bb.2:
	msub	w28, w23, w9, w8
	lsl	w24, w24, #2
	lsl	w25, w20, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh20:
	adrp	x8, _GET_PHY_MEDIA_INFO_IN_PAGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GET_PHY_MEDIA_INFO_IN_PAGE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_MCDI_SET_DWORD
Lloh23:
	adrp	x8, _MC_CMD_GET_PHY_MEDIA_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MC_CMD_GET_PHY_MEDIA_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	sub	x6, x29, #96
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x22
	mov	x3, x24
	mov	x4, x21
	mov	x5, x25
	bl	_efx_mcdi_rpc
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x26]
	add	w9, w10, w9
	cmp	x8, x9
	b.lo	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _GET_PHY_MEDIA_INFO_OUT_DATALEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GET_PHY_MEDIA_INFO_OUT_DATALEN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MCDI_DWORD
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w0, w28
	cmp	w27, w8
	mov	x20, x26
	csel	w26, w27, w8, lo
	add	x8, x21, w28, uxtw #2
Lloh32:
	adrp	x9, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x26
	bl	_memcpy
	mov	w28, #0
	mov	w0, #0
	sub	w27, w27, w26
	add	x19, x19, w26, uxtw #2
	mov	x26, x20
	add	w23, w23, #1
Lloh35:
	adrp	x8, _SFP_NUM_PAGES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SFP_NUM_PAGES@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w27, #0
	ccmp	w23, w8, #2, ne
	b.lo	LBB0_3
	b	LBB0_8
LBB0_7:
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX,4,2 ; @MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN,4,2 ; @MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN
	.comm	_SFP_PAGE_SIZE,4,2              ; @SFP_PAGE_SIZE
	.comm	_SFP_NUM_PAGES,4,2              ; @SFP_NUM_PAGES
	.comm	_ETH_MODULE_SFF_8079_LEN,4,2    ; @ETH_MODULE_SFF_8079_LEN
	.comm	_GET_PHY_MEDIA_INFO_IN_PAGE,4,2 ; @GET_PHY_MEDIA_INFO_IN_PAGE
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO,4,2  ; @MC_CMD_GET_PHY_MEDIA_INFO
	.comm	_MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST,4,2 ; @MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GET_PHY_MEDIA_INFO_OUT_DATALEN,4,2 ; @GET_PHY_MEDIA_INFO_OUT_DATALEN
	.no_dead_strip	_efx_mcdi_phy_get_module_eeprom
.subsections_via_symbols
