	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_scfg_msi_probe
_ls_scfg_msi_probe:                     ## @ls_scfg_msi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ls_scfg_msi_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, 32(%r15)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	60(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, 56(%r15)
	movq	%r14, 48(%r15)
	movq	%r15, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	_MSI_IRQS_PER_MSIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r15), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movl	%edi, (%r15)
	callq	_BITS_TO_LONGS
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movl	(%r15), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_bitmap_set
	movl	(%r14), %edi
	callq	_of_irq_count
	movq	%rax, 8(%r15)
	movq	_msi_affinity_flag@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_num_possible_cpus
	movq	%rax, %rcx
	movq	8(%r15), %rax
	cmpq	%rcx, %rax
	jge	LBB0_9
## %bb.10:
	movq	$0, (%rbx)
	jmp	LBB0_11
LBB0_9:
	movq	%rcx, 8(%r15)
	movq	%rcx, %rax
LBB0_11:
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	cmpq	$0, 8(%r15)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ls_scfg_msi_setup_hwirq
	incq	%rbx
	cmpq	%rbx, 8(%r15)
	jg	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_ls_scfg_msi_domains_init
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ls_scfg_msi_id,4,2             ## @ls_scfg_msi_id
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize 'regs'\n"

	.comm	_MSI_IRQS_PER_MSIR,4,2          ## @MSI_IRQS_PER_MSIR
	.comm	_msi_affinity_flag,8,3          ## @msi_affinity_flag
	.no_dead_strip	_ls_scfg_msi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_scfg_msi_probe
_ls_scfg_msi_probe:                     ; @ls_scfg_msi_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ls_scfg_msi_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ls_scfg_msi_id@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0, #32]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #60]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
	ldr	w8, [x21]
	str	w8, [x20, #56]
	str	x19, [x20, #48]
	add	x0, x20, #40
	bl	_spin_lock_init
Lloh12:
	adrp	x8, _MSI_IRQS_PER_MSIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSI_IRQS_PER_MSIR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
	ldr	w9, [x9]
	lsl	w0, w8, w9
	str	w0, [x20]
	bl	_BITS_TO_LONGS
	mov	x1, x0
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_17
; %bb.6:
	ldr	w2, [x20]
	mov	w1, #0
	bl	_bitmap_set
	ldr	w0, [x19]
	bl	_of_irq_count
	str	x0, [x20, #8]
Lloh15:
	adrp	x21, _msi_affinity_flag@GOTPAGE
Lloh16:
	ldr	x21, [x21, _msi_affinity_flag@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_num_possible_cpus
	ldr	x8, [x20, #8]
	cmp	x8, x0
	b.ge	LBB0_10
; %bb.8:
	str	xzr, [x21]
	mov	x1, x8
	b	LBB0_11
LBB0_9:
	mov	x1, x0
	b	LBB0_11
LBB0_10:
	mov	x1, x0
	str	x0, [x20, #8]
LBB0_11:
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_17
; %bb.12:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ls_scfg_msi_setup_hwirq
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.gt	LBB0_14
LBB0_15:
	mov	x0, x20
	bl	_ls_scfg_msi_domains_init
	cbnz	w0, LBB0_19
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_19
LBB0_17:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ls_scfg_msi_id,4,2             ; @ls_scfg_msi_id
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize 'regs'\n"

	.comm	_MSI_IRQS_PER_MSIR,4,2          ; @MSI_IRQS_PER_MSIR
	.comm	_msi_affinity_flag,8,3          ; @msi_affinity_flag
	.no_dead_strip	_ls_scfg_msi_probe
.subsections_via_symbols
