	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8225_write
_rtl8225_write:                         ## @rtl8225_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	shll	$4, %edx
	andl	$15, %r15d
	orl	%edx, %r15d
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movl	%eax, %r12d
	andl	$65523, %r12d                   ## imm = 0xFFF3
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movq	(%rbx), %rsi
	orl	$7, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	orl	$1031, %edx                     ## imm = 0x407
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$10, %edi
	callq	_udelay
	movq	(%rbx), %rsi
	addq	$8, %rsi
	leal	4(%r12), %edx
	movq	%rbx, %rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$2, %edi
	callq	_udelay
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$10, %edi
	callq	_udelay
	movl	$15, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r12d
	movl	%r13d, %r15d
	orl	$2, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r12d, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	addl	$-1, %r14d
	jae	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r13d, %r13d
	btl	%r14d, %r15d
	setb	%r13b
	orl	%r12d, %r13d
	movq	(%rbx), %rsi
	addq	$8, %rsi
	testb	$1, %r14b
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$8, %rsi
	orl	$2, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %edx
	jmp	LBB0_4
LBB0_5:
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$10, %edi
	callq	_udelay
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	orl	$1024, %edx                     ## imm = 0x400
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$8191, %edx                     ## imm = 0x1FFF
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl8225_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8225_write
_rtl8225_write:                         ; @rtl8225_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x0]
	bfi	w20, w2, #4, #28
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	w8, #65523
	and	w22, w0, w8
	ldr	x1, [x19]
	mov	x0, x19
	bl	_rtl818x_ioread16
	ldr	x1, [x19]
	orr	w2, w0, #0x7
	mov	x0, x19
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	x21, x0
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	w8, #1031
	orr	w2, w0, w8
	mov	x0, x19
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #8
	orr	w23, w22, #0x4
	mov	x0, x19
	mov	x2, x23
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w0, #10
	bl	_udelay
	mov	w26, #15
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	orr	w25, w24, #0x2
	mov	x0, x19
	mov	x2, x25
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x25
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x24
	bl	_rtl818x_iowrite16
	sub	w26, w26, #1
	cmn	w26, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w26
	and	w8, w8, #0x1
	orr	w24, w8, w22
	ldr	x8, [x19]
	add	x1, x8, #8
	tbz	w26, #0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x2, x24
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #8
	orr	w24, w24, #0x2
	mov	x0, x19
	mov	x2, x24
	b	LBB0_2
LBB0_5:
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x23
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x23
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #4
	orr	w2, w21, #0x400
	mov	x0, x19
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #8191
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rtl818x_iowrite16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl8225_write
.subsections_via_symbols
