	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_pci_aspm_ctrl
_alcor_pci_aspm_ctrl:                   ## @alcor_pci_aspm_ctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.4:
	cmpl	$0, 8(%rbx)
	je	LBB0_9
## %bb.5:
	testl	%esi, %esi
	je	LBB0_6
## %bb.7:
	movl	12(%rbx), %r15d
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.10:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	_ALCOR_PCIE_LINK_CTRL_OFFSET@GOTPCREL(%rip), %r13
	addl	(%r13), %r14d
	movq	16(%rbx), %r12
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pci_read_config_dword
	movl	-44(%rbp), %eax
	andl	$-4, %eax
	movl	8(%rbx), %edx
	andl	%r15d, %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pci_write_config_byte
	movl	(%r13), %r14d
	addl	4(%rbx), %r14d
	movq	24(%rbx), %r12
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %eax
	andl	$-4, %eax
	andl	8(%rbx), %r15d
	orl	%eax, %r15d
	movl	%r15d, -44(%rbp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_pci_write_config_byte
LBB0_9:
	addq	$8, %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	"pci_cap_off: %x, parent_cap_off: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"aspm_ctrl == 0\n"

	.comm	_ALCOR_PCIE_LINK_CTRL_OFFSET,4,2 ## @ALCOR_PCIE_LINK_CTRL_OFFSET
	.no_dead_strip	_alcor_pci_aspm_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_pci_aspm_ctrl
_alcor_pci_aspm_ctrl:                   ; @alcor_pci_aspm_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	cbz	w9, LBB0_6
; %bb.2:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_9
; %bb.3:
	cbz	w1, LBB0_7
; %bb.4:
	ldr	w22, [x19, #12]
	cbnz	w22, LBB0_8
; %bb.5:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_dbg
LBB0_6:
	ldr	w0, [x19, #32]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_9
LBB0_7:
	mov	w22, #0
LBB0_8:
Lloh4:
	adrp	x23, _ALCOR_PCIE_LINK_CTRL_OFFSET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ALCOR_PCIE_LINK_CTRL_OFFSET@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w20, w9, w8
	ldr	x21, [x19, #16]
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_pci_read_config_dword
	ldr	w8, [sp, #28]
	and	w8, w8, #0xfffffffc
	ldr	w9, [x19, #8]
	and	w9, w9, w22
	orr	w2, w9, w8
	str	w2, [sp, #28]
	mov	x0, x21
	mov	x1, x20
	bl	_pci_write_config_byte
	ldr	w8, [x19, #4]
	ldr	w9, [x23]
	add	w20, w9, w8
	ldr	x21, [x19, #24]
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_pci_read_config_dword
	ldr	w8, [sp, #28]
	and	w8, w8, #0xfffffffc
	ldr	w9, [x19, #8]
	and	w9, w9, w22
	orr	w2, w9, w8
	str	w2, [sp, #28]
	mov	x0, x21
	mov	x1, x20
	bl	_pci_write_config_byte
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_cap_off: %x, parent_cap_off: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"aspm_ctrl == 0\n"

	.comm	_ALCOR_PCIE_LINK_CTRL_OFFSET,4,2 ; @ALCOR_PCIE_LINK_CTRL_OFFSET
	.no_dead_strip	_alcor_pci_aspm_ctrl
.subsections_via_symbols
