	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_portregs_write
_pci_xhci_portregs_write:               ## @pci_xhci_portregs_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	%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
	cmpq	$0, (%rdi)
	je	LBB0_25
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	_XHCI_PORTREGS_PORT0@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	_XHCI_PORTREGS_SETSZ@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r13d
	movl	%edx, %ebx
	movslq	%r15d, %rdi
	callq	_DPRINTF
	movl	%r13d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_XHCI_MAX_DEVS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_4
LBB0_2:
	movslq	%r13d, %rdi
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_XHCI_DEVINST_PTR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movslq	%r13d, %rdi
	callq	_DPRINTF
LBB0_6:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_XHCI_PORTREG_PTR
	roll	$30, %ebx
	cmpl	$3, %ebx
	ja	LBB0_25
## %bb.7:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_XHCI_PS_PR@GOTPCREL(%rip), %rbx
	movq	_XHCI_PS_WPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %eax
	orl	%edx, %eax
	testl	%r15d, %eax
	je	LBB0_9
## %bb.26:
	andl	%r15d, %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_xhci_reset_port            ## TAILCALL
LBB0_23:
	movl	%r15d, 4(%r12)
	jmp	LBB0_25
LBB0_24:
	movl	%r15d, 8(%r12)
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r12), %edi
	movq	_XHCI_PS_PP@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_27
## %bb.10:
	callq	_XHCI_PS_PLS_GET
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_XHCI_PS_PLS_GET
	movq	_XHCI_PS_PED@GOTPCREL(%rip), %rdx
	movq	_XHCI_PS_PLS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_XHCI_PS_SPEED_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_XHCI_PS_PIC_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	%ecx, (%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_XHCI_DEVINST_PTR
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_XHCI_PS_CCS@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	jmp	LBB0_13
LBB0_27:
	movslq	%r13d, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WPRINTF                        ## TAILCALL
LBB0_11:
	movl	(%r12), %ecx
LBB0_13:
	movq	_XHCI_PS_PED@GOTPCREL(%rip), %r8
	movq	_XHCI_PS_WPR@GOTPCREL(%rip), %r9
	movq	_XHCI_PS_SPEED_MASK@GOTPCREL(%rip), %rsi
	movq	_XHCI_PS_PIC_MASK@GOTPCREL(%rip), %rdi
	movq	_XHCI_PS_OCA@GOTPCREL(%rip), %rdx
	movl	(%rbx), %eax
	orl	(%rdx), %eax
	orl	(%r8), %eax
	movq	_XHCI_PS_PLS_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movq	_XHCI_PS_LWS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movq	_XHCI_PS_DR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	(%r9), %eax
	notl	%eax
	andl	%r15d, %eax
	orl	%ecx, %eax
	movl	%eax, (%r12)
	movq	_XHCI_PS_CSC@GOTPCREL(%rip), %rcx
	movq	_XHCI_PS_PEC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_XHCI_PS_WRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XHCI_PS_OCC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XHCI_PS_PRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XHCI_PS_PLC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XHCI_PS_CEC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XHCI_PS_CAS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%r15d, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%r12)
	testl	%r15d, (%r8)
	je	LBB0_15
## %bb.14:
	movslq	%r13d, %rdi
	callq	_DPRINTF
LBB0_15:
	testl	%r15d, (%rbx)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_25
## %bb.16:
	movslq	%ebx, %r15
	movq	%r15, %rdi
	callq	_DPRINTF
	cmpl	$3, %ebx
	je	LBB0_18
## %bb.17:
	testl	%ebx, %ebx
	jne	LBB0_22
LBB0_18:
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_25
## %bb.19:
	movq	_XHCI_PS_PLS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movl	%ebx, %edi
	callq	_XHCI_PS_PLS_SET
	movq	_XHCI_PS_PLC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, (%r12)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.20:
	testl	%ebx, %ebx
	jne	LBB0_25
## %bb.21:
	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	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_pci_xhci_set_evtrb
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_pci_xhci_insert_event
	jmp	LBB0_25
