	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_eeprom_write
_e100_eeprom_write:                     ## @e100_eeprom_write
	.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
	movl	%ecx, %r8d
                                        ## kill: def $esi killed $esi def $rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	_op_ewen@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	leal	-2(%rsi), %r15d
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	_op_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%esi, %ecx
	shll	%cl, %ebx
	movq	%rdi, %r14
	movl	%eax, -60(%rbp)
	orl	%edx, %ebx
	shll	$16, %ebx
	movl	%r8d, %edi
	callq	_le16_to_cpu
	orl	%ebx, %eax
	movl	%eax, -56(%rbp)
	movq	_op_ewds@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movl	%eax, -52(%rbp)
	xorl	%ebx, %ebx
	movq	_eesk@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_iowrite8
	movq	%r14, %rdi
	callq	_e100_write_flush
	movl	$4, %edi
	callq	_udelay
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	$3, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	(%r13), %edi
	movq	_eecs@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_iowrite8
	movq	%r14, %rdi
	callq	_e100_write_flush
	movl	$4, %edi
	callq	_udelay
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp,%rbx,4), %r15d
	movl	$31, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_eecs@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_iowrite8
	movq	%r14, %rdi
	callq	_e100_write_flush
	movl	$4, %edi
	callq	_udelay
	orl	(%r13), %ebx
	movq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_iowrite8
	movq	%r14, %rdi
	callq	_e100_write_flush
	movl	$4, %edi
	callq	_udelay
	addl	$-1, %r12d
	jae	LBB0_5
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%ebx, %ebx
	btl	%r12d, %r15d
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_eedi@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_op_ewen,4,2                    ## @op_ewen
	.comm	_op_write,4,2                   ## @op_write
	.comm	_op_ewds,4,2                    ## @op_ewds
	.comm	_eecs,4,2                       ## @eecs
	.comm	_eesk,4,2                       ## @eesk
	.comm	_eedi,4,2                       ## @eedi
	.no_dead_strip	_e100_eeprom_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_eeprom_write
_e100_eeprom_write:                     ; @e100_eeprom_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _op_ewen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _op_ewen@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w20, w1, #2
	lsl	w8, w8, w20
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _op_write@GOTPAGE
Lloh7:
	ldr	x8, [x8, _op_write@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, w1
	orr	w22, w8, w2
	mov	x0, x3
	bl	_le16_to_cpu
	mov	x21, #0
Lloh9:
	adrp	x8, _op_ewds@GOTPAGE
Lloh10:
	ldr	x8, [x8, _op_ewds@GOTPAGEOFF]
	orr	w9, w0, w22, lsl #16
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, w20
Lloh12:
	adrp	x22, _eecs@GOTPAGE
Lloh13:
	ldr	x22, [x22, _eecs@GOTPAGEOFF]
	stp	w9, w8, [sp, #16]
Lloh14:
	adrp	x23, _eesk@GOTPAGE
Lloh15:
	ldr	x23, [x23, _eesk@GOTPAGEOFF]
	add	x24, sp, #12
Lloh16:
	adrp	x25, _eedi@GOTPAGE
Lloh17:
	ldr	x25, [x25, _eedi@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w0, w9, w8
	ldr	x1, [x19]
	bl	_iowrite8
	mov	x0, x19
	bl	_e100_write_flush
	mov	w0, #4
	bl	_udelay
	ldr	w26, [x24, x21, lsl #2]
	mov	w27, #31
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22]
	ldr	w9, [x25]
	lsr	w10, w26, w27
	sbfx	w10, w10, #0, #1
	and	w9, w10, w9
	orr	w20, w9, w8
	ldr	x1, [x19]
	mov	x0, x20
	bl	_iowrite8
	mov	x0, x19
	bl	_e100_write_flush
	mov	w0, #4
	bl	_udelay
	ldr	w8, [x23]
	orr	w0, w8, w20
	ldr	x1, [x19]
	bl	_iowrite8
	mov	x0, x19
	bl	_e100_write_flush
	mov	w0, #4
	bl	_udelay
	sub	w27, w27, #1
	cmn	w27, #1
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	x1, [x19]
	mov	w0, #0
	bl	_iowrite8
	mov	x0, x19
	bl	_e100_write_flush
	mov	w0, #4
	bl	_udelay
	add	x21, x21, #1
	cmp	x21, #3
	b.ne	LBB0_1
; %bb.4:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_op_ewen,4,2                    ; @op_ewen
	.comm	_op_write,4,2                   ; @op_write
	.comm	_op_ewds,4,2                    ; @op_ewds
	.comm	_eecs,4,2                       ; @eecs
	.comm	_eesk,4,2                       ; @eesk
	.comm	_eedi,4,2                       ; @eedi
	.no_dead_strip	_e100_eeprom_write
.subsections_via_symbols
