	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_hostop_write
_pci_xhci_hostop_write:                 ## @pci_xhci_hostop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_XHCI_CAPLEN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	cmpl	$1023, %ebx                     ## imm = 0x3FF
	jg	LBB0_2
## %bb.1:
	movslq	%r15d, %rdi
	callq	_DPRINTF
LBB0_2:
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_XHCI_STS_HSE@GOTPCREL(%rip), %rax
	movq	_XHCI_STS_EINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_XHCI_STS_PCD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_XHCI_STS_SSS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_XHCI_STS_RSS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_XHCI_STS_SRE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_XHCI_STS_CNR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	%r15d, %ecx
	notl	%ecx
	andl	%ecx, (%r14)
	jmp	LBB0_17
LBB0_14:
	cmpl	$1024, %ebx                     ## imm = 0x400
	jl	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_xhci_portregs_write        ## TAILCALL
LBB0_16:
	andl	$16143, %r15d                   ## imm = 0x3F0F
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_xhci_usbcmd_write
	movl	%eax, 40(%r14)
	jmp	LBB0_17
LBB0_5:
	movzwl	%r15w, %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_17
LBB0_11:
	movl	12(%r14), %edi
	callq	_MASK_64_HI
	andl	$-64, %r15d
	orl	%eax, %r15d
	movl	%r15d, 12(%r14)
	jmp	LBB0_17
LBB0_12:
	movl	12(%r14), %edi
	callq	_MASK_64_LO
	movq	%r14, %rdi
	callq	_XHCI_GADDR
	movq	%rax, 24(%r14)
	movslq	%eax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_6:
	movl	8(%r14), %edi
	movq	_XHCI_CRCR_LO_CRR@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_XHCI_CRCR_LO_CS@GOTPCREL(%rip), %rax
	movq	_XHCI_CRCR_LO_CA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %r15d
	andl	%ecx, %r15d
	xorl	%edi, %r15d
	movl	%r15d, 8(%r14)
	jmp	LBB0_17
LBB0_9:
	movl	8(%r14), %edi
	movq	_XHCI_CRCR_LO_CRR@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_17
## %bb.10:
	callq	_MASK_64_LO
	movq	%r14, %rdi
	callq	_XHCI_GADDR
	movq	%rax, 32(%r14)
	jmp	LBB0_17
LBB0_13:
	andl	$1023, %r15d                    ## imm = 0x3FF
	movl	%r15d, 16(%r14)
	jmp	LBB0_17
LBB0_8:
	callq	_MASK_64_HI
	movq	_XHCI_CRCR_LO_RCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	$-64, %ecx
	andl	%r15d, %ecx
	orl	%eax, %ecx
	movl	%ecx, 8(%r14)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_XHCI_CAPLEN,8,3                ## @XHCI_CAPLEN
	.comm	_XHCI_STS_HSE,4,2               ## @XHCI_STS_HSE
	.comm	_XHCI_STS_EINT,4,2              ## @XHCI_STS_EINT
	.comm	_XHCI_STS_PCD,4,2               ## @XHCI_STS_PCD
	.comm	_XHCI_STS_SSS,4,2               ## @XHCI_STS_SSS
	.comm	_XHCI_STS_RSS,4,2               ## @XHCI_STS_RSS
	.comm	_XHCI_STS_SRE,4,2               ## @XHCI_STS_SRE
	.comm	_XHCI_STS_CNR,4,2               ## @XHCI_STS_CNR
	.comm	_XHCI_CRCR_LO_CRR,4,2           ## @XHCI_CRCR_LO_CRR
	.comm	_XHCI_CRCR_LO_CS,4,2            ## @XHCI_CRCR_LO_CS
	.comm	_XHCI_CRCR_LO_CA,4,2            ## @XHCI_CRCR_LO_CA
	.comm	_XHCI_CRCR_LO_RCS,4,2           ## @XHCI_CRCR_LO_RCS
	.no_dead_strip	_pci_xhci_hostop_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_hostop_write
_pci_xhci_hostop_write:                 ; @pci_xhci_hostop_write
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _XHCI_CAPLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XHCI_CAPLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w21, w1, w8
	cmp	w21, #1023
	b.gt	LBB0_2
