	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_eeprom_buffer_bit_bang_generic ## -- Begin function ixgbe_read_eeprom_buffer_bit_bang_generic
	.p2align	4, 0x90
_ixgbe_read_eeprom_buffer_bit_bang_generic: ## @ixgbe_read_eeprom_buffer_bit_bang_generic
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	*8(%rdi)
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	leaq	(%r15,%r13), %rax
	cmpq	(%r12), %rax
	jle	LBB0_3
## %bb.14:
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_IXGBE_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_3:
	testq	%r13, %r13
	jle	LBB0_12
## %bb.4:
	movq	_IXGBE_EEPROM_RD_BUFFER_MAX_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rsi
	subq	%r14, %rsi
	movq	%rsi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rax
	cqto
	idivq	%rbx
	testq	%rax, %rax
	jg	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r15), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,8), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ixgbe_read_eeprom_buffer_bit_bang
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_IXGBE_EEPROM_RD_BUFFER_MAX_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%rbx, %r14
	cmpq	%r13, %r14
	jl	LBB0_5
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	testq	%rax, %rax
	jle	LBB0_9
	jmp	LBB0_10
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_INVALID_ARGUMENT,8,3 ## @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_ERR_EEPROM,8,3           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_RD_BUFFER_MAX_COUNT,8,3 ## @IXGBE_EEPROM_RD_BUFFER_MAX_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_read_eeprom_buffer_bit_bang_generic ; -- Begin function ixgbe_read_eeprom_buffer_bit_bang_generic
	.p2align	2
_ixgbe_read_eeprom_buffer_bit_bang_generic: ; @ixgbe_read_eeprom_buffer_bit_bang_generic
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	blr	x8
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	add	x9, x20, x21
	cmp	x9, x8
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	LBB0_9
LBB0_4:
	cmp	x20, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
Lloh6:
	adrp	x24, _IXGBE_EEPROM_RD_BUFFER_MAX_COUNT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IXGBE_EEPROM_RD_BUFFER_MAX_COUNT@GOTPAGEOFF]
	ldr	x8, [x24]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x9, x20, x23
	sdiv	x10, x9, x8
	cmp	x10, #0
	csel	x2, x8, x9, gt
	add	x1, x23, x21
	add	x3, x19, x23, lsl #3
	mov	x0, x22
	bl	_ixgbe_read_eeprom_buffer_bit_bang
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	add	x23, x8, x23
	cmp	x23, x20
	b.lt	LBB0_6
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_INVALID_ARGUMENT,8,3 ; @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_ERR_EEPROM,8,3           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_RD_BUFFER_MAX_COUNT,8,3 ; @IXGBE_EEPROM_RD_BUFFER_MAX_COUNT
.subsections_via_symbols