LBB0_22:
	movq	%r15, %rdi
	jmp	LBB0_3
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_23
	.long	L0_0_set_2
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_XHCI_PORTREGS_PORT0,4,2        ## @XHCI_PORTREGS_PORT0
	.comm	_XHCI_PORTREGS_SETSZ,4,2        ## @XHCI_PORTREGS_SETSZ
	.comm	_XHCI_MAX_DEVS,4,2              ## @XHCI_MAX_DEVS
	.comm	_XHCI_PS_PR,4,2                 ## @XHCI_PS_PR
	.comm	_XHCI_PS_WPR,4,2                ## @XHCI_PS_WPR
	.comm	_XHCI_PS_PP,4,2                 ## @XHCI_PS_PP
	.comm	_XHCI_PS_PED,4,2                ## @XHCI_PS_PED
	.comm	_XHCI_PS_PLS_MASK,4,2           ## @XHCI_PS_PLS_MASK
	.comm	_XHCI_PS_SPEED_MASK,4,2         ## @XHCI_PS_SPEED_MASK
	.comm	_XHCI_PS_PIC_MASK,4,2           ## @XHCI_PS_PIC_MASK
	.comm	_XHCI_PS_CCS,4,2                ## @XHCI_PS_CCS
	.comm	_XHCI_PS_OCA,4,2                ## @XHCI_PS_OCA
	.comm	_XHCI_PS_LWS,4,2                ## @XHCI_PS_LWS
	.comm	_XHCI_PS_DR,4,2                 ## @XHCI_PS_DR
	.comm	_XHCI_PS_CSC,4,2                ## @XHCI_PS_CSC
	.comm	_XHCI_PS_PEC,4,2                ## @XHCI_PS_PEC
	.comm	_XHCI_PS_WRC,4,2                ## @XHCI_PS_WRC
	.comm	_XHCI_PS_OCC,4,2                ## @XHCI_PS_OCC
	.comm	_XHCI_PS_PRC,4,2                ## @XHCI_PS_PRC
	.comm	_XHCI_PS_PLC,4,2                ## @XHCI_PS_PLC
	.comm	_XHCI_PS_CEC,4,2                ## @XHCI_PS_CEC
	.comm	_XHCI_PS_CAS,4,2                ## @XHCI_PS_CAS
	.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
	.no_dead_strip	_pci_xhci_portregs_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_portregs_write
_pci_xhci_portregs_write:               ; @pci_xhci_portregs_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _XHCI_PORTREGS_PORT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XHCI_PORTREGS_PORT0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w22, w1, w8
Lloh3:
	adrp	x8, _XHCI_PORTREGS_SETSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XHCI_PORTREGS_SETSZ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	sdiv	w20, w22, w23
	sxtw	x0, w21
	bl	_DPRINTF
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
Lloh6:
	adrp	x8, _XHCI_MAX_DEVS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XHCI_MAX_DEVS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_4
LBB0_2:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x0, w20
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DPRINTF
LBB0_4:
	msub	w23, w20, w23, w22
	mov	x0, x19
	mov	x1, x20
	bl	_XHCI_DEVINST_PTR
	cbnz	x0, LBB0_6
; %bb.5:
	sxtw	x0, w20
	bl	_DPRINTF
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_XHCI_PORTREG_PTR
	ror	w8, w23, #2
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.7:
	mov	x22, x0
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh11:
	adrp	x28, _XHCI_PS_PR@GOTPAGE
