	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_disable_ep
_pci_xhci_disable_ep:                   ## @pci_xhci_disable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	%esi, %rbx
	movq	%rbx, %rdi
	callq	_DPRINTF
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	andl	$-8, %edi
	movq	_XHCI_ST_EPCTX_DISABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, (%rax,%rbx,4)
	movq	(%r14), %r15
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	callq	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	movq	8(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_free
	movq	$0, (%r14)
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ## @XHCI_ST_EPCTX_DISABLED
	.no_dead_strip	_pci_xhci_disable_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_disable_ep
_pci_xhci_disable_ep:                   ; @pci_xhci_disable_ep
	.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
	mov	x19, x1
	mov	x21, x0
	sxtw	x20, w19
	mov	x0, x20
	bl	_DPRINTF
	ldp	x21, x8, [x21]
	ldr	x8, [x8]
	sbfiz	x9, x19, #2, #32
	ldr	w10, [x8, x9]
Lloh0:
	adrp	x11, _XHCI_ST_EPCTX_DISABLED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _XHCI_ST_EPCTX_DISABLED@GOTPAGEOFF]
	and	w10, w10, #0xfffffff8
Lloh2:
	ldr	w11, [x11]
	orr	w0, w10, w11
	str	w0, [x8, x9]
	add	x19, x21, w19, sxtw #4
	bl	_XHCI_EPCTX_0_MAXP_STREAMS_GET
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.1:
	add	x8, x21, x20, lsl #4
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
	str	xzr, [x19]
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	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	_memset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ; @XHCI_ST_EPCTX_DISABLED
	.no_dead_strip	_pci_xhci_disable_ep
.subsections_via_symbols
