	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_write_eeprom_buffer_bit_bang
_ixgbe_write_eeprom_buffer_bit_bang:    ## @ixgbe_write_eeprom_buffer_bit_bang
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_IXGBE_EEPROM_WRITE_OPCODE_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_ixgbe_acquire_eeprom
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%r12, %rdi
	callq	_ixgbe_ready_eeprom
	testq	%rax, %rax
	je	LBB0_2
## %bb.14:
	movq	%r12, %rdi
	callq	_ixgbe_release_eeprom
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_2:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.3:
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_ixgbe_standby_eeprom
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	incl	%r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r14d
	movq	%r15, %r13
	jge	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r12, %rdi
	callq	_ixgbe_standby_eeprom
	movq	_IXGBE_EEPROM_WREN_OPCODE_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IXGBE_EEPROM_OPCODE_BITS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_ixgbe_shift_out_eeprom_bits
	movq	%r12, %rdi
	callq	_ixgbe_standby_eeprom
	movq	%r13, %r15
	addl	%r14d, %r13d
	movl	$0, %eax
	cmpl	$127, %r13d
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_IXGBE_EEPROM_A8_OPCODE_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$8, (%r12)
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	orl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_ixgbe_shift_out_eeprom_bits
	addl	%r13d, %r13d
	movl	(%r12), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_shift_out_eeprom_bits
	movl	4(%r12), %ebx
	leal	-1(%rbx), %r13d
	movslq	%r14d, %r14
	leal	1(%r14), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %esi
	movl	%esi, %eax
	sarl	$8, %eax
	shll	$8, %esi
	orl	%eax, %esi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_ixgbe_shift_out_eeprom_bits
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leal	(%r15,%r14), %eax
	notl	%eax
	testl	%eax, %r13d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	callq	_ixgbe_release_eeprom
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_EEPROM_WRITE_OPCODE_SPI,4,2 ## @IXGBE_EEPROM_WRITE_OPCODE_SPI
	.comm	_IXGBE_ERR_EEPROM,8,3           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_WREN_OPCODE_SPI,4,2 ## @IXGBE_EEPROM_WREN_OPCODE_SPI
	.comm	_IXGBE_EEPROM_OPCODE_BITS,4,2   ## @IXGBE_EEPROM_OPCODE_BITS
	.comm	_IXGBE_EEPROM_A8_OPCODE_SPI,4,2 ## @IXGBE_EEPROM_A8_OPCODE_SPI
	.no_dead_strip	_ixgbe_write_eeprom_buffer_bit_bang
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_write_eeprom_buffer_bit_bang
_ixgbe_write_eeprom_buffer_bit_bang:    ; @ixgbe_write_eeprom_buffer_bit_bang
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IXGBE_EEPROM_WRITE_OPCODE_SPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_EEPROM_WRITE_OPCODE_SPI@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_ixgbe_acquire_eeprom
	cbnz	x0, LBB0_12
; %bb.1:
	mov	x0, x19
	bl	_ixgbe_ready_eeprom
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ixgbe_release_eeprom
Lloh3:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	LBB0_12
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w28, #0
	mov	w27, w21
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ixgbe_standby_eeprom
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	add	w28, w24, #1
	cmp	w28, w21
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	bl	_ixgbe_standby_eeprom
Lloh6:
	adrp	x8, _IXGBE_EEPROM_WREN_OPCODE_SPI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_EEPROM_WREN_OPCODE_SPI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x25, _IXGBE_EEPROM_OPCODE_BITS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IXGBE_EEPROM_OPCODE_BITS@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_ixgbe_shift_out_eeprom_bits
	mov	x0, x19
	bl	_ixgbe_standby_eeprom
	ldr	w8, [x19]
	add	w24, w28, w22
	cmp	w24, #127
	ccmp	w8, #8, #0, gt
Lloh11:
	adrp	x8, _IXGBE_EEPROM_A8_OPCODE_SPI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_EEPROM_A8_OPCODE_SPI@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w23, w8, w23
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_ixgbe_shift_out_eeprom_bits
	lsl	w1, w24, #1
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ixgbe_shift_out_eeprom_bits
	ldr	w26, [x19, #4]
	sub	w25, w26, #1
	sxtw	x24, w28
	add	w8, w28, #1
	cmp	w21, w8
	csinc	w28, w21, w28, gt
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, x24, lsl #2]
	asr	w9, w8, #8
	orr	w1, w9, w8, lsl #8
	mov	x0, x19
	mov	w2, #16
	bl	_ixgbe_shift_out_eeprom_bits
	cbz	w26, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w22, w24
	bics	wzr, w25, w8
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	cmp	x24, x27
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x28
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_ixgbe_release_eeprom
	mov	x0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_EEPROM_WRITE_OPCODE_SPI,4,2 ; @IXGBE_EEPROM_WRITE_OPCODE_SPI
	.comm	_IXGBE_ERR_EEPROM,8,3           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_WREN_OPCODE_SPI,4,2 ; @IXGBE_EEPROM_WREN_OPCODE_SPI
	.comm	_IXGBE_EEPROM_OPCODE_BITS,4,2   ; @IXGBE_EEPROM_OPCODE_BITS
	.comm	_IXGBE_EEPROM_A8_OPCODE_SPI,4,2 ; @IXGBE_EEPROM_A8_OPCODE_SPI
	.no_dead_strip	_ixgbe_write_eeprom_buffer_bit_bang
.subsections_via_symbols
