	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_asic
_write_asic:                            ## @write_asic
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_DLINK_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	%edi, %r14d
	movq	_EE_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$8, %ebx
	orl	%esi, %ebx
	callq	_read_eeprom
                                        ## kill: def $ax killed $ax def $eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_outb
	movq	_EE_ASIC@GOTPCREL(%rip), %rcx
	movq	_EE_CS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	(%rcx), %ax
	movq	_EE_DI@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_outb
	sarl	%ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	$9, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_EE_DO@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_EE_ASIC@GOTPCREL(%rip), %r14
	movzwl	(%r14), %eax
	orw	%bx, %ax
	movq	_EE_CS@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movq	_EE_DI@GOTPCREL(%rip), %r12
	orw	(%r12), %ax
	movswl	%ax, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movzwl	(%r14), %eax
	orw	%bx, %ax
	movq	_EE_CS@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	orw	(%r12), %ax
	movq	_EE_CK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%r15d, %esi
	callq	_outb_p
	orw	(%r14), %bx
	movq	_EE_CS@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	orw	(%r12), %bx
	movswl	%bx, %edi
	movl	%r15d, %esi
	callq	_outb_p
	addl	$-1, %r13d
	jae	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	btl	%r13d, %eax
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_5:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	orl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_EE_CS@GOTPCREL(%rip), %r14
	movzwl	(%r14), %eax
	movq	_EE_ASIC@GOTPCREL(%rip), %r15
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_outb
	movzwl	(%r14), %eax
	orw	(%r15), %ax
	movq	_EE_CK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%ebx, %esi
	callq	_outb
	movzwl	(%r14), %eax
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	%ebx, %esi
	callq	_outb
	movswl	%r12w, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$15, %ebx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_EE_ADOT@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_EE_ASIC@GOTPCREL(%rip), %r15
	movzwl	(%r15), %eax
	orw	%r13w, %ax
	movq	_EE_CS@GOTPCREL(%rip), %r14
	orw	(%r14), %ax
	movswl	%ax, %edi
	movl	%r12d, %esi
	callq	_outb_p
	movzwl	(%r15), %eax
	orw	%r13w, %ax
	orw	(%r14), %ax
	movq	_EE_CK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%r12d, %esi
	callq	_outb_p
	orw	(%r15), %r13w
	orw	(%r14), %r13w
	movswl	%r13w, %edi
	movl	%r12d, %esi
	callq	_outb_p
	addl	$-1, %ebx
	jae	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	btl	%ebx, %eax
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_10:
	movq	_EE_DI@GOTPCREL(%rip), %r14
	movzwl	(%r14), %eax
	movq	_EE_ASIC@GOTPCREL(%rip), %r15
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_outb
	movzwl	(%r14), %eax
	orw	(%r15), %ax
	movq	_EE_CK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%ebx, %esi
	callq	_outb
	movzwl	(%r14), %eax
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	%ebx, %esi
	callq	_outb
	xorl	%edi, %edi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DLINK_EEPROM,4,2               ## @DLINK_EEPROM
	.comm	_EE_READ_CMD,4,2                ## @EE_READ_CMD
	.comm	_EE_ASIC,2,1                    ## @EE_ASIC
	.comm	_EE_CS,2,1                      ## @EE_CS
	.comm	_EE_DI,2,1                      ## @EE_DI
	.comm	_EE_DO,2,1                      ## @EE_DO
	.comm	_EE_CK,2,1                      ## @EE_CK
	.comm	_EE_ADOT,2,1                    ## @EE_ADOT
	.no_dead_strip	_write_asic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_asic
_write_asic:                            ; @write_asic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _DLINK_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLINK_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w19, w8, w0
Lloh3:
	adrp	x8, _EE_READ_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EE_READ_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w25, w1, w8, lsl #8
	bl	_read_eeprom
	mov	x21, x0
	mov	w0, #0
	mov	x1, x19
	bl	_outb
Lloh6:
	adrp	x22, _EE_ASIC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EE_ASIC@GOTPAGEOFF]
	ldrh	w8, [x22]
Lloh8:
	adrp	x24, _EE_CS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EE_CS@GOTPAGEOFF]
	ldrh	w9, [x24]
	orr	w8, w9, w8
Lloh10:
	adrp	x23, _EE_DI@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EE_DI@GOTPAGEOFF]
	ldrh	w9, [x23]
	orr	w8, w8, w9
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	asr	w26, w25, #1
	mov	w27, #9
Lloh12:
	adrp	x28, _EE_DO@GOTPAGE
Lloh13:
	ldr	x28, [x28, _EE_DO@GOTPAGEOFF]
Lloh14:
	adrp	x25, _EE_CK@GOTPAGE
Lloh15:
	ldr	x25, [x25, _EE_CK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w26, w27
	sbfx	w8, w8, #0, #1
	ldrh	w9, [x28]
	ldrh	w10, [x22]
	ldrh	w11, [x24]
	ldrh	w12, [x23]
	and	w20, w8, w9
	orr	w8, w20, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	ldrh	w10, [x23]
	ldrh	w11, [x25]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	ldrh	w10, [x23]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	sub	w27, w27, #1
	cmn	w27, #1
	b.ne	LBB0_1
; %bb.2:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w20, w21, w8
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	orr	w8, w9, w8
	ldrh	w9, [x25]
	orr	w8, w8, w9
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	mov	w21, #15
Lloh16:
	adrp	x26, _EE_ADOT@GOTPAGE
Lloh17:
	ldr	x26, [x26, _EE_ADOT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w21
	sbfx	w8, w8, #0, #1
	ldrh	w9, [x26]
	ldrh	w10, [x22]
	ldrh	w11, [x24]
	and	w27, w8, w9
	orr	w8, w27, w10
	orr	w8, w8, w11
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	ldrh	w10, [x25]
	orr	w8, w8, w27
	orr	w8, w8, w9
	orr	w8, w8, w10
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	ldrh	w8, [x22]
	ldrh	w9, [x24]
	orr	w8, w8, w27
	orr	w8, w8, w9
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	sub	w21, w21, #1
	cmn	w21, #1
	b.ne	LBB0_3
; %bb.4:
	ldrh	w8, [x22]
	ldrh	w9, [x23]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	ldrh	w8, [x22]
	ldrh	w9, [x23]
	orr	w8, w9, w8
	ldrh	w9, [x25]
	orr	w8, w8, w9
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	ldrh	w8, [x22]
	ldrh	w9, [x23]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	mov	w0, #0
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_outb
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DLINK_EEPROM,4,2               ; @DLINK_EEPROM
	.comm	_EE_READ_CMD,4,2                ; @EE_READ_CMD
	.comm	_EE_ASIC,2,1                    ; @EE_ASIC
	.comm	_EE_CS,2,1                      ; @EE_CS
	.comm	_EE_DI,2,1                      ; @EE_DI
	.comm	_EE_DO,2,1                      ; @EE_DO
	.comm	_EE_CK,2,1                      ; @EE_CK
	.comm	_EE_ADOT,2,1                    ; @EE_ADOT
	.no_dead_strip	_write_asic
.subsections_via_symbols
