	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shpc_init                      ## -- Begin function shpc_init
	.p2align	4, 0x90
_shpc_init:                             ## @shpc_init
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, 32(%rdi)
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movl	16(%r14), %eax
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movl	12(%r14), %eax
	movq	_PCI_DEVICE_ID_AMD_GOLAM_7450@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
LBB0_17:
	movl	%eax, 4(%r15)
	movl	16(%r14), %edx
	movl	12(%r14), %ecx
	movl	4(%r14), %r9d
	movl	8(%r14), %r8d
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_info
	movq	%r14, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r13d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	_PCI_CAP_ID_SHPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_find_capability
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_shpc_indirect_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_err
	movl	$-1, %r13d
	jmp	LBB0_38
LBB0_9:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_shpc_indirect_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
LBB0_8:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_err
LBB0_38:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	(%r15), %edi
	movl	4(%r15), %esi
	movq	_MY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	(%r15), %edi
	movl	4(%r15), %esi
	callq	_ioremap
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	leaq	64(%r15), %rdi
	callq	_mutex_init
	leaq	60(%r15), %rdi
	callq	_mutex_init
	leaq	56(%r15), %rdi
	callq	_init_waitqueue_head
	movq	_shpchp_hpc_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	_SLOT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_shpc_readl
	movq	_FIRST_DEV_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 16(%r15)
	movq	_SLOT_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 20(%r15)
	movq	_PSN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, 24(%r15)
	movq	_UPDOWN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	$536870912, %eax                ## imm = 0x20000000
	setae	%cl
	leal	(%rcx,%rcx), %eax
	decl	%eax
	movl	%eax, 28(%r15)
	movq	_SERR_INTR_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_readl
	movl	%eax, -44(%rbp)
	leaq	L_.str.13(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movq	_GLOBAL_INTR_MASK@GOTPCREL(%rip), %rcx
	movq	_GLOBAL_SERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_COMMAND_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ARBITER_SERR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	-44(%rbp), %eax
	movq	_SERR_INTR_RSVDZ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_writel
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_readl
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	cmpl	$0, 20(%r15)
	jle	LBB0_26
## %bb.24:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_SLOT_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_shpc_readl
	movl	%eax, %ebx
	movq	%r15, %rdi
	leaq	L_.str.14(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movq	_PRSNT_CHANGE_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ISO_PFAULT_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BUTTON_PRESS_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MRL_CHANGE_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CON_PFAULT_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MRL_CHANGE_SERR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CON_PFAULT_SERR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SLOT_REG_RSVDZ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movl	%r13d, %edi
	callq	_SLOT_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_shpc_writel
	incl	%r13d
	cmpl	20(%r15), %r13d
	jl	LBB0_25
LBB0_26:
	movq	_shpchp_poll_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.27:
	leaq	40(%r15), %rdi
	movq	_int_poll_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_start_int_poll_timer
LBB0_28:
	movq	%r14, %rdi
	callq	_pci_name
	movl	(%r14), %ecx
	leaq	L_.str.19(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movq	%r15, %rdi
	callq	_shpc_get_max_bus_speed
	movq	%r15, %rdi
	callq	_shpc_get_cur_bus_speed
	cmpl	$0, 20(%r15)
	jle	LBB0_31
## %bb.29:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_SLOT_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_shpc_readl
	movl	%eax, %r12d
	movq	%r15, %rdi
	leaq	L_.str.14(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movq	_ISO_PFAULT_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PRSNT_CHANGE_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_BUTTON_PRESS_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_MRL_CHANGE_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_CON_PFAULT_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_SLOT_REG_RSVDZ_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	notl	%r14d
	andl	%r12d, %r14d
	movl	%ebx, %edi
	callq	_SLOT_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_shpc_writel
	incl	%ebx
	cmpl	20(%r15), %ebx
	jl	LBB0_30
LBB0_31:
	movq	_shpchp_poll_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_38
## %bb.32:
	movq	_SERR_INTR_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_readl
	movq	_COMMAND_INTR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GLOBAL_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SERR_INTR_RSVDZ_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_writel
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_shpc_readl
	movl	%eax, -44(%rbp)
	leaq	L_.str.13(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	jmp	LBB0_38
LBB0_11:
	movq	_SLOT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-44(%rbp), %ebx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$-8, %ebx
	jl	LBB0_16
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	8(%rax), %r12d
	testl	%r12d, %r12d
	cmovlel	%r13d, %r12d
	incl	%r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_shpc_indirect_read
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_13
LBB0_16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	addl	-48(%rbp), %eax
	movl	%eax, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	36(,%rax,4), %eax
	jmp	LBB0_17
LBB0_20:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_5
LBB0_22:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_err
	movl	(%r15), %edi
	movl	4(%r15), %esi
	callq	_release_mem_region
	movl	$-1, %r13d
	jmp	LBB0_38
LBB0_33:
	movq	%r14, %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_info
	leaq	L_.str.16(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_info
	jmp	LBB0_36
LBB0_14:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ctrl_err
	jmp	LBB0_38
LBB0_35:
	movq	%r14, %rdi
	callq	_pci_set_master
LBB0_36:
	movq	_MY_NAME@GOTPCREL(%rip), %rcx
	movq	32(%r15), %rax
	movl	(%rax), %edi
	movq	_shpc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %r13d
	movq	32(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str.17(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ctrl_dbg
	testl	%r13d, %r13d
	je	LBB0_28
## %bb.37:
	movq	32(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str.18(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ctrl_err
	movl	12(%r15), %edi
	callq	_iounmap
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hotplug Controller:\n"

	.comm	_PCI_VENDOR_ID_AMD,4,2          ## @PCI_VENDOR_ID_AMD
	.comm	_PCI_DEVICE_ID_AMD_GOLAM_7450,4,2 ## @PCI_DEVICE_ID_AMD_GOLAM_7450
	.comm	_PCI_CAP_ID_SHPC,4,2            ## @PCI_CAP_ID_SHPC
L_.str.1:                               ## @.str.1
	.asciz	"Cannot find PCI capability\n"

L_.str.2:                               ## @.str.2
	.asciz	" cap_offset = %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot read base_offset\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot read slot config\n"

	.comm	_SLOT_NUM,4,2                   ## @SLOT_NUM
L_.str.5:                               ## @.str.5
	.asciz	" num_slots (indirect) %x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot read creg (index = %d)\n"

L_.str.7:                               ## @.str.7
	.asciz	" offset %d: value %x\n"

L_.str.8:                               ## @.str.8
	.asciz	"HPC vendor_id %x device_id %x ss_vid %x ss_did %x\n"

L_.str.9:                               ## @.str.9
	.asciz	"pci_enable_device failed\n"

	.comm	_MY_NAME,4,2                    ## @MY_NAME
L_.str.10:                              ## @.str.10
	.asciz	"Cannot reserve MMIO region\n"

L_.str.11:                              ## @.str.11
	.asciz	"Cannot remap MMIO region %lx @ %lx\n"

L_.str.12:                              ## @.str.12
	.asciz	"ctrl->creg %p\n"

	.comm	_shpchp_hpc_ops,4,2             ## @shpchp_hpc_ops
	.comm	_SLOT_CONFIG,4,2                ## @SLOT_CONFIG
	.comm	_FIRST_DEV_NUM,4,2              ## @FIRST_DEV_NUM
	.comm	_PSN,4,2                        ## @PSN
	.comm	_UPDOWN,4,2                     ## @UPDOWN
	.comm	_SERR_INTR_ENABLE,4,2           ## @SERR_INTR_ENABLE
L_.str.13:                              ## @.str.13
	.asciz	"SERR_INTR_ENABLE = %x\n"

	.comm	_GLOBAL_INTR_MASK,4,2           ## @GLOBAL_INTR_MASK
	.comm	_GLOBAL_SERR_MASK,4,2           ## @GLOBAL_SERR_MASK
	.comm	_COMMAND_INTR_MASK,4,2          ## @COMMAND_INTR_MASK
	.comm	_ARBITER_SERR_MASK,4,2          ## @ARBITER_SERR_MASK
	.comm	_SERR_INTR_RSVDZ_MASK,4,2       ## @SERR_INTR_RSVDZ_MASK
L_.str.14:                              ## @.str.14
	.asciz	"Default Logical Slot Register %d value %x\n"

	.comm	_PRSNT_CHANGE_INTR_MASK,4,2     ## @PRSNT_CHANGE_INTR_MASK
	.comm	_ISO_PFAULT_INTR_MASK,4,2       ## @ISO_PFAULT_INTR_MASK
	.comm	_BUTTON_PRESS_INTR_MASK,4,2     ## @BUTTON_PRESS_INTR_MASK
	.comm	_MRL_CHANGE_INTR_MASK,4,2       ## @MRL_CHANGE_INTR_MASK
	.comm	_CON_PFAULT_INTR_MASK,4,2       ## @CON_PFAULT_INTR_MASK
	.comm	_MRL_CHANGE_SERR_MASK,4,2       ## @MRL_CHANGE_SERR_MASK
	.comm	_CON_PFAULT_SERR_MASK,4,2       ## @CON_PFAULT_SERR_MASK
	.comm	_SLOT_REG_RSVDZ_MASK,4,2        ## @SLOT_REG_RSVDZ_MASK
	.comm	_shpchp_poll_mode,8,3           ## @shpchp_poll_mode
	.comm	_int_poll_timeout,4,2           ## @int_poll_timeout
L_.str.15:                              ## @.str.15
	.asciz	"Can't get msi for the hotplug controller\n"

L_.str.16:                              ## @.str.16
	.asciz	"Use INTx for the hotplug controller\n"

	.comm	_shpc_isr,4,2                   ## @shpc_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.17:                              ## @.str.17
	.asciz	"request_irq %d (returns %d)\n"

L_.str.18:                              ## @.str.18
	.asciz	"Can't get irq %d for the hotplug controller\n"

L_.str.19:                              ## @.str.19
	.asciz	"HPC at %s irq=%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shpc_init                      ; -- Begin function shpc_init
	.p2align	2
_shpc_init:                             ; @shpc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
	str	x1, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ctrl_dbg
	ldr	w8, [x20, #16]
Lloh2:
	adrp	x9, _PCI_VENDOR_ID_AMD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_VENDOR_ID_AMD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x20, #12]
Lloh5:
	adrp	x9, _PCI_DEVICE_ID_AMD_GOLAM_7450@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DEVICE_ID_AMD_GOLAM_7450@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
LBB0_3:
	str	w0, [x19, #4]
	ldp	w9, w8, [x20, #12]
	ldp	w11, w10, [x20, #4]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.8@PAGE
Lloh9:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_14
; %bb.4:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.9@PAGE
Lloh11:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _PCI_CAP_ID_SHPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_CAP_ID_SHPC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_find_capability
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.6:
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	add	x2, sp, #44
	mov	x0, x19
	mov	w1, #0
	bl	_shpc_indirect_read
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_ctrl_err
	mov	w21, #-1
	b	LBB0_13
LBB0_10:
	add	x2, sp, #40
	mov	x0, x19
	mov	w1, #3
	bl	_shpc_indirect_read
	cbz	w0, LBB0_27
; %bb.11:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_ctrl_err
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	ldp	w0, w1, [x19]
Lloh23:
	adrp	x8, _MY_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MY_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_request_mem_region
	cbz	w0, LBB0_32
; %bb.15:
	ldp	w0, w1, [x19]
	bl	_ioremap
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #12]
	cbz	w0, LBB0_33
; %bb.16:
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.12@PAGE
Lloh27:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	add	x0, x19, #64
	bl	_mutex_init
	add	x0, x19, #60
	bl	_mutex_init
	add	x0, x19, #56
	bl	_init_waitqueue_head
Lloh28:
	adrp	x8, _shpchp_hpc_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _shpchp_hpc_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh30:
	adrp	x8, _SLOT_CONFIG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SLOT_CONFIG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_shpc_readl
Lloh33:
	adrp	x8, _FIRST_DEV_NUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FIRST_DEV_NUM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #8
Lloh36:
	adrp	x9, _SLOT_NUM@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SLOT_NUM@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w9, w9, w0
	stp	w8, w9, [x19, #16]
Lloh39:
	adrp	x8, _PSN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PSN@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh42:
	adrp	x9, _UPDOWN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _UPDOWN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	and	w9, w9, w0
	asr	w8, w8, #16
	lsr	w9, w9, #29
	cmp	w9, #0
	mov	w9, #-1
	cneg	w9, w9, ne
	stp	w8, w9, [x19, #24]
Lloh45:
	adrp	x22, _SERR_INTR_ENABLE@GOTPAGE
Lloh46:
	ldr	x22, [x22, _SERR_INTR_ENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_shpc_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #40]
	str	x0, [sp]
Lloh47:
	adrp	x21, l_.str.13@PAGE
Lloh48:
	add	x21, x21, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ctrl_dbg
Lloh49:
	adrp	x8, _GLOBAL_INTR_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GLOBAL_INTR_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _GLOBAL_SERR_MASK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _GLOBAL_SERR_MASK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh55:
	adrp	x9, _COMMAND_INTR_MASK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _COMMAND_INTR_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh58:
	adrp	x9, _ARBITER_SERR_MASK@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ARBITER_SERR_MASK@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #40]
	orr	w8, w8, w9
Lloh61:
	adrp	x9, _SERR_INTR_RSVDZ_MASK@GOTPAGE
Lloh62:
	ldr	x9, [x9, _SERR_INTR_RSVDZ_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	bic	w2, w8, w9
	str	w2, [sp, #40]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_shpc_writel
	ldr	w1, [x22]
	mov	x0, x19
	bl	_shpc_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #40]
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_ctrl_dbg
Lloh64:
	adrp	x24, _MRL_CHANGE_INTR_MASK@GOTPAGE
Lloh65:
	ldr	x24, [x24, _MRL_CHANGE_INTR_MASK@GOTPAGEOFF]
	ldr	w8, [x19, #20]
Lloh66:
	adrp	x25, _CON_PFAULT_INTR_MASK@GOTPAGE
Lloh67:
	ldr	x25, [x25, _CON_PFAULT_INTR_MASK@GOTPAGEOFF]
Lloh68:
	adrp	x28, _SLOT_REG_RSVDZ_MASK@GOTPAGE
Lloh69:
	ldr	x28, [x28, _SLOT_REG_RSVDZ_MASK@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	w21, #0
Lloh70:
	adrp	x26, _MRL_CHANGE_SERR_MASK@GOTPAGE
Lloh71:
	ldr	x26, [x26, _MRL_CHANGE_SERR_MASK@GOTPAGEOFF]
Lloh72:
	adrp	x27, _CON_PFAULT_SERR_MASK@GOTPAGE
Lloh73:
	ldr	x27, [x27, _CON_PFAULT_SERR_MASK@GOTPAGEOFF]
Lloh74:
	adrp	x22, l_.str.14@PAGE
Lloh75:
	add	x22, x22, l_.str.14@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	bl	_shpc_readl
	mov	x23, x0
	stp	x21, x23, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_ctrl_dbg
Lloh76:
	adrp	x8, _PRSNT_CHANGE_INTR_MASK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _PRSNT_CHANGE_INTR_MASK@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
Lloh79:
	adrp	x9, _ISO_PFAULT_INTR_MASK@GOTPAGE
Lloh80:
	ldr	x9, [x9, _ISO_PFAULT_INTR_MASK@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
Lloh82:
	adrp	x10, _BUTTON_PRESS_INTR_MASK@GOTPAGE
Lloh83:
	ldr	x10, [x10, _BUTTON_PRESS_INTR_MASK@GOTPAGEOFF]
Lloh84:
	ldr	w10, [x10]
	ldr	w11, [x24]
	ldr	w12, [x25]
	ldr	w13, [x26]
	ldr	w14, [x27]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	ldr	w9, [x28]
	bic	w23, w8, w9
	mov	x0, x21
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_shpc_writel
	add	w21, w21, #1
	ldr	w8, [x19, #20]
	cmp	w21, w8
	b.lt	LBB0_18
LBB0_19:
	mov	x22, x25
	mov	x21, x24
Lloh85:
	adrp	x27, _BUTTON_PRESS_INTR_MASK@GOTPAGE
Lloh86:
	ldr	x27, [x27, _BUTTON_PRESS_INTR_MASK@GOTPAGEOFF]
Lloh87:
	adrp	x28, _ISO_PFAULT_INTR_MASK@GOTPAGE
Lloh88:
	ldr	x28, [x28, _ISO_PFAULT_INTR_MASK@GOTPAGEOFF]
Lloh89:
	adrp	x26, _PRSNT_CHANGE_INTR_MASK@GOTPAGE
Lloh90:
	ldr	x26, [x26, _PRSNT_CHANGE_INTR_MASK@GOTPAGEOFF]
Lloh91:
	adrp	x8, _shpchp_poll_mode@GOTPAGE
Lloh92:
	ldr	x8, [x8, _shpchp_poll_mode@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	cbz	x8, LBB0_34
; %bb.20:
	add	x0, x19, #40
Lloh94:
	adrp	x8, _int_poll_timeout@GOTPAGE
Lloh95:
	ldr	x8, [x8, _int_poll_timeout@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x19
	mov	w1, #10
	bl	_start_int_poll_timer
	mov	x24, x28
	mov	x25, x21
	mov	x28, x22
LBB0_21:
	mov	x0, x20
	bl	_pci_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20]
	stp	x0, x8, [sp]
Lloh97:
	adrp	x1, l_.str.19@PAGE
Lloh98:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	mov	x0, x19
	bl	_shpc_get_max_bus_speed
	mov	x0, x19
	bl	_shpc_get_cur_bus_speed
	ldr	w8, [x19, #20]
	cmp	w8, #1
Lloh99:
	adrp	x23, _SLOT_REG_RSVDZ_MASK@GOTPAGE
Lloh100:
	ldr	x23, [x23, _SLOT_REG_RSVDZ_MASK@GOTPAGEOFF]
	b.lt	LBB0_24
; %bb.22:
	mov	w20, #0
Lloh101:
	adrp	x21, l_.str.14@PAGE
Lloh102:
	add	x21, x21, l_.str.14@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	bl	_shpc_readl
	mov	x22, x0
	stp	x20, x22, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_ctrl_dbg
	ldr	w8, [x26]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	bic	w22, w22, w8
	mov	x0, x20
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_shpc_writel
	add	w20, w20, #1
	ldr	w8, [x19, #20]
	cmp	w20, w8
	b.lt	LBB0_23
LBB0_24:
Lloh103:
	adrp	x8, _shpchp_poll_mode@GOTPAGE
Lloh104:
	ldr	x8, [x8, _shpchp_poll_mode@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	cbnz	x8, LBB0_26
; %bb.25:
Lloh106:
	adrp	x20, _SERR_INTR_ENABLE@GOTPAGE
Lloh107:
	ldr	x20, [x20, _SERR_INTR_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_shpc_readl
Lloh108:
	adrp	x8, _GLOBAL_INTR_MASK@GOTPAGE
Lloh109:
	ldr	x8, [x8, _GLOBAL_INTR_MASK@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
Lloh111:
	adrp	x9, _COMMAND_INTR_MASK@GOTPAGE
Lloh112:
	ldr	x9, [x9, _COMMAND_INTR_MASK@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh114:
	adrp	x9, _SERR_INTR_RSVDZ_MASK@GOTPAGE
Lloh115:
	ldr	x9, [x9, _SERR_INTR_RSVDZ_MASK@GOTPAGEOFF]
Lloh116:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
	str	w2, [sp, #40]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_shpc_writel
	ldr	w1, [x20]
	mov	x0, x19
	bl	_shpc_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #40]
	str	x0, [sp]
Lloh117:
	adrp	x1, l_.str.13@PAGE
Lloh118:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
LBB0_26:
	mov	w21, #0
	b	LBB0_13
LBB0_27:
	ldr	w8, [sp, #40]
Lloh119:
	adrp	x9, _SLOT_NUM@GOTPAGE
Lloh120:
	ldr	x9, [x9, _SLOT_NUM@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	and	w24, w9, w8
	str	x24, [sp]
Lloh122:
	adrp	x1, l_.str.5@PAGE
Lloh123:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	cmn	w24, #8
	b.lt	LBB0_31
; %bb.28:
	mov	w22, #0
	add	w8, w24, #8
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w25, w8, #1
Lloh124:
	adrp	x23, l_.str.7@PAGE
Lloh125:
	add	x23, x23, l_.str.7@PAGEOFF
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x22
	bl	_shpc_indirect_read
	cbnz	w0, LBB0_36
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [sp, #40]
	stp	x22, x8, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_ctrl_dbg
	add	w22, w22, #1
	cmp	w25, w22
	b.ne	LBB0_29
LBB0_31:
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	ldr	w8, [sp, #44]
	add	w8, w8, w0
	str	w8, [x19]
	lsl	w8, w24, #2
	add	w0, w8, #36
	b	LBB0_3
LBB0_32:
Lloh126:
	adrp	x1, l_.str.10@PAGE
Lloh127:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_9
LBB0_33:
	ldp	w9, w8, [x19]
	stp	x8, x9, [sp]
Lloh128:
	adrp	x1, l_.str.11@PAGE
Lloh129:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	ldp	w0, w1, [x19]
	bl	_release_mem_region
	mov	w21, #-1
	b	LBB0_13
LBB0_34:
	mov	x0, x20
	bl	_pci_enable_msi
	mov	x24, x28
	mov	x25, x21
	cbz	w0, LBB0_37
; %bb.35:
Lloh130:
	adrp	x1, l_.str.15@PAGE
Lloh131:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
Lloh132:
	adrp	x1, l_.str.16@PAGE
Lloh133:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
	b	LBB0_38
LBB0_36:
	mov	x21, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh134:
	adrp	x1, l_.str.6@PAGE
Lloh135:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_37:
	mov	x0, x20
	bl	_pci_set_master
LBB0_38:
Lloh136:
	adrp	x10, _MY_NAME@GOTPAGE
Lloh137:
	ldr	x10, [x10, _MY_NAME@GOTPAGEOFF]
	mov	x28, x22
	ldr	x8, [x19, #32]
Lloh138:
	adrp	x9, _shpc_isr@GOTPAGE
Lloh139:
	ldr	x9, [x9, _shpc_isr@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh140:
	ldr	w1, [x9]
Lloh141:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh142:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh143:
	ldr	w2, [x8]
Lloh144:
	ldr	w3, [x10]
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	stp	x8, x21, [sp]
Lloh145:
	adrp	x1, l_.str.17@PAGE
Lloh146:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	cbz	w21, LBB0_21
; %bb.39:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh147:
	adrp	x1, l_.str.18@PAGE
Lloh148:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	ldr	w0, [x19, #12]
	bl	_iounmap
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh132, Lloh133
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpAdd	Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh144
	.loh AdrpAdd	Lloh147, Lloh148
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hotplug Controller:\n"

	.comm	_PCI_VENDOR_ID_AMD,4,2          ; @PCI_VENDOR_ID_AMD
	.comm	_PCI_DEVICE_ID_AMD_GOLAM_7450,4,2 ; @PCI_DEVICE_ID_AMD_GOLAM_7450
	.comm	_PCI_CAP_ID_SHPC,4,2            ; @PCI_CAP_ID_SHPC
l_.str.1:                               ; @.str.1
	.asciz	"Cannot find PCI capability\n"

l_.str.2:                               ; @.str.2
	.asciz	" cap_offset = %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot read base_offset\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot read slot config\n"

	.comm	_SLOT_NUM,4,2                   ; @SLOT_NUM
l_.str.5:                               ; @.str.5
	.asciz	" num_slots (indirect) %x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot read creg (index = %d)\n"

l_.str.7:                               ; @.str.7
	.asciz	" offset %d: value %x\n"

l_.str.8:                               ; @.str.8
	.asciz	"HPC vendor_id %x device_id %x ss_vid %x ss_did %x\n"

l_.str.9:                               ; @.str.9
	.asciz	"pci_enable_device failed\n"

	.comm	_MY_NAME,4,2                    ; @MY_NAME
l_.str.10:                              ; @.str.10
	.asciz	"Cannot reserve MMIO region\n"

l_.str.11:                              ; @.str.11
	.asciz	"Cannot remap MMIO region %lx @ %lx\n"

l_.str.12:                              ; @.str.12
	.asciz	"ctrl->creg %p\n"

	.comm	_shpchp_hpc_ops,4,2             ; @shpchp_hpc_ops
	.comm	_SLOT_CONFIG,4,2                ; @SLOT_CONFIG
	.comm	_FIRST_DEV_NUM,4,2              ; @FIRST_DEV_NUM
	.comm	_PSN,4,2                        ; @PSN
	.comm	_UPDOWN,4,2                     ; @UPDOWN
	.comm	_SERR_INTR_ENABLE,4,2           ; @SERR_INTR_ENABLE
l_.str.13:                              ; @.str.13
	.asciz	"SERR_INTR_ENABLE = %x\n"

	.comm	_GLOBAL_INTR_MASK,4,2           ; @GLOBAL_INTR_MASK
	.comm	_GLOBAL_SERR_MASK,4,2           ; @GLOBAL_SERR_MASK
	.comm	_COMMAND_INTR_MASK,4,2          ; @COMMAND_INTR_MASK
	.comm	_ARBITER_SERR_MASK,4,2          ; @ARBITER_SERR_MASK
	.comm	_SERR_INTR_RSVDZ_MASK,4,2       ; @SERR_INTR_RSVDZ_MASK
l_.str.14:                              ; @.str.14
	.asciz	"Default Logical Slot Register %d value %x\n"

	.comm	_PRSNT_CHANGE_INTR_MASK,4,2     ; @PRSNT_CHANGE_INTR_MASK
	.comm	_ISO_PFAULT_INTR_MASK,4,2       ; @ISO_PFAULT_INTR_MASK
	.comm	_BUTTON_PRESS_INTR_MASK,4,2     ; @BUTTON_PRESS_INTR_MASK
	.comm	_MRL_CHANGE_INTR_MASK,4,2       ; @MRL_CHANGE_INTR_MASK
	.comm	_CON_PFAULT_INTR_MASK,4,2       ; @CON_PFAULT_INTR_MASK
	.comm	_MRL_CHANGE_SERR_MASK,4,2       ; @MRL_CHANGE_SERR_MASK
	.comm	_CON_PFAULT_SERR_MASK,4,2       ; @CON_PFAULT_SERR_MASK
	.comm	_SLOT_REG_RSVDZ_MASK,4,2        ; @SLOT_REG_RSVDZ_MASK
	.comm	_shpchp_poll_mode,8,3           ; @shpchp_poll_mode
	.comm	_int_poll_timeout,4,2           ; @int_poll_timeout
l_.str.15:                              ; @.str.15
	.asciz	"Can't get msi for the hotplug controller\n"

l_.str.16:                              ; @.str.16
	.asciz	"Use INTx for the hotplug controller\n"

	.comm	_shpc_isr,4,2                   ; @shpc_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.17:                              ; @.str.17
	.asciz	"request_irq %d (returns %d)\n"

l_.str.18:                              ; @.str.18
	.asciz	"Can't get irq %d for the hotplug controller\n"

l_.str.19:                              ; @.str.19
	.asciz	"HPC at %s irq=%x\n"

.subsections_via_symbols
