	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_get_module_eeprom
_cxgb4_get_module_eeprom:               ## @cxgb4_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	$24, %rsp
	.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, %r14
	movl	(%rsi), %r15d
	movl	4(%rsi), %ebx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %r9
	movq	%r15, %r8
	leal	(%rbx,%r15), %eax
	movq	_I2C_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %eax
	jle	LBB0_1
## %bb.4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	subl	%r8d, %r15d
	jge	LBB0_6
## %bb.5:
	movl	4(%r14), %eax
	jmp	LBB0_8
LBB0_1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	movl	(%r13), %edx
	movq	_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, (%rsp)
	jmp	LBB0_2
LBB0_6:
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, (%rsp)
	movq	%rbx, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	callq	_t4_i2c_rd
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movq	_I2C_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%r14), %eax
	movl	%eax, %r9d
	subl	%r15d, %r9d
LBB0_8:
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_I2C_DEV_ADDR_A2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%r9d, %eax
	cltq
	leaq	(%r12,%rax,4), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
LBB0_2:
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_t4_i2c_rd
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_PAGE_SIZE,4,2              ## @I2C_PAGE_SIZE
	.comm	_I2C_DEV_ADDR_A0,4,2            ## @I2C_DEV_ADDR_A0
	.comm	_I2C_DEV_ADDR_A2,4,2            ## @I2C_DEV_ADDR_A2
	.no_dead_strip	_cxgb4_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 cxgb4_get_module_eeprom
_cxgb4_get_module_eeprom:               ; @cxgb4_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	x19, x2
	mov	x24, x1
	ldp	w20, w22, [x1]
	bl	_netdev_priv
	mov	x23, x0
	ldr	x21, [x0, #8]
	ldr	w2, [x24, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x26, _I2C_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _I2C_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w9, w22, w20
	cmp	w9, w8
	b.le	LBB0_3
; %bb.1:
	subs	w25, w8, w20
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x24, #4]
	b	LBB0_7
LBB0_3:
	ldr	w1, [x21]
	ldr	w2, [x23]
Lloh2:
	adrp	x8, _I2C_DEV_ADDR_A0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_DEV_ADDR_A0@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x20
	mov	x5, x22
	mov	x6, x19
	b	LBB0_8
LBB0_4:
	ldr	w1, [x21]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _I2C_DEV_ADDR_A0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_DEV_ADDR_A0@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x20
	mov	x5, x25
	mov	x6, x19
	bl	_t4_i2c_rd
	cbz	w0, LBB0_6
; %bb.5:
	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
LBB0_6:
	ldr	w20, [x26]
	ldr	w8, [x24, #4]
	sub	w22, w8, w25
LBB0_7:
	ldr	w1, [x21]
	ldr	w2, [x23]
Lloh8:
	adrp	x9, _I2C_DEV_ADDR_A2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_DEV_ADDR_A2@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	sub	w8, w8, w22
	add	x6, x19, w8, sxtw #2
	mov	x0, x21
	mov	x4, x20
	mov	x5, x22
LBB0_8:
	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
	b	_t4_i2c_rd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_PAGE_SIZE,4,2              ; @I2C_PAGE_SIZE
	.comm	_I2C_DEV_ADDR_A0,4,2            ; @I2C_DEV_ADDR_A0
	.comm	_I2C_DEV_ADDR_A2,4,2            ; @I2C_DEV_ADDR_A2
	.no_dead_strip	_cxgb4_get_module_eeprom
.subsections_via_symbols
