	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_module_eeprom
_mlx4_en_get_module_eeprom:             ## @mlx4_en_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	_netdev_priv
	movl	4(%r13), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	4(%r13), %r9d
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%r14d, %r9d
	movq	%r15, %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_en_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	4(%r13), %ecx
	subl	%r14d, %ecx
	movslq	%r14d, %rax
	leaq	(%r12,%rax,4), %r8
	movl	%ebx, %edx
	callq	_mlx4_get_module_info
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r14d
	addl	%eax, %ebx
	movl	4(%r13), %r9d
	cmpl	%r14d, %r9d
	jg	LBB0_4
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movl	4(%r13), %r8d
	subl	%r14d, %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r9d
	callq	_en_err
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx4_get_module_info i(%d) offset(%d) len(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"mlx4_get_module_info i(%d) offset(%d) bytes_to_read(%d) - FAILED (0x%x)\n"

	.no_dead_strip	_mlx4_en_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 mlx4_en_get_module_eeprom
_mlx4_en_get_module_eeprom:             ; @mlx4_en_get_module_eeprom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	ldr	w2, [x19, #4]
	cbz	w2, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x25, [x0, #8]
	ldr	w22, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w23, #0
Lloh0:
	adrp	x26, _DRV@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DRV@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	sub	w5, w8, w23
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_en_dbg
	ldr	w0, [x25]
	ldr	w1, [x21]
	ldr	w8, [x19, #4]
	sub	w3, w8, w23
	add	x4, x20, w23, sxtw #2
	mov	x2, x22
	bl	_mlx4_get_module_info
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x5, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w5, w22
	ldr	w8, [x19, #4]
	add	w23, w5, w23
	cmp	w8, w23
	b.gt	LBB0_3
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #4]
	sub	w4, w8, w23
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	bl	_en_err
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx4_get_module_info i(%d) offset(%d) len(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"mlx4_get_module_info i(%d) offset(%d) bytes_to_read(%d) - FAILED (0x%x)\n"

	.no_dead_strip	_mlx4_en_get_module_eeprom
.subsections_via_symbols
