	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_rtsregs_write
_pci_xhci_rtsregs_write:                ## @pci_xhci_rtsregs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	56(%rdi), %eax
	cmpl	%esi, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	subl	%eax, %ebx
	movslq	%edx, %rdi
	callq	_DPRINTF
	addl	$-32, %ebx
	movl	%ebx, %eax
	roll	$30, %eax
	cmpl	$7, %eax
	ja	LBB0_17
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_XHCI_IMAN_INTR_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ecx
	notl	%ecx
	andl	24(%r15), %ecx
	jmp	LBB0_7
LBB0_18:
	movl	%r14d, 28(%r15)
	jmp	LBB0_19
LBB0_9:
	movzwl	%r14w, %eax
	movl	%eax, 32(%r15)
	jmp	LBB0_19
LBB0_17:
	movslq	%ebx, %rdi
	jmp	LBB0_16
LBB0_10:
	movl	36(%r15), %edi
	callq	_MASK_64_HI
	andl	$-64, %r14d
	orl	%eax, %r14d
	movl	%r14d, 36(%r15)
	jmp	LBB0_19
LBB0_11:
	movl	36(%r15), %edi
	callq	_MASK_64_LO
	movq	%r15, %rdi
	callq	_XHCI_GADDR
	movq	%rax, 16(%r15)
	movl	(%rax), %esi
	andl	$-64, %esi
	movq	%r15, %rdi
	callq	_XHCI_GADDR
	movq	%rax, 48(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	jmp	LBB0_16
LBB0_12:
	movl	40(%r15), %edi
	callq	_MASK_64_HI
	movq	_XHCI_ERDP_LO_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	40(%r15), %esi
	andl	%ecx, %esi
	movl	%r14d, %edx
	andl	$-16, %edx
	orl	%eax, %edx
	orl	%edx, %esi
	movl	%esi, 40(%r15)
	testl	%r14d, %ecx
	je	LBB0_14
## %bb.13:
	notl	%ecx
	andl	%ecx, %edx
	movl	%edx, 40(%r15)
	movq	_XHCI_IMAN_INTR_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r15)
LBB0_14:
	movl	%r14d, %edi
	callq	_XHCI_ERDP_LO_SINDEX
	movl	%eax, 44(%r15)
	jmp	LBB0_19
LBB0_15:
	movl	40(%r15), %edi
	callq	_MASK_64_LO
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_16
	jmp	LBB0_19
LBB0_5:
	movl	24(%r15), %ecx
LBB0_7:
	movq	_XHCI_IMAN_INTR_ENA@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r14d
	andl	%eax, %ecx
	orl	%r14d, %ecx
	movl	%ecx, 24(%r15)
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_xhci_deassert_interrupt    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_18
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_xhci attempted write to MFINDEX\r\n"

	.comm	_XHCI_IMAN_INTR_PEND,4,2        ## @XHCI_IMAN_INTR_PEND
	.comm	_XHCI_IMAN_INTR_ENA,4,2         ## @XHCI_IMAN_INTR_ENA
	.comm	_XHCI_ERDP_LO_BUSY,4,2          ## @XHCI_ERDP_LO_BUSY
	.no_dead_strip	_pci_xhci_rtsregs_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_rtsregs_write
_pci_xhci_rtsregs_write:                ; @pci_xhci_rtsregs_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #56]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DPRINTF
LBB0_3:
	mov	x20, x2
	mov	x19, x0
	sub	w21, w1, w8
	sxtw	x0, w20
	bl	_DPRINTF
	sub	w8, w21, #32
	ror	w9, w8, #2
	cmp	w9, #7
	b.hi	LBB0_9
; %bb.4:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
Lloh4:
	adrp	x8, _XHCI_IMAN_INTR_PEND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XHCI_IMAN_INTR_PEND@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.6:
	ldr	w9, [x19, #24]
	bic	w9, w9, w8
	b	LBB0_17
LBB0_7:
	str	w20, [x19, #28]
	b	LBB0_18
LBB0_8:
	and	w8, w20, #0xffff
	str	w8, [x19, #32]
	b	LBB0_18
LBB0_9:
	sxtw	x0, w8
	b	LBB0_2
LBB0_10:
	ldr	w0, [x19, #36]
	bl	_MASK_64_HI
	and	w8, w20, #0xffffffc0
	orr	w8, w0, w8
	str	w8, [x19, #36]
	b	LBB0_18
LBB0_11:
	ldr	w0, [x19, #36]
	bl	_MASK_64_LO
	mov	x0, x19
	bl	_XHCI_GADDR
	str	x0, [x19, #16]
	ldr	w8, [x0]
	and	w1, w8, #0xffffffc0
	mov	x0, x19
	bl	_XHCI_GADDR
	str	x0, [x19, #48]
	stp	xzr, xzr, [x19]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	b	LBB0_2
LBB0_12:
	ldr	w0, [x19, #40]
	bl	_MASK_64_HI
	ldr	w9, [x19, #40]
Lloh7:
	adrp	x8, _XHCI_ERDP_LO_BUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XHCI_ERDP_LO_BUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w10, w8, w9
	and	w9, w20, #0xfffffff0
	orr	w9, w0, w9
	orr	w10, w9, w10
	str	w10, [x19, #40]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	bic	w8, w9, w8
	str	w8, [x19, #40]
Lloh10:
	adrp	x8, _XHCI_IMAN_INTR_PEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XHCI_IMAN_INTR_PEND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
LBB0_14:
	mov	x0, x20
	bl	_XHCI_ERDP_LO_SINDEX
	str	w0, [x19, #44]
	b	LBB0_18
LBB0_15:
	ldr	w0, [x19, #40]
	bl	_MASK_64_LO
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_2
	b	LBB0_18
LBB0_16:
	ldr	w9, [x19, #24]
LBB0_17:
Lloh13:
	adrp	x10, _XHCI_IMAN_INTR_ENA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _XHCI_IMAN_INTR_ENA@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w8, w9, w8
	ands	w9, w10, w20
	orr	w8, w8, w9
	str	w8, [x19, #24]
	b.eq	LBB0_19
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_xhci_deassert_interrupt
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_xhci attempted write to MFINDEX\r\n"

	.comm	_XHCI_IMAN_INTR_PEND,4,2        ; @XHCI_IMAN_INTR_PEND
	.comm	_XHCI_IMAN_INTR_ENA,4,2         ; @XHCI_IMAN_INTR_ENA
	.comm	_XHCI_ERDP_LO_BUSY,4,2          ; @XHCI_ERDP_LO_BUSY
	.no_dead_strip	_pci_xhci_rtsregs_write
.subsections_via_symbols
