	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stratix10_rsu_probe
_stratix10_rsu_probe:                   ## @stratix10_rsu_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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	64(%rax), %r15
	movq	%r14, 80(%rax)
	movq	$0, 72(%rax)
	movq	%rax, 64(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 40(%rax)
	movq	_INVALID_RETRY_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	leaq	88(%rbx), %rdi
	callq	_mutex_init
	movq	_SVC_CLIENT_RSU@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_stratix10_svc_request_channel_byname
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	leaq	8(%rbx), %r12
	movq	%rbx, %rdi
	addq	$56, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_COMMAND_RSU_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rsu_status_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rsu_send_msg
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_stratix10_svc_free_channel
LBB0_5:
	movq	_RSU_FW_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_FIELD_GET
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_COMMAND_RSU_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rsu_retry_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rsu_send_msg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_stratix10_svc_free_channel
	movl	%r12d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INVALID_RETRY_COUNTER,4,2      ## @INVALID_RETRY_COUNTER
	.comm	_SVC_CLIENT_RSU,4,2             ## @SVC_CLIENT_RSU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get service channel %s\n"

	.comm	_COMMAND_RSU_STATUS,4,2         ## @COMMAND_RSU_STATUS
	.comm	_rsu_status_callback,4,2        ## @rsu_status_callback
L_.str.1:                               ## @.str.1
	.asciz	"Error, getting RSU status %i\n"

	.comm	_RSU_FW_VERSION_MASK,4,2        ## @RSU_FW_VERSION_MASK
	.comm	_COMMAND_RSU_RETRY,4,2          ## @COMMAND_RSU_RETRY
	.comm	_rsu_retry_callback,4,2         ## @rsu_retry_callback
L_.str.2:                               ## @.str.2
	.asciz	"Error, getting RSU retry %i\n"

	.no_dead_strip	_stratix10_rsu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stratix10_rsu_probe
_stratix10_rsu_probe:                   ; @stratix10_rsu_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x21, x0, #64
	stp	xzr, x20, [x0, #72]
	str	x0, [x0, #64]
	movi.2d	v0, #0000000000000000
	mov	x22, x0
	str	q0, [x22, #8]!
	stur	q0, [x0, #24]
	stur	q0, [x0, #40]
Lloh3:
	adrp	x8, _INVALID_RETRY_COUNTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INVALID_RETRY_COUNTER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #92]
	add	x0, x0, #88
	bl	_mutex_init
Lloh6:
	adrp	x23, _SVC_CLIENT_RSU@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SVC_CLIENT_RSU@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_stratix10_svc_request_channel_byname
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w2, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19]
	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
	b	_PTR_ERR
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
	add	x0, x19, #56
	bl	_init_completion
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh13:
	adrp	x8, _COMMAND_RSU_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMMAND_RSU_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _rsu_status_callback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rsu_status_callback@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rsu_send_msg
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_stratix10_svc_free_channel
LBB0_6:
Lloh21:
	adrp	x8, _RSU_FW_VERSION_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RSU_FW_VERSION_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x22]
	bl	_FIELD_GET
	cbz	x0, LBB0_9
; %bb.7:
Lloh24:
	adrp	x8, _COMMAND_RSU_RETRY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _COMMAND_RSU_RETRY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _rsu_retry_callback@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rsu_retry_callback@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rsu_send_msg
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.8:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_stratix10_svc_free_channel
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INVALID_RETRY_COUNTER,4,2      ; @INVALID_RETRY_COUNTER
	.comm	_SVC_CLIENT_RSU,4,2             ; @SVC_CLIENT_RSU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get service channel %s\n"

	.comm	_COMMAND_RSU_STATUS,4,2         ; @COMMAND_RSU_STATUS
	.comm	_rsu_status_callback,4,2        ; @rsu_status_callback
l_.str.1:                               ; @.str.1
	.asciz	"Error, getting RSU status %i\n"

	.comm	_RSU_FW_VERSION_MASK,4,2        ; @RSU_FW_VERSION_MASK
	.comm	_COMMAND_RSU_RETRY,4,2          ; @COMMAND_RSU_RETRY
	.comm	_rsu_retry_callback,4,2         ; @rsu_retry_callback
l_.str.2:                               ; @.str.2
	.asciz	"Error, getting RSU retry %i\n"

	.no_dead_strip	_stratix10_rsu_probe
.subsections_via_symbols