; %bb.1:
	sxtw	x0, w20
	bl	_DPRINTF
LBB0_2:
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh5:
	adrp	x8, _XHCI_STS_HSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XHCI_STS_HSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _XHCI_STS_EINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XHCI_STS_EINT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _XHCI_STS_PCD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XHCI_STS_PCD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _XHCI_STS_SSS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XHCI_STS_SSS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _XHCI_STS_RSS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XHCI_STS_RSS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _XHCI_STS_SRE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XHCI_STS_SRE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _XHCI_STS_CNR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XHCI_STS_CNR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w8, w8, w20
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_18
LBB0_5:
	cmp	w21, #1024
	b.lt	LBB0_18
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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	_pci_xhci_portregs_write
LBB0_7:
	mov	w8, #16143
	and	w1, w20, w8
	mov	x0, x19
	bl	_pci_xhci_usbcmd_write
	str	w0, [x19, #40]
	b	LBB0_18
LBB0_8:
	and	w8, w20, #0xffff
	str	w8, [x19, #4]
	b	LBB0_18
LBB0_9:
	ldr	w0, [x19, #12]
	bl	_MASK_64_HI
	and	w8, w20, #0xffffffc0
	orr	w8, w0, w8
	str	w8, [x19, #12]
	b	LBB0_18
LBB0_10:
	ldr	w0, [x19, #12]
	bl	_MASK_64_LO
	mov	x0, x19
	bl	_XHCI_GADDR
	str	x0, [x19, #24]
	sxtw	x0, w0
	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	_DPRINTF
LBB0_11:
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x8, _XHCI_CRCR_LO_CRR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XHCI_CRCR_LO_CRR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.12:
Lloh29:
	adrp	x8, _XHCI_CRCR_LO_CS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XHCI_CRCR_LO_CS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _XHCI_CRCR_LO_CA@GOTPAGE
Lloh33:
	ldr	x9, [x9, _XHCI_CRCR_LO_CA@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w9, w0, w8
	and	w8, w8, w20
	orr	w8, w9, w8
	b	LBB0_17
LBB0_13:
	ldr	w0, [x19, #8]
Lloh35:
	adrp	x8, _XHCI_CRCR_LO_CRR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _XHCI_CRCR_LO_CRR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.14:
	bl	_MASK_64_LO
	mov	x0, x19
	bl	_XHCI_GADDR
	str	x0, [x19, #32]
	b	LBB0_18
LBB0_15:
	and	w8, w20, #0x3ff
	str	w8, [x19, #16]
	b	LBB0_18
LBB0_16:
	bl	_MASK_64_HI
Lloh38:
	adrp	x8, _XHCI_CRCR_LO_RCS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _XHCI_CRCR_LO_RCS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	orr	w8, w8, #0xffffffc0
	and	w8, w8, w20
	orr	w8, w8, w0
LBB0_17:
	str	w8, [x19, #8]
LBB0_18:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.comm	_XHCI_CAPLEN,8,3                ; @XHCI_CAPLEN
	.comm	_XHCI_STS_HSE,4,2               ; @XHCI_STS_HSE
	.comm	_XHCI_STS_EINT,4,2              ; @XHCI_STS_EINT
	.comm	_XHCI_STS_PCD,4,2               ; @XHCI_STS_PCD
	.comm	_XHCI_STS_SSS,4,2               ; @XHCI_STS_SSS
	.comm	_XHCI_STS_RSS,4,2               ; @XHCI_STS_RSS
	.comm	_XHCI_STS_SRE,4,2               ; @XHCI_STS_SRE
	.comm	_XHCI_STS_CNR,4,2               ; @XHCI_STS_CNR
	.comm	_XHCI_CRCR_LO_CRR,4,2           ; @XHCI_CRCR_LO_CRR
	.comm	_XHCI_CRCR_LO_CS,4,2            ; @XHCI_CRCR_LO_CS
	.comm	_XHCI_CRCR_LO_CA,4,2            ; @XHCI_CRCR_LO_CA
	.comm	_XHCI_CRCR_LO_RCS,4,2           ; @XHCI_CRCR_LO_RCS
	.no_dead_strip	_pci_xhci_hostop_write
.subsections_via_symbols
