	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_write_eeprom              ## -- Begin function ixgb_write_eeprom
	.p2align	4, 0x90
_ixgb_write_eeprom:                     ## @ixgb_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_ixgb_setup_eeprom
	movq	_EEPROM_EWEN_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	callq	_ixgb_standby_eeprom
	movq	_EEPROM_WRITE_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$6, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	callq	_ixgb_wait_eeprom_command
	movq	%rbx, %rdi
	callq	_ixgb_standby_eeprom
	movq	_EEPROM_EWDS_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_ixgb_shift_out_bits
	movq	%rbx, %rdi
	callq	_ixgb_cleanup_eeprom
	movq	_EEPROM_ICW1_SIGNATURE_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_EWEN_OPCODE,4,2         ## @EEPROM_EWEN_OPCODE
	.comm	_EEPROM_WRITE_OPCODE,4,2        ## @EEPROM_WRITE_OPCODE
	.comm	_EEPROM_EWDS_OPCODE,4,2         ## @EEPROM_EWDS_OPCODE
	.comm	_EEPROM_ICW1_SIGNATURE_CLEAR,4,2 ## @EEPROM_ICW1_SIGNATURE_CLEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_write_eeprom              ; -- Begin function ixgb_write_eeprom
	.p2align	2
_ixgb_write_eeprom:                     ; @ixgb_write_eeprom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	_ixgb_setup_eeprom
Lloh0:
	adrp	x8, _EEPROM_EWEN_OPCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_EWEN_OPCODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	bl	_ixgb_standby_eeprom
Lloh3:
	adrp	x8, _EEPROM_WRITE_OPCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_WRITE_OPCODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	mov	x1, x21
	mov	w2, #6
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	bl	_ixgb_wait_eeprom_command
	mov	x0, x19
	bl	_ixgb_standby_eeprom
Lloh6:
	adrp	x8, _EEPROM_EWDS_OPCODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_EWDS_OPCODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_ixgb_shift_out_bits
	mov	x0, x19
	bl	_ixgb_cleanup_eeprom
Lloh9:
	adrp	x8, _EEPROM_ICW1_SIGNATURE_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_ICW1_SIGNATURE_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_EWEN_OPCODE,4,2         ; @EEPROM_EWEN_OPCODE
	.comm	_EEPROM_WRITE_OPCODE,4,2        ; @EEPROM_WRITE_OPCODE
	.comm	_EEPROM_EWDS_OPCODE,4,2         ; @EEPROM_EWDS_OPCODE
	.comm	_EEPROM_ICW1_SIGNATURE_CLEAR,4,2 ; @EEPROM_ICW1_SIGNATURE_CLEAR
.subsections_via_symbols
