	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_pci_aspm_init
_ath_pci_aspm_init:                     ## @ath_pci_aspm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	movl	(%rax), %edi
	callq	_to_pci_dev
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_ath9k_hw_get_btcoex_scheme
	movq	_ATH_BTCOEX_CFG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_AR_SREV_9285
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PCI_EXP_LNKCTL_ASPM_L0S@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_LNKCTL_ASPM_L1@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_pcie_capability_clear_word
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_PCI_EXP_LNKCTL_ASPM_L0S@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_pcie_capability_clear_word
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_info                       ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	4(%rbx), %rdx
	movq	%r12, %rdi
	movl	$1804, %esi                     ## imm = 0x70C
	callq	_pci_read_config_dword
LBB0_6:
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_LNKCTL_ASPM_L0S@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_LNKCTL_ASPM_L1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -44(%rbp)
	je	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_configpcipowersave
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_info
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_BTCOEX_CFG_NONE,8,3        ## @ATH_BTCOEX_CFG_NONE
	.comm	_PCI_EXP_LNKCTL,4,2             ## @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_LNKCTL_ASPM_L0S,4,2    ## @PCI_EXP_LNKCTL_ASPM_L0S
	.comm	_PCI_EXP_LNKCTL_ASPM_L1,4,2     ## @PCI_EXP_LNKCTL_ASPM_L1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling ASPM since BTCOEX is enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"ASPM enabled: 0x%x\n"

	.no_dead_strip	_ath_pci_aspm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_pci_aspm_init
_ath_pci_aspm_init:                     ; @ath_pci_aspm_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	ldr	w0, [x8]
	bl	_to_pci_dev
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	cbz	x21, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_ath9k_hw_get_btcoex_scheme
Lloh0:
	adrp	x8, _ATH_BTCOEX_CFG_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_BTCOEX_CFG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_AR_SREV_9285
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x20, _PCI_EXP_LNKCTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PCI_EXP_LNKCTL@GOTPAGEOFF]
Lloh5:
	adrp	x23, _PCI_EXP_LNKCTL_ASPM_L0S@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PCI_EXP_LNKCTL_ASPM_L0S@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _PCI_EXP_LNKCTL_ASPM_L1@GOTPAGE
Lloh8:
	ldr	x24, [x24, _PCI_EXP_LNKCTL_ASPM_L1@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x22
	bl	_pcie_capability_clear_word
	ldr	w1, [x20]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_pcie_capability_clear_word
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ath_info
LBB0_5:
	mov	x0, x20
	bl	_AR_SREV_9462
	cbz	x0, LBB0_7
; %bb.6:
	add	x2, x20, #4
	mov	x0, x22
	mov	w1, #1804
	bl	_pci_read_config_dword
LBB0_7:
Lloh11:
	adrp	x8, _PCI_EXP_LNKCTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_EXP_LNKCTL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_pcie_capability_read_word
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _PCI_EXP_LNKCTL_ASPM_L0S@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_EXP_LNKCTL_ASPM_L0S@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _PCI_EXP_LNKCTL_ASPM_L1@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PCI_EXP_LNKCTL_ASPM_L1@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_ath9k_hw_configpcipowersave
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath_info
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_BTCOEX_CFG_NONE,8,3        ; @ATH_BTCOEX_CFG_NONE
	.comm	_PCI_EXP_LNKCTL,4,2             ; @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_LNKCTL_ASPM_L0S,4,2    ; @PCI_EXP_LNKCTL_ASPM_L0S
	.comm	_PCI_EXP_LNKCTL_ASPM_L1,4,2     ; @PCI_EXP_LNKCTL_ASPM_L1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling ASPM since BTCOEX is enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"ASPM enabled: 0x%x\n"

	.no_dead_strip	_ath_pci_aspm_init
.subsections_via_symbols
