	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpc_probe
_dpc_probe:                             ## @dpc_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_pcie_aer_get_firmware_first
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	4(%r13), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_PCI_EXT_CAP_ID_DPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_find_ext_capability
	movq	%rax, 8(%r15)
	movq	%r13, 16(%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_set_service_data
	movl	(%r13), %esi
	movq	_dpc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dpc_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %r9
	movq	%r12, %rdi
	pushq	%r15
	callq	_devm_request_threaded_irq
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_pci_warn
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_PCI_EXP_DPC_CAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_EXP_DPC_CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_EXP_DPC_CAP_RP_EXT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	-44(%rbp), %eax
	movl	%eax, (%r15)
	je	LBB0_10
## %bb.8:
	movq	_PCI_EXP_DPC_RP_PIO_LOG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movl	%eax, %edx
	sarl	$8, %edx
	movl	%edx, 4(%r15)
	addl	$-2560, %eax                    ## imm = 0xF600
	cmpl	$-1537, %eax                    ## imm = 0xF9FF
	ja	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_err
	movl	$0, 4(%r15)
LBB0_10:
	movl	$65524, %edx                    ## imm = 0xFFF4
	andl	-48(%rbp), %edx
	movq	_PCI_EXP_DPC_CTL_EN_FATAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PCI_EXP_DPC_CTL_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -48(%rbp)
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_write_config_word
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_DPC_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%edi, %ebx
	movl	(%r12), %esi
	callq	_FLAG
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_DPC_CAP_POISONED_TLP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, %r13d
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_DPC_CAP_SW_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, %r12d
	movl	4(%r15), %r15d
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_DPC_CAP_DL_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r15
	callq	_pci_info
	addq	$16, %rsp
	movq	_PCI_EXT_CAP_ID_DPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_pci_add_ext_cap_save_buffer
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_EXT_CAP_ID_DPC,4,2         ## @PCI_EXT_CAP_ID_DPC
	.comm	_dpc_irq,4,2                    ## @dpc_irq
	.comm	_dpc_handler,4,2                ## @dpc_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcie-dpc"

L_.str.1:                               ## @.str.1
	.asciz	"request IRQ%d failed: %d\n"

	.comm	_PCI_EXP_DPC_CAP,8,3            ## @PCI_EXP_DPC_CAP
	.comm	_PCI_EXP_DPC_CTL,8,3            ## @PCI_EXP_DPC_CTL
	.comm	_PCI_EXP_DPC_CAP_RP_EXT,4,2     ## @PCI_EXP_DPC_CAP_RP_EXT
	.comm	_PCI_EXP_DPC_RP_PIO_LOG_SIZE,4,2 ## @PCI_EXP_DPC_RP_PIO_LOG_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"RP PIO log size %u is invalid\n"

	.comm	_PCI_EXP_DPC_CTL_EN_FATAL,4,2   ## @PCI_EXP_DPC_CTL_EN_FATAL
	.comm	_PCI_EXP_DPC_CTL_INT_EN,4,2     ## @PCI_EXP_DPC_CTL_INT_EN
L_.str.3:                               ## @.str.3
	.asciz	"error containment capabilities: Int Msg #%d, RPExt%c PoisonedTLP%c SwTrigger%c RP PIO Log %d, DL_ActiveErr%c\n"

	.comm	_PCI_EXP_DPC_IRQ,4,2            ## @PCI_EXP_DPC_IRQ
	.comm	_PCI_EXP_DPC_CAP_POISONED_TLP,4,2 ## @PCI_EXP_DPC_CAP_POISONED_TLP
	.comm	_PCI_EXP_DPC_CAP_SW_TRIGGER,4,2 ## @PCI_EXP_DPC_CAP_SW_TRIGGER
	.comm	_PCI_EXP_DPC_CAP_DL_ACTIVE,4,2  ## @PCI_EXP_DPC_CAP_DL_ACTIVE
	.no_dead_strip	_dpc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpc_probe
_dpc_probe:                             ; @dpc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_pcie_aer_get_firmware_first
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	add	x22, x21, #4
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh5:
	adrp	x25, _PCI_EXT_CAP_ID_DPC@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PCI_EXT_CAP_ID_DPC@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_pci_find_ext_capability
	stp	x0, x21, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_set_service_data
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _dpc_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dpc_irq@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _dpc_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dpc_handler@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x5, l_.str@PAGE
Lloh17:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x22
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	ldr	w2, [x21]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_pci_warn
	b	LBB0_3
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	ldr	x8, [x20, #8]
Lloh22:
	adrp	x9, _PCI_EXP_DPC_CAP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PCI_EXP_DPC_CAP@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	x8, [x20, #8]
Lloh25:
	adrp	x21, _PCI_EXP_DPC_CTL@GOTPAGE
Lloh26:
	ldr	x21, [x21, _PCI_EXP_DPC_CTL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
Lloh27:
	adrp	x22, _PCI_EXP_DPC_CAP_RP_EXT@GOTPAGE
Lloh28:
	ldr	x22, [x22, _PCI_EXP_DPC_CAP_RP_EXT@GOTPAGEOFF]
	ldr	w9, [x22]
	ands	w8, w9, w8
	str	w8, [x20]
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [sp, #8]
Lloh29:
	adrp	x9, _PCI_EXP_DPC_RP_PIO_LOG_SIZE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PCI_EXP_DPC_RP_PIO_LOG_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	and	w8, w9, w8
	asr	w2, w8, #8
	str	w2, [x20, #4]
	sub	w8, w8, #2560
	cmn	w8, #1537
	b.hi	LBB0_11
; %bb.10:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_pci_err
	str	wzr, [x20, #4]
LBB0_11:
	ldr	w8, [sp, #12]
	mov	w9, #65524
	and	w8, w8, w9
Lloh34:
	adrp	x9, _PCI_EXP_DPC_CTL_EN_FATAL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PCI_EXP_DPC_CTL_EN_FATAL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _PCI_EXP_DPC_CTL_INT_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PCI_EXP_DPC_CTL_INT_EN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_pci_write_config_word
	ldr	w0, [sp, #8]
Lloh40:
	adrp	x8, _PCI_EXP_DPC_IRQ@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCI_EXP_DPC_IRQ@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	w1, [x22]
	bl	_FLAG
	mov	x22, x0
	ldr	w0, [sp, #8]
Lloh43:
	adrp	x8, _PCI_EXP_DPC_CAP_POISONED_TLP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCI_EXP_DPC_CAP_POISONED_TLP@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x23, x0
	ldr	w0, [sp, #8]
Lloh46:
	adrp	x8, _PCI_EXP_DPC_CAP_SW_TRIGGER@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PCI_EXP_DPC_CAP_SW_TRIGGER@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x24, x0
	ldr	w20, [x20, #4]
	ldr	w0, [sp, #8]
Lloh49:
	adrp	x8, _PCI_EXP_DPC_CAP_DL_ACTIVE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PCI_EXP_DPC_CAP_DL_ACTIVE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x7, x0
Lloh52:
	adrp	x1, l_.str.3@PAGE
Lloh53:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x20
	bl	_pci_info
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #4
	bl	_pci_add_ext_cap_save_buffer
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_EXT_CAP_ID_DPC,4,2         ; @PCI_EXT_CAP_ID_DPC
	.comm	_dpc_irq,4,2                    ; @dpc_irq
	.comm	_dpc_handler,4,2                ; @dpc_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcie-dpc"

l_.str.1:                               ; @.str.1
	.asciz	"request IRQ%d failed: %d\n"

	.comm	_PCI_EXP_DPC_CAP,8,3            ; @PCI_EXP_DPC_CAP
	.comm	_PCI_EXP_DPC_CTL,8,3            ; @PCI_EXP_DPC_CTL
	.comm	_PCI_EXP_DPC_CAP_RP_EXT,4,2     ; @PCI_EXP_DPC_CAP_RP_EXT
	.comm	_PCI_EXP_DPC_RP_PIO_LOG_SIZE,4,2 ; @PCI_EXP_DPC_RP_PIO_LOG_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"RP PIO log size %u is invalid\n"

	.comm	_PCI_EXP_DPC_CTL_EN_FATAL,4,2   ; @PCI_EXP_DPC_CTL_EN_FATAL
	.comm	_PCI_EXP_DPC_CTL_INT_EN,4,2     ; @PCI_EXP_DPC_CTL_INT_EN
l_.str.3:                               ; @.str.3
	.asciz	"error containment capabilities: Int Msg #%d, RPExt%c PoisonedTLP%c SwTrigger%c RP PIO Log %d, DL_ActiveErr%c\n"

	.comm	_PCI_EXP_DPC_IRQ,4,2            ; @PCI_EXP_DPC_IRQ
	.comm	_PCI_EXP_DPC_CAP_POISONED_TLP,4,2 ; @PCI_EXP_DPC_CAP_POISONED_TLP
	.comm	_PCI_EXP_DPC_CAP_SW_TRIGGER,4,2 ; @PCI_EXP_DPC_CAP_SW_TRIGGER
	.comm	_PCI_EXP_DPC_CAP_DL_ACTIVE,4,2  ; @PCI_EXP_DPC_CAP_DL_ACTIVE
	.no_dead_strip	_dpc_probe
.subsections_via_symbols
