	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnv_php_disable_irq
_pnv_php_disable_irq:                   ## @pnv_php_disable_irq
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	movq	_PCI_EXP_SLTCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_SLTCTL_HPIE@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTCTL_PDCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PCI_EXP_SLTCTL_DLLSCE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_pcie_capability_write_word
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	$0, (%rbx)
LBB0_2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_destroy_workqueue
	movq	$0, 8(%rbx)
LBB0_4:
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:
	testl	%r12d, %r12d
	jle	LBB0_11
LBB0_6:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_pci_disable_msix
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_pci_disable_msi
LBB0_10:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_SLTCTL,4,2             ## @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_SLTCTL_HPIE,4,2        ## @PCI_EXP_SLTCTL_HPIE
	.comm	_PCI_EXP_SLTCTL_PDCE,4,2        ## @PCI_EXP_SLTCTL_PDCE
	.comm	_PCI_EXP_SLTCTL_DLLSCE,4,2      ## @PCI_EXP_SLTCTL_DLLSCE
	.no_dead_strip	_pnv_php_disable_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnv_php_disable_irq
_pnv_php_disable_irq:                   ; @pnv_php_disable_irq
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	w22, [x0]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _PCI_EXP_SLTCTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCI_EXP_SLTCTL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh2:
	adrp	x8, _PCI_EXP_SLTCTL_HPIE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_EXP_SLTCTL_HPIE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PCI_EXP_SLTCTL_PDCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_EXP_SLTCTL_PDCE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _PCI_EXP_SLTCTL_DLLSCE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_EXP_SLTCTL_DLLSCE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pcie_capability_write_word
	ldr	w0, [x21]
	mov	x1, x21
	bl	_free_irq
	str	wzr, [x21]
LBB0_2:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_destroy_workqueue
	str	xzr, [x21, #8]
LBB0_4:
	cbnz	w20, LBB0_6
; %bb.5:
	cmp	w22, #1
	b.lt	LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pci_disable_msix
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_pci_disable_msi
LBB0_10:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_11:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_SLTCTL,4,2             ; @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_SLTCTL_HPIE,4,2        ; @PCI_EXP_SLTCTL_HPIE
	.comm	_PCI_EXP_SLTCTL_PDCE,4,2        ; @PCI_EXP_SLTCTL_PDCE
	.comm	_PCI_EXP_SLTCTL_DLLSCE,4,2      ; @PCI_EXP_SLTCTL_DLLSCE
	.no_dead_strip	_pnv_php_disable_irq
.subsections_via_symbols
