	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl818x_iowrite8_idx           ## -- Begin function rtl818x_iowrite8_idx
	.p2align	4, 0x90
_rtl818x_iowrite8_idx:                  ## @rtl818x_iowrite8_idx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_mutex_lock
	movq	8(%r13), %rax
	movl	%r12d, (%rax)
	movl	16(%r13), %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
	andl	$3, %r14d
	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
	movq	%r15, %r8
	movl	%r14d, %r9d
	pushq	%rbx
	pushq	$4
	pushq	8(%r13)
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## 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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl818x_iowrite8_idx           ; -- Begin function rtl818x_iowrite8_idx
	.p2align	2
_rtl818x_iowrite8_idx:                  ; @rtl818x_iowrite8_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	str	w20, [x8]
	ldr	w20, [x22, #16]
	mov	x0, x20
	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]
	and	w5, w19, #0x3
	ldr	x6, [x22, #8]
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, x20
	mov	x4, x21
	mov	w7, #4
	bl	_usb_control_msg
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_mutex_unlock
	.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
.subsections_via_symbols
