	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_pcie_probe
_tango_pcie_probe:                      ## @tango_pcie_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_of_node_to_fwnode
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	_TAINT_CRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOCKDEP_STILL_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_add_taint
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.20:
	movq	16(%r15), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_tango_pcie_link_up
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	callq	_of_pci_dma_range_parser_init
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_of_pci_range_parser_one
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax
	addq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	addq	(%r12), %rax
	movq	_SMP8759_DOORBELL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 24(%r15)
	movq	_MSI_MAX@GOTPCREL(%rip), %r13
	cmpl	$8, (%r13)
	jl	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	movq	_SMP8759_ENABLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	(%r12), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	addq	$4, %rbx
	movl	(%r13), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	jle	LBB0_13
## %bb.14:
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	_dom_ops@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_irq_domain_create_linear
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r13
	movq	_msi_dom_info@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_pci_msi_create_irq_domain
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%r13, 8(%r15)
	movq	%r15, %rdi
	callq	_spin_lock_init
	movq	_tango_msi_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	callq	_irq_set_chained_handler_and_data
	movq	_smp8759_ecam_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_host_common_probe
	jmp	LBB0_19
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_1
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_irq_domain_remove
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$40, %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	"simultaneous PCI config and MMIO accesses may cause data corruption\n"

	.comm	_TAINT_CRAP,4,2                 ## @TAINT_CRAP
	.comm	_LOCKDEP_STILL_OK,4,2           ## @LOCKDEP_STILL_OK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SMP8759_DOORBELL,8,3           ## @SMP8759_DOORBELL
	.comm	_MSI_MAX,4,2                    ## @MSI_MAX
	.comm	_SMP8759_ENABLE,8,3             ## @SMP8759_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to map IRQ\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_dom_ops,4,2                    ## @dom_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create IRQ domain\n"

	.comm	_msi_dom_info,4,2               ## @msi_dom_info
L_.str.3:                               ## @.str.3
	.asciz	"Failed to create MSI domain\n"

	.comm	_tango_msi_isr,4,2              ## @tango_msi_isr
	.comm	_smp8759_ecam_ops,4,2           ## @smp8759_ecam_ops
	.no_dead_strip	_tango_pcie_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tango_pcie_probe
_tango_pcie_probe:                      ; @tango_pcie_probe
	.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
	ldr	w0, [x0]
	bl	_of_node_to_fwnode
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh2:
	adrp	x8, _TAINT_CRAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAINT_CRAP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _LOCKDEP_STILL_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOCKDEP_STILL_OK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_add_taint
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_18
; %bb.1:
	mov	x21, x0
Lloh11:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x21, #16]
	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	_PTR_ERR
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x21
	bl	_tango_pcie_link_up
	cbz	w0, LBB0_14
; %bb.4:
	ldr	w1, [x19]
	add	x0, sp, #24
	bl	_of_pci_dma_range_parser_init
	tbnz	x0, #63, LBB0_13
; %bb.5:
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_of_pci_range_parser_one
	cbz	x0, LBB0_13
; %bb.6:
	ldp	x9, x8, [sp, #8]
	add	x8, x9, x8
	str	x8, [sp, #8]
	ldr	x9, [x22]
	add	x8, x9, x8
Lloh14:
	adrp	x9, _SMP8759_DOORBELL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SMP8759_DOORBELL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x8, x8, x9
	str	x8, [x21, #24]
Lloh17:
	adrp	x23, _MSI_MAX@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MSI_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #8
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
Lloh19:
	adrp	x24, _SMP8759_ENABLE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _SMP8759_ENABLE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x24]
	add	x8, x8, x9
	add	x1, x22, x8
	mov	w0, #0
	bl	_writel_relaxed
	add	x22, x22, #4
	ldr	w8, [x23]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	x22, w8, sxtw
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	bl	_platform_get_irq
	cmp	w0, #0
	b.le	LBB0_15
; %bb.10:
	mov	x22, x0
	ldr	w1, [x23]
Lloh21:
	adrp	x2, _dom_ops@GOTPAGE
Lloh22:
	ldr	x2, [x2, _dom_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x3, x21
	bl	_irq_domain_create_linear
	cbz	x0, LBB0_16
; %bb.11:
	mov	x23, x0
Lloh23:
	adrp	x1, _msi_dom_info@GOTPAGE
Lloh24:
	ldr	x1, [x1, _msi_dom_info@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x23
	bl	_pci_msi_create_irq_domain
	cbz	x0, LBB0_17
; %bb.12:
	str	x23, [x21, #8]
	mov	x0, x21
	bl	_spin_lock_init
Lloh25:
	adrp	x8, _tango_msi_isr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tango_msi_isr@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_irq_set_chained_handler_and_data
Lloh28:
	adrp	x1, _smp8759_ecam_ops@GOTPAGE
Lloh29:
	ldr	x1, [x1, _smp8759_ecam_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_pci_host_common_probe
	b	LBB0_20
LBB0_13:
Lloh30:
	adrp	x8, _ENOENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_14:
Lloh32:
	adrp	x8, _ENODEV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _ENXIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
LBB0_17:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	bl	_irq_domain_remove
LBB0_18:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"simultaneous PCI config and MMIO accesses may cause data corruption\n"

	.comm	_TAINT_CRAP,4,2                 ; @TAINT_CRAP
	.comm	_LOCKDEP_STILL_OK,4,2           ; @LOCKDEP_STILL_OK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SMP8759_DOORBELL,8,3           ; @SMP8759_DOORBELL
	.comm	_MSI_MAX,4,2                    ; @MSI_MAX
	.comm	_SMP8759_ENABLE,8,3             ; @SMP8759_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to map IRQ\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_dom_ops,4,2                    ; @dom_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create IRQ domain\n"

	.comm	_msi_dom_info,4,2               ; @msi_dom_info
l_.str.3:                               ; @.str.3
	.asciz	"Failed to create MSI domain\n"

	.comm	_tango_msi_isr,4,2              ; @tango_msi_isr
	.comm	_smp8759_ecam_ops,4,2           ; @smp8759_ecam_ops
	.no_dead_strip	_tango_pcie_probe
.subsections_via_symbols
