	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_devbus_probe
_mvebu_devbus_probe:                    ## @mvebu_devbus_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %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.3:
	movq	16(%r15), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	callq	_clk_prepare_enable
	movq	%r12, %rdi
	callq	_clk_get_rate
	cltq
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	cmpq	$1000000000, %rax               ## imm = 0x3B9ACA00
	ja	LBB0_8
## %bb.9:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
	jmp	LBB0_10
LBB0_8:
	xorl	%edx, %edx
LBB0_10:
	movl	%edx, (%r15)
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_11
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_of_platform_populate
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
	jmp	LBB0_16
LBB0_11:
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devbus_get_timing_params
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_devbus_orion_set_timing_params
	jmp	LBB0_15
LBB0_14:
	callq	_devbus_armada_set_timing_params
	jmp	LBB0_15
	.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	"Setting timing parameter, tick is %lu ps\n"

L_.str.1:                               ## @.str.1
	.asciz	"devbus,keep-config"

L_.str.2:                               ## @.str.2
	.asciz	"marvell,orion-devbus"

	.no_dead_strip	_mvebu_devbus_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_devbus_probe
_mvebu_devbus_probe:                    ; @mvebu_devbus_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #8]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #16]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x22
LBB0_7:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_8:
	mov	x0, x22
	bl	_clk_prepare_enable
	mov	x0, x22
	bl	_clk_get_rate
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x8, w8
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	udiv	x2, x9, x8
	str	w2, [x21]
	ldr	x0, [x21, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_of_platform_populate
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_4
LBB0_10:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	bl	_devbus_get_timing_params
	tbnz	w0, #31, LBB0_4
; %bb.11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	add	x2, sp, #8
	mov	x3, sp
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	bl	_devbus_orion_set_timing_params
	b	LBB0_9
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	bl	_devbus_armada_set_timing_params
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.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	"Setting timing parameter, tick is %lu ps\n"

l_.str.1:                               ; @.str.1
	.asciz	"devbus,keep-config"

l_.str.2:                               ; @.str.2
	.asciz	"marvell,orion-devbus"

	.no_dead_strip	_mvebu_devbus_probe
.subsections_via_symbols
