	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_eeprom
_ice_get_eeprom:                        ## @ice_get_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	12(%r15), %eax
	shll	$16, %eax
	orl	8(%r15), %eax
	movq	(%r15), %r14
	movl	%eax, (%r13)
	movl	4(%r13), %eax
	movl	8(%r13), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
	movl	%eax, %ebx
	sarl	%ebx
	sarl	%esi
	subl	%ebx, %esi
	incl	%esi
	movl	%esi, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	8(%r15), %rdi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_ice_read_sr_buf
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	-44(%rbp), %eax
	shll	$2, %eax
	movl	%eax, 8(%r13)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	4(%r13), %eax
	movl	8(%r13), %edx
	andl	$1, %eax
	leaq	(%r12,%rax,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devm_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ice_read_sr_buf failed, err %d aq_err %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ice_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_get_eeprom
_ice_get_eeprom:                        ; @ice_get_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x25, [x8]
	mov	x23, x25
	ldr	w8, [x23, #8]!
	ldr	x19, [x25]
	ldr	w9, [x25, #12]
	orr	w8, w8, w9, lsl #16
	str	w8, [x20]
	ldp	w8, w9, [x20, #4]
	asr	w24, w8, #1
	add	w8, w8, w9
	sub	w8, w8, #1
	asr	w8, w8, #1
	sub	w8, w8, w24
	add	w1, w8, #1
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	bl	_ice_read_sr_buf
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
	ldr	w3, [x25, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [sp, #12]
	lsl	w8, w8, #2
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	ldp	w8, w2, [x20, #4]
	and	x8, x8, #0x1
	add	x1, x22, x8, lsl #2
	mov	x0, x21
	bl	_memcpy
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_devm_kfree
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ice_read_sr_buf failed, err %d aq_err %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ice_get_eeprom
.subsections_via_symbols
