	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_cmd_reset_ep
_pci_xhci_cmd_reset_ep:                 ## @pci_xhci_cmd_reset_ep
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdx), %edi
	callq	_XHCI_TRB_3_EP_GET
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%rbx), %edi
	callq	_XHCI_TRB_3_TYPE_GET
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_XHCI_SLOTDEV_PTR
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	-32(%r13), %rax
	cmpq	$-32, %rax
	ja	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_TRB@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %r12
	shlq	$4, %r13
	movq	8(%r12,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_USB_DATA_XFER_RESET
LBB0_4:
	movq	16(%r15), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%rbx), %rbx
	movl	(%rbx,%r13), %edi
	andl	$-8, %edi
	movq	_XHCI_ST_EPCTX_STOPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%rbx,%r13)
	callq	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	4(%r12,%r13), %eax
	orl	(%r12,%r13), %eax
	movl	%eax, 4(%rbx,%r13)
LBB0_6:
	movslq	8(%rbx,%r13), %rdi
	callq	_DPRINTF
	movq	_XHCI_TRB_TYPE_RESET_EP@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.7:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	callq	*%rax
	testq	%rax, %rax
	jns	LBB0_11
LBB0_9:
	movq	_XHCI_TRB_ERROR_ENDP_NOT_ON@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %r14
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,8,3     ## @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_TYPE_STOP_EP,8,3      ## @XHCI_TRB_TYPE_STOP_EP
	.comm	_XHCI_TRB_3_SUSP_EP_BIT,4,2     ## @XHCI_TRB_3_SUSP_EP_BIT
	.comm	_XHCI_TRB_ERROR_TRB,8,3         ## @XHCI_TRB_ERROR_TRB
	.comm	_XHCI_ST_EPCTX_STOPPED,4,2      ## @XHCI_ST_EPCTX_STOPPED
	.comm	_XHCI_TRB_TYPE_RESET_EP,8,3     ## @XHCI_TRB_TYPE_RESET_EP
	.comm	_XHCI_TRB_ERROR_ENDP_NOT_ON,8,3 ## @XHCI_TRB_ERROR_ENDP_NOT_ON
	.no_dead_strip	_pci_xhci_cmd_reset_ep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_cmd_reset_ep
_pci_xhci_cmd_reset_ep:                 ; @pci_xhci_cmd_reset_ep
	.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	x21, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w0, [x2]
	bl	_XHCI_TRB_3_EP_GET
	mov	x20, x0
	mov	x0, x23
	bl	_DPRINTF
Lloh0:
	adrp	x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w0, [x21]
	bl	_XHCI_TRB_3_TYPE_GET
	mov	x22, x0
	mov	x0, x24
	mov	x1, x23
	bl	_XHCI_SLOTDEV_PTR
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	sub	x8, x20, #32
	cmn	x8, #32
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_DPRINTF
Lloh3:
	adrp	x8, _XHCI_TRB_ERROR_TRB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XHCI_TRB_ERROR_TRB@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	x23, [x21, #24]
	add	x8, x23, x20, lsl #4
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_USB_DATA_XFER_RESET
LBB0_4:
	ldr	x24, [x21, #16]
	cmp	x24, #0
	cset	w0, ne
	bl	_assert
	ldr	x24, [x24]
	lsl	x25, x20, #4
	ldr	w8, [x24, x25]
	and	w8, w8, #0xfffffff8
Lloh5:
	adrp	x9, _XHCI_ST_EPCTX_STOPPED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XHCI_ST_EPCTX_STOPPED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w8, w9
	str	w0, [x24, x25]
	bl	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	cbnz	x0, LBB0_6
; %bb.5:
	add	x8, x23, x25
	ldp	w9, w8, [x8]
	orr	w8, w8, w9
	add	x9, x24, x25
	str	w8, [x9, #4]
LBB0_6:
	add	x8, x24, x20, lsl #4
	ldrsw	x0, [x8, #8]
	bl	_DPRINTF
Lloh8:
	adrp	x8, _XHCI_TRB_TYPE_RESET_EP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XHCI_TRB_TYPE_RESET_EP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x21]
	blr	x8
	tbz	x0, #63, LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _XHCI_TRB_ERROR_ENDP_NOT_ON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XHCI_TRB_ERROR_ENDP_NOT_ON@GOTPAGEOFF]
LBB0_10:
	ldr	x19, [x8]
LBB0_11:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,8,3     ; @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_TYPE_STOP_EP,8,3      ; @XHCI_TRB_TYPE_STOP_EP
	.comm	_XHCI_TRB_3_SUSP_EP_BIT,4,2     ; @XHCI_TRB_3_SUSP_EP_BIT
	.comm	_XHCI_TRB_ERROR_TRB,8,3         ; @XHCI_TRB_ERROR_TRB
	.comm	_XHCI_ST_EPCTX_STOPPED,4,2      ; @XHCI_ST_EPCTX_STOPPED
	.comm	_XHCI_TRB_TYPE_RESET_EP,8,3     ; @XHCI_TRB_TYPE_RESET_EP
	.comm	_XHCI_TRB_ERROR_ENDP_NOT_ON,8,3 ; @XHCI_TRB_ERROR_ENDP_NOT_ON
	.no_dead_strip	_pci_xhci_cmd_reset_ep
.subsections_via_symbols
