	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_pci_init_check_aspm
_alcor_pci_init_check_aspm:             ## @alcor_pci_init_check_aspm
	.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
	movq	%rdi, %rbx
	movq	32(%rdi), %rsi
	callq	_alcor_pci_find_cap_offset
	movl	%eax, (%rbx)
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_alcor_pci_find_cap_offset
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	32(%rbx), %rdi
	movq	_ALCOR_PCIE_LINK_CAP_OFFSET@GOTPCREL(%rip), %r15
	addl	(%r15), %edx
	leaq	-28(%rbp), %r14
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %eax
	shrl	$10, %eax
	andl	$3, %eax
	movl	%eax, 8(%rbx)
	movq	24(%rbx), %rdi
	movl	(%r15), %esi
	addl	4(%rbx), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %ecx
	shrl	$10, %ecx
	andl	$3, %ecx
	movl	%ecx, 12(%rbx)
	movl	8(%rbx), %edx
	cmpl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	12(%rbx), %ecx
	andl	8(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%ecx, 12(%rbx)
LBB0_4:
	movl	16(%rbx), %edx
	movl	20(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	8(%rbx), %eax
	andl	%eax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_cap_off: %x, parent_cap_off: %x\n"

	.comm	_ALCOR_PCIE_LINK_CAP_OFFSET,4,2 ## @ALCOR_PCIE_LINK_CAP_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"pdev_aspm_cap: %x, parent_aspm_cap: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"ext_config_dev_aspm: %x, pdev_aspm_cap: %x\n"

	.no_dead_strip	_alcor_pci_init_check_aspm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_pci_init_check_aspm
_alcor_pci_init_check_aspm:             ; @alcor_pci_init_check_aspm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x1, [x0, #32]
	bl	_alcor_pci_find_cap_offset
	str	w0, [x19]
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_alcor_pci_find_cap_offset
	mov	x3, x0
	str	w3, [x19, #4]
	ldr	w2, [x19]
	cmp	w2, #0
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_dev_dbg
LBB0_2:
	ldr	x0, [x19, #32]
Lloh2:
	adrp	x20, _ALCOR_PCIE_LINK_CAP_OFFSET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ALCOR_PCIE_LINK_CAP_OFFSET@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w1, w8, w2
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #10, #2
	str	w8, [x19, #8]
	ldr	x0, [x19, #24]
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	add	w1, w9, w8
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	ubfx	w3, w8, #10, #2
	str	w3, [x19, #12]
	ldr	w2, [x19, #8]
	cmp	w2, w3
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldp	w8, w9, [x19, #8]
	and	w3, w9, w8
	stp	w3, w3, [x19, #8]
LBB0_4:
	ldp	w2, w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	and	w8, w9, w8
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_cap_off: %x, parent_cap_off: %x\n"

	.comm	_ALCOR_PCIE_LINK_CAP_OFFSET,4,2 ; @ALCOR_PCIE_LINK_CAP_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"pdev_aspm_cap: %x, parent_aspm_cap: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"ext_config_dev_aspm: %x, pdev_aspm_cap: %x\n"

	.no_dead_strip	_alcor_pci_init_check_aspm
.subsections_via_symbols
