	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8225_write_8051
_rtl8225_write_8051:                    ## @rtl8225_write_8051
	.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, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r14
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread16
	movl	%eax, %r15d
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread16
	movl	%eax, %r13d
	movq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread16
                                        ## kill: def $eax killed $eax def $rax
	andl	$-13, %r15d
	andl	$-16, %eax
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rsi
	addq	$8, %rsi
	orl	$7, %r13d
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	movq	(%r14), %rsi
	leal	7(%rbx), %edx
	movq	%r14, %rdi
	callq	_rtl818x_iowrite16
	movl	$10, %edi
	callq	_udelay
	movq	(%r14), %rsi
	addq	$4, %rsi
	leal	4(%r15), %r13d
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	movl	$2, %edi
	callq	_udelay
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite16
	movl	$10, %edi
	callq	_udelay
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	16(%r14), %rax
	movl	%r12d, (%rax)
	movl	24(%r14), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_RTL8187_REQ_SET_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RTL8187_REQT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %ebx
	shrl	$31, %ebx
	addl	%esi, %ebx
	sarl	%ebx
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$33317, %r9d                    ## imm = 0x8225
	pushq	%rbx
	pushq	$4
	pushq	16(%r14)
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	movl	$10, %edi
	callq	_udelay
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite16
	movq	(%r14), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8187_REQ_SET_REG,4,2        ## @RTL8187_REQ_SET_REG
	.comm	_RTL8187_REQT_WRITE,4,2         ## @RTL8187_REQT_WRITE
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_rtl8225_write_8051
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8225_write_8051
_rtl8225_write_8051:                    ; @rtl8225_write_8051
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	x20, x0
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	x22, x0
	ldr	x1, [x19]
	mov	x0, x19
	bl	_rtl818x_ioread16
	and	w24, w20, #0xfffffff3
	and	w20, w0, #0xfffffff0
	ldr	x8, [x19]
	add	x1, x8, #8
	orr	w2, w22, #0x7
	mov	x0, x19
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	orr	w2, w20, #0x7
	mov	x0, x19
	bl	_rtl818x_iowrite16
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #4
	orr	w22, w24, #0x4
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite16
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x24
	bl	_rtl818x_iowrite16
	mov	w0, #10
	bl	_udelay
	add	x24, x19, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	str	w23, [x8]
	ldr	w23, [x19, #24]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _RTL8187_REQ_SET_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8187_REQ_SET_REG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _RTL8187_REQT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8187_REQT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	x6, [x19, #16]
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [sp]
	mov	x0, x23
	mov	x4, x21
	mov	w5, #33317
	mov	w7, #4
	bl	_usb_control_msg
	mov	x0, x24
	bl	_mutex_unlock
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite16
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x20
	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
	add	sp, sp, #80
	b	_rtl818x_iowrite16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8187_REQ_SET_REG,4,2        ; @RTL8187_REQ_SET_REG
	.comm	_RTL8187_REQT_WRITE,4,2         ; @RTL8187_REQT_WRITE
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_rtl8225_write_8051
.subsections_via_symbols
