	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stratix10_svc_drv_probe
_stratix10_svc_drv_probe:               ## @stratix10_svc_drv_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_get_invoke_func
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r12
	movq	%r15, (%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_svc_get_sh_memory
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_svc_create_memory_pool
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %rbx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r12
	movq	_SVC_NUM_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_devm_kmalloc_array
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%r14, 64(%r12)
	movq	_SVC_NUM_CHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r12)
	movq	$0, 48(%r12)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 40(%r12)
	movq	%rbx, 32(%r12)
	movq	$0, 24(%r12)
	movq	%r15, 16(%r12)
	leaq	12(%r12), %rdi
	callq	_init_completion
	movq	_SVC_NUM_DATA_IN_FIFO@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	leaq	8(%r12), %rdi
	movl	(%r13), %edx
	callq	_kfifo_alloc
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_9:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	_SVC_CLIENT_FPGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	$0, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	_SVC_CLIENT_RSU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	callq	_spin_lock_init
	movq	_svc_ctrl@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r15
	movq	_STRATIX10_RSU@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_platform_device_alloc
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movl	%eax, %edi
	callq	_platform_device_add
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_platform_device_put
	jmp	LBB0_16
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SVC_NUM_CHANNEL,4,2            ## @SVC_NUM_CHANNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_SVC_NUM_DATA_IN_FIFO,4,2       ## @SVC_NUM_DATA_IN_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate FIFO\n"

	.comm	_SVC_CLIENT_FPGA,4,2            ## @SVC_CLIENT_FPGA
	.comm	_SVC_CLIENT_RSU,4,2             ## @SVC_CLIENT_RSU
	.comm	_svc_ctrl,4,2                   ## @svc_ctrl
	.comm	_STRATIX10_RSU,4,2              ## @STRATIX10_RSU
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate %s device\n"

L_.str.2:                               ## @.str.2
	.asciz	"Intel Service Layer Driver Initialized\n"

	.no_dead_strip	_stratix10_svc_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stratix10_svc_drv_probe
_stratix10_svc_drv_probe:               ; @stratix10_svc_drv_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	x19, x0
	bl	_get_invoke_func
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
	str	x21, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_svc_get_sh_memory
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_svc_create_memory_pool
	cbz	x0, LBB0_14
; %bb.5:
	mov	x22, x0
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.6:
	mov	x20, x0
Lloh4:
	adrp	x25, _SVC_NUM_CHANNEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SVC_NUM_CHANNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w8, [x24]
Lloh6:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #24
	bl	_devm_kmalloc_array
	cbz	x0, LBB0_14
; %bb.7:
	mov	x23, x0
	str	x19, [x20, #64]
	ldr	w8, [x25]
	str	w8, [x20, #56]
	stp	x0, xzr, [x20, #40]
	stp	xzr, x22, [x20, #24]
	str	x21, [x20, #16]
	add	x0, x20, #12
	bl	_init_completion
Lloh9:
	adrp	x8, _SVC_NUM_DATA_IN_FIFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVC_NUM_DATA_IN_FIFO@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	lsl	x1, x8, #2
	add	x0, x20, #8
	ldr	w2, [x24]
	bl	_kfifo_alloc
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
LBB0_9:
	add	x0, x20, #4
	bl	_spin_lock_init
	stp	x20, xzr, [x23, #8]
Lloh14:
	adrp	x8, _SVC_CLIENT_FPGA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVC_CLIENT_FPGA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	mov	x0, x23
	bl	_spin_lock_init
	add	x0, x23, #24
	stp	x20, xzr, [x23, #32]
Lloh17:
	adrp	x8, _SVC_CLIENT_RSU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVC_CLIENT_RSU@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x23, #28]
	bl	_spin_lock_init
Lloh20:
	adrp	x1, _svc_ctrl@GOTPAGE
Lloh21:
	ldr	x1, [x1, _svc_ctrl@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.10:
	mov	x20, x0
Lloh22:
	adrp	x21, _STRATIX10_RSU@GOTPAGE
Lloh23:
	ldr	x21, [x21, _STRATIX10_RSU@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_platform_device_alloc
	str	w0, [x20]
	cbz	w0, LBB0_13
; %bb.11:
	bl	_platform_device_add
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.12:
	ldr	w0, [x20]
	bl	_platform_device_put
	b	LBB0_16
LBB0_13:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_14:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	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_17:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SVC_NUM_CHANNEL,4,2            ; @SVC_NUM_CHANNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_SVC_NUM_DATA_IN_FIFO,4,2       ; @SVC_NUM_DATA_IN_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate FIFO\n"

	.comm	_SVC_CLIENT_FPGA,4,2            ; @SVC_CLIENT_FPGA
	.comm	_SVC_CLIENT_RSU,4,2             ; @SVC_CLIENT_RSU
	.comm	_svc_ctrl,4,2                   ; @svc_ctrl
	.comm	_STRATIX10_RSU,4,2              ; @STRATIX10_RSU
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate %s device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Intel Service Layer Driver Initialized\n"

	.no_dead_strip	_stratix10_svc_drv_probe
.subsections_via_symbols
