	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcht_configure_htbridge
_cpcht_configure_htbridge:              ## @cpcht_configure_htbridge
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_device_get_softc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	-64(%rbp), %edi
	callq	_OFW_PCI_PHYS_HI_BUS
	movl	%eax, %r14d
	movl	-64(%rbp), %edi
	callq	_OFW_PCI_PHYS_HI_DEVICE
	movl	%eax, %ebx
	movl	-64(%rbp), %edi
	callq	_OFW_PCI_PHYS_HI_FUNCTION
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	orl	%edx, (%rcx)
	movl	%eax, %ecx
	movq	_PCIR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$2, %r9d
	callq	_PCIB_READ_CONFIG
	movq	_PCIM_STATUS_CAPPRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	_PCIR_CAP_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r9d
	callq	_PCIB_READ_CONFIG
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %edx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	andl	$31, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	andl	$7, %ecx
	leal	(%rcx,%rax,8), %eax
	shll	$8, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rdx, %rbx
	movq	_PCICAP_NEXTPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	%ebx, %r8d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r9d
	callq	_PCIB_READ_CONFIG
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_PCICAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	addl	%ebx, %r8d
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	$1, %r9d
	callq	_PCIB_READ_CONFIG
	movq	_PCIY_HT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PCIR_HT_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	-80(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$2, %r9d
	callq	_PCIB_READ_CONFIG
	movq	_PCIM_HTCMD_CAP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCIM_HTCAP_INTERRUPT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PCIR_HT_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, %r8d
	movl	$1, (%rsp)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r9d
	callq	_PCIB_WRITE_CONFIG
	leal	4(%r13), %r8d
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	$4, %r9d
	callq	_PCIB_READ_CONFIG
	shrl	$16, %eax
	movzbl	%al, %edx
	incl	%edx
	movl	%r14d, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%edx, -108(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_device_printf
	movl	%r13d, %eax
	orl	-92(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	$96, %eax
	subl	%r13d, %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	movl	$17, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	$2, %ecx
	cmpl	%eax, -108(%rbp)                ## 4-byte Folded Reload
	je	LBB0_5
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_PCIR_HT_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	-80(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leal	-1(%rcx), %r9d
	movl	$1, (%rsp)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_PCIB_WRITE_CONFIG
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%r14d, %r12d
	movl	%ebx, %ecx
	movl	%ebx, %r14d
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	$4, %r9d
	callq	_PCIB_READ_CONFIG
	movl	%eax, %r15d
	movq	_HTAPIC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	%r15d, %r9d
	movl	$4, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_PCIB_WRITE_CONFIG
	shrl	$16, %r15d
	movzbl	%r15b, %edx
	movq	_IRQ_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rcx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %r14
	movl	%eax, 16(%rcx,%r14)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx,%r14)
	movl	4(%rsi), %eax
	addl	-104(%rbp), %eax                ## 4-byte Folded Reload
	movl	%eax, 4(%rcx,%r14)
	movq	_PCIR_HT_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	-80(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	$1, (%rsp)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movq	-120(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_PCIB_WRITE_CONFIG
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	$4, %r9d
	callq	_PCIB_READ_CONFIG
	orl	$-2147483648, %eax              ## imm = 0x80000000
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx,%r14)
	movq	_PCIR_DEVVENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	$4, %r9d
	callq	_PCIB_READ_CONFIG
	movzwl	%ax, %eax
	cmpl	$4203, %eax                     ## imm = 0x106B
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rcx,4), %rcx
	movl	4(%rax,%rcx,4), %edx
	addl	-100(%rbp), %edx                ## 4-byte Folded Reload
	movl	%edx, 12(%rax,%rcx,4)
	jmp	LBB0_11
LBB0_6:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_PCIR_STATUS,4,2                ## @PCIR_STATUS
	.comm	_PCIM_STATUS_CAPPRESENT,4,2     ## @PCIM_STATUS_CAPPRESENT
	.comm	_PCIR_CAP_PTR,4,2               ## @PCIR_CAP_PTR
	.comm	_PCICAP_NEXTPTR,4,2             ## @PCICAP_NEXTPTR
	.comm	_PCICAP_ID,4,2                  ## @PCICAP_ID
	.comm	_PCIY_HT,4,2                    ## @PCIY_HT
	.comm	_PCIR_HT_COMMAND,4,2            ## @PCIR_HT_COMMAND
	.comm	_PCIM_HTCMD_CAP_MASK,4,2        ## @PCIM_HTCMD_CAP_MASK
	.comm	_PCIM_HTCAP_INTERRUPT,4,2       ## @PCIM_HTCAP_INTERRUPT
L_.str.1:                               ## @.str.1
	.asciz	"%d HT IRQs on device %d.%d\n"

	.comm	_HTAPIC_MASK,4,2                ## @HTAPIC_MASK
	.comm	_IRQ_HT,4,2                     ## @IRQ_HT
	.comm	_PCIR_DEVVENDOR,4,2             ## @PCIR_DEVVENDOR
	.no_dead_strip	_cpcht_configure_htbridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcht_configure_htbridge
_cpcht_configure_htbridge:              ; @cpcht_configure_htbridge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x1
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	bl	_device_get_softc
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #56
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.1:
	ldr	w0, [sp, #56]
	bl	_OFW_PCI_PHYS_HI_BUS
	mov	x19, x0
	ldr	w0, [sp, #56]
	bl	_OFW_PCI_PHYS_HI_DEVICE
	mov	x20, x0
	ldr	w0, [sp, #56]
	bl	_OFW_PCI_PHYS_HI_FUNCTION
	mov	x3, x0
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x10]
Lloh2:
	adrp	x8, _PCIR_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIR_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	stp	w19, w3, [sp, #24]              ; 8-byte Folded Spill
	mov	x1, x19
	str	w20, [sp, #32]                  ; 4-byte Folded Spill
	mov	x2, x20
	mov	w5, #2
	bl	_PCIB_READ_CONFIG
Lloh5:
	adrp	x8, _PCIM_STATUS_CAPPRESENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIM_STATUS_CAPPRESENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
Lloh8:
	adrp	x8, _PCIR_CAP_PTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCIR_CAP_PTR@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	ldp	w2, w0, [sp, #32]               ; 8-byte Folded Reload
	ldp	w1, w3, [sp, #24]               ; 8-byte Folded Reload
	mov	w5, #1
	bl	_PCIB_READ_CONFIG
	cbz	w0, LBB0_11
; %bb.3:
	mov	x20, x0
	ldp	w8, w9, [sp, #28]               ; 8-byte Folded Reload
	and	w8, w8, #0x7
	bfi	w8, w9, #3, #5
	lsl	w8, w8, #8
	str	w8, [sp]                        ; 4-byte Folded Spill
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	mov	x20, x8
	cbz	w8, LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
Lloh11:
	adrp	x8, _PCICAP_NEXTPTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCICAP_NEXTPTR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w4, w8, w20
	ldp	w22, w19, [sp, #32]             ; 8-byte Folded Reload
	mov	x0, x19
	ldp	w21, w23, [sp, #24]             ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w5, #1
	bl	_PCIB_READ_CONFIG
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
Lloh14:
	adrp	x8, _PCICAP_ID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCICAP_ID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	add	w4, w8, w20
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w5, #1
	bl	_PCIB_READ_CONFIG
Lloh17:
	adrp	x8, _PCIY_HT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCIY_HT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _PCIR_HT_COMMAND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCIR_HT_COMMAND@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	w4, w8, w9
	ldp	w2, w0, [sp, #32]               ; 8-byte Folded Reload
	ldp	w1, w3, [sp, #24]               ; 8-byte Folded Reload
	mov	w5, #2
	bl	_PCIB_READ_CONFIG
Lloh23:
	adrp	x8, _PCIM_HTCMD_CAP_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCIM_HTCMD_CAP_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh26:
	adrp	x9, _PCIM_HTCAP_INTERRUPT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCIM_HTCAP_INTERRUPT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh29:
	adrp	x8, _PCIR_HT_COMMAND@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCIR_HT_COMMAND@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	add	w4, w8, w20
	ldp	w22, w19, [sp, #32]             ; 8-byte Folded Reload
	mov	x0, x19
	ldp	w21, w23, [sp, #24]             ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w5, #1
	mov	w6, #1
	bl	_PCIB_WRITE_CONFIG
	add	w4, w20, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	mov	w5, #4
	bl	_PCIB_READ_CONFIG
	ubfx	w8, w0, #16, #8
	add	w2, w8, #1
	mov	x0, x19
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	str	w2, [sp, #16]                   ; 4-byte Folded Spill
	mov	x3, x22
	mov	x4, x23
	bl	_device_printf
	mov	w28, #0
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	orr	w8, w20, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w8, #96
	sub	w8, w8, w20
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	w25, #17
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w28, w28, #1
	add	w25, w25, #2
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w8, w28
	b.eq	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh34:
	adrp	x8, _PCIR_HT_COMMAND@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCIR_HT_COMMAND@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	w4, w8, w9
	sub	w5, w25, #1
	ldp	w23, w19, [sp, #32]             ; 8-byte Folded Reload
	mov	x0, x19
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	mov	w6, #1
	bl	_PCIB_WRITE_CONFIG
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	mov	x4, x21
	mov	w5, #4
	bl	_PCIB_READ_CONFIG
	mov	x26, x0
Lloh37:
	adrp	x8, _HTAPIC_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HTAPIC_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w5, w8, w0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	mov	x4, x21
	mov	w6, #4
	bl	_PCIB_WRITE_CONFIG
	ubfx	w26, w26, #16, #8
Lloh40:
	adrp	x8, _IRQ_HT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_HT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	x9, [x24, #8]
	add	x10, x26, w26, uxtw #2
	lsl	x20, x10, #2
	add	x9, x9, x20
	str	w8, [x9, #16]
	ldr	w8, [x24, #4]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	add	w8, w8, w10
	stp	w28, w8, [x9]
Lloh43:
	adrp	x8, _PCIR_HT_COMMAND@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCIR_HT_COMMAND@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	add	w4, w8, w9
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	mov	x5, x25
	mov	w6, #1
	bl	_PCIB_WRITE_CONFIG
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	mov	x4, x21
	mov	w5, #4
	bl	_PCIB_READ_CONFIG
	orr	w8, w0, #0x80000000
	ldr	x9, [x24, #8]
	add	x9, x9, x20
	str	w8, [x9, #8]
Lloh46:
	adrp	x8, _PCIR_DEVVENDOR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PCIR_DEVVENDOR@GOTPAGEOFF]
Lloh48:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x27
	mov	w5, #4
	bl	_PCIB_READ_CONFIG
	mov	w8, #4203
	cmp	w8, w0, uxth
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	mov	w9, #20
	madd	x8, x26, x9, x8
	ldr	w9, [x8, #4]
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	add	w9, w10, w9
	str	w9, [x8, #12]
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_PCIR_STATUS,4,2                ; @PCIR_STATUS
	.comm	_PCIM_STATUS_CAPPRESENT,4,2     ; @PCIM_STATUS_CAPPRESENT
	.comm	_PCIR_CAP_PTR,4,2               ; @PCIR_CAP_PTR
	.comm	_PCICAP_NEXTPTR,4,2             ; @PCICAP_NEXTPTR
	.comm	_PCICAP_ID,4,2                  ; @PCICAP_ID
	.comm	_PCIY_HT,4,2                    ; @PCIY_HT
	.comm	_PCIR_HT_COMMAND,4,2            ; @PCIR_HT_COMMAND
	.comm	_PCIM_HTCMD_CAP_MASK,4,2        ; @PCIM_HTCMD_CAP_MASK
	.comm	_PCIM_HTCAP_INTERRUPT,4,2       ; @PCIM_HTCAP_INTERRUPT
l_.str.1:                               ; @.str.1
	.asciz	"%d HT IRQs on device %d.%d\n"

	.comm	_HTAPIC_MASK,4,2                ; @HTAPIC_MASK
	.comm	_IRQ_HT,4,2                     ; @IRQ_HT
	.comm	_PCIR_DEVVENDOR,4,2             ; @PCIR_DEVVENDOR
	.no_dead_strip	_cpcht_configure_htbridge
.subsections_via_symbols
