	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_eeprom_register_write
_rtl8180_eeprom_register_write:         ## @rtl8180_eeprom_register_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_RTL818X_EEPROM_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	$128, %edx
	movl	(%rax), %ecx
	orl	%edx, %ecx
	cmpq	$0, 24(%rdi)
	cmovel	%edx, %ecx
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	movl	$0, %edx
	je	LBB0_2
## %bb.1:
	movq	_RTL818X_EEPROM_CMD_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	cmpq	$0, 8(%rdi)
	movl	$0, %esi
	je	LBB0_4
## %bb.3:
	movq	_RTL818X_EEPROM_CMD_CK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_4:
	movq	32(%rdi), %rbx
	orl	%ecx, %edx
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.5:
	movq	_RTL818X_EEPROM_CMD_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %esi
	orl	%esi, %edx
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_EEPROM_CMD_WRITE,4,2   ## @RTL818X_EEPROM_CMD_WRITE
	.comm	_RTL818X_EEPROM_CMD_READ,4,2    ## @RTL818X_EEPROM_CMD_READ
	.comm	_RTL818X_EEPROM_CMD_CK,4,2      ## @RTL818X_EEPROM_CMD_CK
	.comm	_RTL818X_EEPROM_CMD_CS,4,2      ## @RTL818X_EEPROM_CMD_CS
	.no_dead_strip	_rtl8180_eeprom_register_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_eeprom_register_write
_rtl8180_eeprom_register_write:         ; @rtl8180_eeprom_register_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x9, x19, [x0, #24]
Lloh0:
	adrp	x8, _RTL818X_EEPROM_CMD_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, #0x80
	ldr	x10, [x0, #16]
	cmp	x9, #0
	mov	w9, #128
	csel	w8, w9, w8, eq
Lloh3:
	adrp	x9, _RTL818X_EEPROM_CMD_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL818X_EEPROM_CMD_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _RTL818X_EEPROM_CMD_CK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTL818X_EEPROM_CMD_CK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	x11, x10, [x0]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
Lloh9:
	adrp	x10, _RTL818X_EEPROM_CMD_CS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RTL818X_EEPROM_CMD_CS@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	ldr	x1, [x19]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x1, [x19]
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w0, #10
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_udelay
	.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	_RTL818X_EEPROM_CMD_WRITE,4,2   ; @RTL818X_EEPROM_CMD_WRITE
	.comm	_RTL818X_EEPROM_CMD_READ,4,2    ; @RTL818X_EEPROM_CMD_READ
	.comm	_RTL818X_EEPROM_CMD_CK,4,2      ; @RTL818X_EEPROM_CMD_CK
	.comm	_RTL818X_EEPROM_CMD_CS,4,2      ; @RTL818X_EEPROM_CMD_CS
	.no_dead_strip	_rtl8180_eeprom_register_write
.subsections_via_symbols