Lloh12:
	ldr	x28, [x28, _XHCI_PS_PR@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh13:
	adrp	x27, _XHCI_PS_WPR@GOTPAGE
Lloh14:
	ldr	x27, [x27, _XHCI_PS_WPR@GOTPAGEOFF]
	ldr	w8, [x27]
	orr	w9, w8, w9
	tst	w9, w21
	b.eq	LBB0_13
; %bb.9:
	and	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pci_xhci_reset_port
LBB0_10:
	str	w21, [x22, #4]
	b	LBB0_12
LBB0_11:
	str	w21, [x22, #8]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _XHCI_PS_PP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XHCI_PS_PP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.14:
	bl	_XHCI_PS_PLS_GET
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x21
	bl	_XHCI_PS_PLS_GET
	mov	x24, x0
Lloh18:
	adrp	x26, _XHCI_PS_PED@GOTPAGE
Lloh19:
	ldr	x26, [x26, _XHCI_PS_PED@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh20:
	adrp	x9, _XHCI_PS_PLS_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XHCI_PS_PLS_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x23, _XHCI_PS_SPEED_MASK@GOTPAGE
Lloh24:
	ldr	x23, [x23, _XHCI_PS_SPEED_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh25:
	adrp	x25, _XHCI_PS_PIC_MASK@GOTPAGE
Lloh26:
	ldr	x25, [x25, _XHCI_PS_PIC_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x22]
	and	w8, w9, w8
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_XHCI_DEVINST_PTR
	cbz	x0, LBB0_17
; %bb.15:
Lloh27:
	adrp	x8, _XHCI_PS_CCS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XHCI_PS_CCS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_18
LBB0_16:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x0, w20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_WPRINTF
LBB0_17:
	ldr	w8, [x22]
LBB0_18:
Lloh30:
	adrp	x9, _XHCI_PS_OCA@GOTPAGE
Lloh31:
	ldr	x9, [x9, _XHCI_PS_OCA@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	ldr	w10, [x28]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w9, w9, w10
Lloh33:
	adrp	x10, _XHCI_PS_PLS_MASK@GOTPAGE
Lloh34:
	ldr	x10, [x10, _XHCI_PS_PLS_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x23]
	orr	w9, w9, w10
	ldr	w10, [x25]
Lloh36:
	adrp	x28, _XHCI_PS_LWS@GOTPAGE
Lloh37:
	ldr	x28, [x28, _XHCI_PS_LWS@GOTPAGEOFF]
	orr	w9, w9, w10
	ldr	w10, [x28]
	orr	w9, w9, w10
Lloh38:
	adrp	x10, _XHCI_PS_DR@GOTPAGE
Lloh39:
	ldr	x10, [x10, _XHCI_PS_DR@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x27]
	orr	w9, w9, w10
	bic	w9, w21, w9
	orr	w8, w9, w8
	str	w8, [x22]
Lloh41:
	adrp	x9, _XHCI_PS_CSC@GOTPAGE
Lloh42:
	ldr	x9, [x9, _XHCI_PS_CSC@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _XHCI_PS_PEC@GOTPAGE
Lloh45:
	ldr	x10, [x10, _XHCI_PS_PEC@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh47:
	adrp	x10, _XHCI_PS_WRC@GOTPAGE
Lloh48:
	ldr	x10, [x10, _XHCI_PS_WRC@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
Lloh50:
	adrp	x11, _XHCI_PS_OCC@GOTPAGE
Lloh51:
	ldr	x11, [x11, _XHCI_PS_OCC@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh52:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh53:
	adrp	x10, _XHCI_PS_PRC@GOTPAGE
Lloh54:
	ldr	x10, [x10, _XHCI_PS_PRC@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh56:
	adrp	x27, _XHCI_PS_PLC@GOTPAGE
Lloh57:
	ldr	x27, [x27, _XHCI_PS_PLC@GOTPAGEOFF]
	ldr	w10, [x27]
Lloh58:
	adrp	x11, _XHCI_PS_CEC@GOTPAGE
Lloh59:
	ldr	x11, [x11, _XHCI_PS_CEC@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh60:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh61:
	adrp	x10, _XHCI_PS_CAS@GOTPAGE
Lloh62:
	ldr	x10, [x10, _XHCI_PS_CAS@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w9, w9, w21
	bic	w8, w8, w9
	str	w8, [x22]
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.19:
	mov	x8, x20
	sxtw	x0, w8
	bl	_DPRINTF
LBB0_20:
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.21:
	sxtw	x21, w24
	mov	x0, x21
	bl	_DPRINTF
	cmp	w24, #3
	b.eq	LBB0_23
; %bb.22:
	cbnz	w24, LBB0_27
LBB0_23:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w8, w24
	b.eq	LBB0_12
; %bb.24:
Lloh64:
	adrp	x8, _XHCI_PS_PLS_MASK@GOTPAGE
Lloh65:
	ldr	x8, [x8, _XHCI_PS_PLS_MASK@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	mov	x0, x24
	bl	_XHCI_PS_PLS_SET
	ldr	w8, [x27]
	orr	w8, w8, w0
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.25:
	cbnz	w24, LBB0_12
; %bb.26:
Lloh67:
	adrp	x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh68:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
Lloh70:
	adrp	x8, _XHCI_TRB_EVENT_PORT_STS_CHANGE@GOTPAGE
Lloh71:
	ldr	x8, [x8, _XHCI_TRB_EVENT_PORT_STS_CHANGE@GOTPAGEOFF]
Lloh72:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_pci_xhci_set_evtrb
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_pci_xhci_insert_event
	b	LBB0_12
LBB0_27:
	mov	x0, x21
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_XHCI_PORTREGS_PORT0,4,2        ; @XHCI_PORTREGS_PORT0
	.comm	_XHCI_PORTREGS_SETSZ,4,2        ; @XHCI_PORTREGS_SETSZ
	.comm	_XHCI_MAX_DEVS,4,2              ; @XHCI_MAX_DEVS
	.comm	_XHCI_PS_PR,4,2                 ; @XHCI_PS_PR
	.comm	_XHCI_PS_WPR,4,2                ; @XHCI_PS_WPR
	.comm	_XHCI_PS_PP,4,2                 ; @XHCI_PS_PP
	.comm	_XHCI_PS_PED,4,2                ; @XHCI_PS_PED
	.comm	_XHCI_PS_PLS_MASK,4,2           ; @XHCI_PS_PLS_MASK
	.comm	_XHCI_PS_SPEED_MASK,4,2         ; @XHCI_PS_SPEED_MASK
	.comm	_XHCI_PS_PIC_MASK,4,2           ; @XHCI_PS_PIC_MASK
	.comm	_XHCI_PS_CCS,4,2                ; @XHCI_PS_CCS
	.comm	_XHCI_PS_OCA,4,2                ; @XHCI_PS_OCA
	.comm	_XHCI_PS_LWS,4,2                ; @XHCI_PS_LWS
	.comm	_XHCI_PS_DR,4,2                 ; @XHCI_PS_DR
	.comm	_XHCI_PS_CSC,4,2                ; @XHCI_PS_CSC
	.comm	_XHCI_PS_PEC,4,2                ; @XHCI_PS_PEC
	.comm	_XHCI_PS_WRC,4,2                ; @XHCI_PS_WRC
	.comm	_XHCI_PS_OCC,4,2                ; @XHCI_PS_OCC
	.comm	_XHCI_PS_PRC,4,2                ; @XHCI_PS_PRC
	.comm	_XHCI_PS_PLC,4,2                ; @XHCI_PS_PLC
	.comm	_XHCI_PS_CEC,4,2                ; @XHCI_PS_CEC
	.comm	_XHCI_PS_CAS,4,2                ; @XHCI_PS_CAS
	.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
	.no_dead_strip	_pci_xhci_portregs_write
.subsections_via_symbols
