	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_dev_intr
_pci_xhci_dev_intr:                     ## @pci_xhci_dev_intr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %r12d
	andl	$-129, %r12d
	shrl	$7, %ebx
	andl	$1, %ebx
	leal	(%rbx,%r12,2), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	$31, %eax
	setb	%dil
	callq	_assert
	movq	8(%r14), %r13
	movq	8(%r13), %r15
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.1:
	movq	_XHCI_CMD_RS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_9
## %bb.2:
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.3:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_XHCI_PORTREG_PTR
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_XHCI_PS_PLS_GET
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.4:
	movq	_XHCI_PS_PLS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andl	%eax, (%rcx)
	movq	_UPS_PORT_LS_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XHCI_PS_PLS_SET
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx), %eax
	movl	%eax, (%rcx)
	movq	_XHCI_PS_PLC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	orl	%eax, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	(%r14), %esi
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XHCI_TRB_EVENT_PORT_STS_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rdi
	callq	_pci_xhci_set_evtrb
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_pci_xhci_insert_event
	movl	%eax, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
LBB0_7:
	leal	(%rbx,%r12,2), %r12d
	movq	(%r13), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rdi
	movl	(%rax,%rdi,4), %ebx
	andl	$7, %ebx
	movq	_XHCI_ST_EPCTX_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_DPRINTF
	movl	$0, %eax
	cmpl	%r13d, %ebx
	je	LBB0_9
## %bb.8:
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_pci_xhci_device_doorbell
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_CMD_RS,4,2                ## @XHCI_CMD_RS
	.comm	_XHCI_PS_PLS_MASK,4,2           ## @XHCI_PS_PLS_MASK
	.comm	_UPS_PORT_LS_RESUME,4,2         ## @UPS_PORT_LS_RESUME
	.comm	_XHCI_PS_PLC,4,2                ## @XHCI_PS_PLC
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ## @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_EVENT_PORT_STS_CHANGE,4,2 ## @XHCI_TRB_EVENT_PORT_STS_CHANGE
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ## @XHCI_ST_EPCTX_DISABLED
	.no_dead_strip	_pci_xhci_dev_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_dev_intr
_pci_xhci_dev_intr:                     ; @pci_xhci_dev_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	lsl	w8, w1, #1
	and	w8, w8, #0xfffffeff
	ubfx	w9, w1, #7, #1
	orr	w19, w8, w9
	sub	w8, w19, #1
	cmp	w8, #31
	cset	w0, lo
	bl	_assert
	ldr	x23, [x20, #8]
	ldr	x21, [x23, #8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _XHCI_CMD_RS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XHCI_CMD_RS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_XHCI_PORTREG_PTR
	mov	x22, x0
	ldr	w0, [x0]
	bl	_XHCI_PS_PLS_GET
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _XHCI_PS_PLS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XHCI_PS_PLS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
Lloh6:
	adrp	x8, _UPS_PORT_LS_RESUME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UPS_PORT_LS_RESUME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_XHCI_PS_PLS_SET
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
Lloh9:
	adrp	x9, _XHCI_PS_PLC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XHCI_PS_PLC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.5:
	orr	w8, w9, w8
	str	w8, [x22]
	ldr	w1, [x20]
Lloh12:
	adrp	x24, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh14:
	adrp	x8, _XHCI_TRB_EVENT_PORT_STS_CHANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XHCI_TRB_EVENT_PORT_STS_CHANGE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x0, sp, #8
	bl	_pci_xhci_set_evtrb
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_pci_xhci_insert_event
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w22, #0
LBB0_7:
	ldr	x8, [x23]
	ldr	x8, [x8]
	sxtw	x0, w19
	ldr	w8, [x8, w19, sxtw #2]
	and	w23, w8, #0x7
Lloh17:
	adrp	x8, _XHCI_ST_EPCTX_DISABLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XHCI_ST_EPCTX_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	bl	_DPRINTF
	cmp	w23, w24
	b.ne	LBB0_10
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x19
	mov	w3, #0
	bl	_pci_xhci_device_doorbell
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_CMD_RS,4,2                ; @XHCI_CMD_RS
	.comm	_XHCI_PS_PLS_MASK,4,2           ; @XHCI_PS_PLS_MASK
	.comm	_UPS_PORT_LS_RESUME,4,2         ; @UPS_PORT_LS_RESUME
	.comm	_XHCI_PS_PLC,4,2                ; @XHCI_PS_PLC
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ; @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_EVENT_PORT_STS_CHANGE,4,2 ; @XHCI_TRB_EVENT_PORT_STS_CHANGE
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ; @XHCI_ST_EPCTX_DISABLED
	.no_dead_strip	_pci_xhci_dev_intr
.subsections_via_symbols
