	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsdfec_probe
_xsdfec_probe:                          ## @xsdfec_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	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%r13, 56(%rax)
	leaq	64(%rax), %rdi
	callq	_spin_lock_init
	leaq	12(%r12), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_xsdfec_clk_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	56(%r12), %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 48(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	48(%r12), %edi
	callq	_PTR_ERR
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_xsdfec_disable_all_clks
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r12)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
LBB0_10:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_xsdfec_parse_of
	testl	%eax, %eax
	js	LBB0_4
## %bb.11:
	movq	%r12, %rdi
	callq	_update_config_from_hw
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	js	LBB0_13
## %bb.12:
	leaq	44(%r12), %rdi
	callq	_init_waitqueue_head
	movq	(%r12), %rsi
	movq	_xsdfec_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_17
LBB0_13:
	movl	(%r15), %esi
	movq	_dev_nrs@GOTPCREL(%rip), %rdi
	callq	_ida_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.14:
	movl	%ebx, 8(%r12)
	movl	40(%r12), %edi
	movq	_DEV_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	_MISC_DYNAMIC_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	addq	$16, %rdi
	movl	%eax, 36(%r12)
	movl	40(%r12), %eax
	movl	%eax, 32(%r12)
	movq	_xsdfec_fops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 16(%r12)
	callq	_misc_register
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	8(%r12), %esi
	movq	_dev_nrs@GOTPCREL(%rip), %rdi
	callq	_ida_free
	jmp	LBB0_5
LBB0_17:
	movl	%eax, %ebx
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_5
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.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	"platform_get_irq failed"

	.comm	_xsdfec_irq_thread,4,2          ## @xsdfec_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"xilinx-sdfec16"

L_.str.2:                               ## @.str.2
	.asciz	"unable to request IRQ%d"

	.comm	_dev_nrs,4,2                    ## @dev_nrs
	.comm	_DEV_NAME_LEN,4,2               ## @DEV_NAME_LEN
L_.str.3:                               ## @.str.3
	.asciz	"xsdfec%d"

	.comm	_MISC_DYNAMIC_MINOR,4,2         ## @MISC_DYNAMIC_MINOR
	.comm	_xsdfec_fops,4,2                ## @xsdfec_fops
L_.str.4:                               ## @.str.4
	.asciz	"error:%d. Unable to register device"

	.no_dead_strip	_xsdfec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsdfec_probe
_xsdfec_probe:                          ; @xsdfec_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	x22, [x0, #56]
	add	x0, x0, #64
	bl	_spin_lock_init
	add	x19, x20, #12
	mov	x0, x22
	mov	x1, x19
	bl	_xsdfec_clk_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x21, [x20, #56]
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #48]
	bl	_PTR_ERR
LBB0_4:
	mov	x23, x0
LBB0_5:
	mov	x0, x19
	bl	_xsdfec_disable_all_clks
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	str	x0, [x20]
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_10:
	mov	x0, x20
	bl	_xsdfec_parse_of
	tbnz	w0, #31, LBB0_4
; %bb.11:
	mov	x0, x20
	bl	_update_config_from_hw
	mov	x0, x22
	mov	x1, x20
	bl	_platform_set_drvdata
	tbnz	x24, #63, LBB0_13
; %bb.12:
	add	x0, x20, #44
	bl	_init_waitqueue_head
	ldr	x1, [x20]
Lloh10:
	adrp	x8, _xsdfec_irq_thread@GOTPAGE
Lloh11:
	ldr	x8, [x8, _xsdfec_irq_thread@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x5, l_.str.1@PAGE
Lloh17:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_16
LBB0_13:
	ldr	w1, [x25]
Lloh18:
	adrp	x0, _dev_nrs@GOTPAGE
Lloh19:
	ldr	x0, [x0, _dev_nrs@GOTPAGEOFF]
	bl	_ida_alloc
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.14:
	str	w23, [x20, #8]
	ldr	w0, [x20, #40]
Lloh20:
	adrp	x8, _DEV_NAME_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEV_NAME_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x23
	bl	_snprintf
Lloh25:
	adrp	x8, _MISC_DYNAMIC_MINOR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MISC_DYNAMIC_MINOR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mov	x0, x20
	str	x21, [x0, #16]!
	ldr	w9, [x20, #40]
	stp	w9, w8, [x0, #16]
Lloh28:
	adrp	x8, _xsdfec_fops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _xsdfec_fops@GOTPAGEOFF]
	str	x8, [x0, #8]
	bl	_misc_register
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.15:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_err
	ldr	w1, [x20, #8]
Lloh32:
	adrp	x0, _dev_nrs@GOTPAGE
Lloh33:
	ldr	x0, [x0, _dev_nrs@GOTPAGEOFF]
	bl	_ida_free
	b	LBB0_5
LBB0_16:
	mov	x23, x0
	ldr	w2, [x20]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.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	"platform_get_irq failed"

	.comm	_xsdfec_irq_thread,4,2          ; @xsdfec_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"xilinx-sdfec16"

l_.str.2:                               ; @.str.2
	.asciz	"unable to request IRQ%d"

	.comm	_dev_nrs,4,2                    ; @dev_nrs
	.comm	_DEV_NAME_LEN,4,2               ; @DEV_NAME_LEN
l_.str.3:                               ; @.str.3
	.asciz	"xsdfec%d"

	.comm	_MISC_DYNAMIC_MINOR,4,2         ; @MISC_DYNAMIC_MINOR
	.comm	_xsdfec_fops,4,2                ; @xsdfec_fops
l_.str.4:                               ; @.str.4
	.asciz	"error:%d. Unable to register device"

	.no_dead_strip	_xsdfec_probe
.subsections_via_symbols
