	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_update_ep_ring
_pci_xhci_update_ep_ring:               ## @pci_xhci_update_ep_ring
	.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	%r9d, %ebx
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r13d
	movl	4(%rcx), %edi
	callq	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	andl	$-16, %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	andl	$1, %r13d
	movl	%r13d, %eax
	orl	%ebx, %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	24(%r15), %rcx
	movl	%ebx, (%rcx,%r12,8)
	movl	%r13d, 4(%rcx,%r12,8)
	movl	(%r14), %ecx
	andl	$-2, %ecx
	orl	%r13d, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, (%r15)
	andl	$1, %r13d
	movl	%r13d, 4(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_XHCI_GADDR
	movl	%eax, 8(%r15)
	orl	%ebx, %r13d
	movl	%r13d, (%r14)
	movl	4(%r15), %eax
	orl	(%r15), %eax
LBB0_3:
	movslq	%eax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pci_xhci_update_ep_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_update_ep_ring
_pci_xhci_update_ep_ring:               ; @pci_xhci_update_ep_ring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x0
	ldr	w0, [x3, #4]
	bl	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	and	w22, w22, #0xfffffff0
	cbz	x0, LBB0_2
; %bb.1:
	and	w9, w21, #0x1
	orr	w8, w9, w22
	ldp	x10, x11, [x20, #16]
	str	w8, [x10, x23, lsl #2]
	add	x10, x11, x23, lsl #3
	stp	w22, w9, [x10]
	ldr	w9, [x19]
	bfxil	w9, w21, #0, #1
	str	w9, [x19]
	b	LBB0_3
LBB0_2:
	and	w21, w21, #0x1
	stp	w22, w21, [x20]
	mov	x0, x24
	mov	x1, x22
	bl	_XHCI_GADDR
	str	w0, [x20, #8]
	orr	w8, w21, w22
	str	w8, [x19]
	ldp	w8, w9, [x20]
	orr	w8, w9, w8
LBB0_3:
	sxtw	x0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPRINTF
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pci_xhci_update_ep_ring
.subsections_via_symbols
