	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pciehp_ist
_pciehp_ist:                            ## @pciehp_ist
	.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	%rsi, %r12
	movl	%edi, %r15d
	movq	%rsi, %rdi
	callq	_ctrl_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_config_pm_runtime_get
	movq	_RERUN_ISR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	notl	%edi
	leaq	12(%r12), %r13
	movq	%r13, %rsi
	callq	_atomic_fetch_and
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_pciehp_isr
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_enable_irq
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
LBB0_3:
	movl	%r15d, %edi
	callq	_synchronize_hardirq
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_atomic_xchg
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	_PCI_EXP_SLTSTA_ABP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_slot_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	%r12, %rdi
	callq	_pciehp_handle_button_press
LBB0_7:
	movq	_PCI_EXP_SLTSTA_PFD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.8:
	cmpl	$0, (%r12)
	jne	LBB0_10
## %bb.9:
	movl	$1, (%r12)
	movq	%r12, %rdi
	callq	_slot_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ctrl_err
	movq	_PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_EXP_SLTCTL_ATTN_IND_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_pciehp_set_indicators
LBB0_10:
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_down_read
	movq	_DISABLE_SLOT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_pciehp_handle_disable_request
	jmp	LBB0_14
LBB0_2:
	movq	%r14, %rdi
	callq	_pci_config_pm_runtime_put
	jmp	LBB0_16
LBB0_4:
	movq	%r14, %rdi
	callq	_pci_config_pm_runtime_put
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_PCI_EXP_SLTSTA_PDC@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTSTA_DLLSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pciehp_handle_presence_or_link_change
LBB0_14:
	movq	%rbx, %rdi
	callq	_up_read
	movq	%r14, %rdi
	callq	_pci_config_pm_runtime_put
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_wake_up
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RERUN_ISR,4,2                  ## @RERUN_ISR
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_PCI_EXP_SLTSTA_ABP,4,2         ## @PCI_EXP_SLTSTA_ABP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slot(%s): Attention button pressed\n"

	.comm	_PCI_EXP_SLTSTA_PFD,4,2         ## @PCI_EXP_SLTSTA_PFD
L_.str.1:                               ## @.str.1
	.asciz	"Slot(%s): Power fault\n"

	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ## @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_PCI_EXP_SLTCTL_ATTN_IND_ON,4,2 ## @PCI_EXP_SLTCTL_ATTN_IND_ON
	.comm	_DISABLE_SLOT,4,2               ## @DISABLE_SLOT
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ## @PCI_EXP_SLTSTA_PDC
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ## @PCI_EXP_SLTSTA_DLLSC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_pciehp_ist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pciehp_ist
_pciehp_ist:                            ; @pciehp_ist
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_ctrl_dev
	mov	x20, x0
	bl	_pci_config_pm_runtime_get
Lloh0:
	adrp	x23, _RERUN_ISR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RERUN_ISR@GOTPAGEOFF]
	ldr	w8, [x23]
	mvn	w0, w8
	add	x22, x19, #12
	mov	x1, x22
	bl	_atomic_fetch_and
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_pciehp_isr
	mov	x23, x0
	mov	x0, x21
	bl	_enable_irq
Lloh2:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_10
LBB0_2:
	mov	x0, x21
	bl	_synchronize_hardirq
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_xchg
	cbz	w0, LBB0_11
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x8, _PCI_EXP_SLTSTA_ABP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_EXP_SLTSTA_ABP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
	mov	x0, x19
	bl	_pciehp_handle_button_press
LBB0_5:
Lloh10:
	adrp	x8, _PCI_EXP_SLTSTA_PFD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCI_EXP_SLTSTA_PFD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
Lloh15:
	adrp	x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _PCI_EXP_SLTCTL_ATTN_IND_ON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCI_EXP_SLTCTL_ATTN_IND_ON@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pciehp_set_indicators
LBB0_8:
	add	x22, x19, #8
	mov	x0, x22
	bl	_down_read
Lloh21:
	adrp	x8, _DISABLE_SLOT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DISABLE_SLOT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_pciehp_handle_disable_request
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_pci_config_pm_runtime_put
	b	LBB0_16
LBB0_11:
	mov	x0, x20
	bl	_pci_config_pm_runtime_put
Lloh24:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh26:
	adrp	x8, _PCI_EXP_SLTSTA_PDC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCI_EXP_SLTSTA_PDC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _PCI_EXP_SLTSTA_DLLSC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_DLLSC@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	bl	_pciehp_handle_presence_or_link_change
LBB0_14:
	mov	x0, x22
	bl	_up_read
	mov	x0, x20
	bl	_pci_config_pm_runtime_put
	add	x0, x19, #4
	bl	_wake_up
Lloh32:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_15:
	ldr	w23, [x8]
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RERUN_ISR,4,2                  ; @RERUN_ISR
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_PCI_EXP_SLTSTA_ABP,4,2         ; @PCI_EXP_SLTSTA_ABP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slot(%s): Attention button pressed\n"

	.comm	_PCI_EXP_SLTSTA_PFD,4,2         ; @PCI_EXP_SLTSTA_PFD
l_.str.1:                               ; @.str.1
	.asciz	"Slot(%s): Power fault\n"

	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ; @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_PCI_EXP_SLTCTL_ATTN_IND_ON,4,2 ; @PCI_EXP_SLTCTL_ATTN_IND_ON
	.comm	_DISABLE_SLOT,4,2               ; @DISABLE_SLOT
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ; @PCI_EXP_SLTSTA_PDC
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ; @PCI_EXP_SLTSTA_DLLSC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_pciehp_ist
.subsections_via_symbols
