	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_fi2c_probe
_uniphier_fi2c_probe:                   ## @uniphier_fi2c_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, %rbx
	leaq	4(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 72(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	72(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_UNIPHIER_FI2C_DEFAULT_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -56(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_11
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_10:
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
LBB0_11:
	movq	_UNIPHIER_FI2C_MAX_SPEED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	ja	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.16:
	movl	8(%r14), %edi
	callq	_clk_get_rate
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	-56(%rbp), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_20
## %bb.18:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_21:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	%rax, (%r14)
	leaq	68(%r12), %rdi
	callq	_init_completion
	leaq	64(%r12), %rdi
	callq	_spin_lock_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %r12
	movl	%eax, 56(%r14)
	movq	_uniphier_fi2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	%r15, 40(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	24(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_uniphier_fi2c_bus_recovery_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_uniphier_fi2c_hw_init
	movq	_uniphier_fi2c_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%r13d, %edx
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_25
LBB0_23:
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %r13d
LBB0_24:
	testl	%r13d, %r13d
	je	LBB0_26
LBB0_25:
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_5
LBB0_26:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get IRQ number\n"

L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_UNIPHIER_FI2C_DEFAULT_SPEED,8,3 ## @UNIPHIER_FI2C_DEFAULT_SPEED
	.comm	_UNIPHIER_FI2C_MAX_SPEED,8,3    ## @UNIPHIER_FI2C_MAX_SPEED
L_.str.2:                               ## @.str.2
	.asciz	"invalid clock-frequency %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"failed to get clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"input clock rate should not be zero\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_uniphier_fi2c_algo,4,2         ## @uniphier_fi2c_algo
L_.str.5:                               ## @.str.5
	.asciz	"UniPhier FI2C"

	.comm	_uniphier_fi2c_bus_recovery_info,4,2 ## @uniphier_fi2c_bus_recovery_info
	.comm	_uniphier_fi2c_interrupt,4,2    ## @uniphier_fi2c_interrupt
L_.str.6:                               ## @.str.6
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_uniphier_fi2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_fi2c_probe
_uniphier_fi2c_probe:                   ; @uniphier_fi2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #72]
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_u32
	cbz	x0, LBB0_10
; %bb.8:
Lloh7:
	adrp	x8, _UNIPHIER_FI2C_DEFAULT_SPEED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UNIPHIER_FI2C_DEFAULT_SPEED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x23, x22
	b	LBB0_5
LBB0_10:
	ldr	x8, [sp, #8]
LBB0_11:
Lloh12:
	adrp	x9, _UNIPHIER_FI2C_MAX_SPEED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UNIPHIER_FI2C_MAX_SPEED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #2, ne
	b.ls	LBB0_13
; %bb.12:
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_5
LBB0_15:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.16:
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x8, [sp, #8]
	udiv	x8, x0, x8
	str	x8, [x19]
	add	x0, x19, #68
	bl	_init_completion
	add	x0, x19, #64
	bl	_spin_lock_init
Lloh21:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _uniphier_fi2c_algo@GOTPAGE
Lloh25:
	ldr	x9, [x9, _uniphier_fi2c_algo@GOTPAGEOFF]
	str	w8, [x19, #56]
	stp	x20, x9, [x19, #40]
	ldr	w8, [x21, #4]
	str	w8, [x19, #32]
	ldr	w0, [x19, #24]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh28:
	adrp	x8, _uniphier_fi2c_bus_recovery_info@GOTPAGE
Lloh29:
	ldr	x8, [x8, _uniphier_fi2c_bus_recovery_info@GOTPAGEOFF]
	mov	x24, x19
	str	x8, [x24, #16]!
	mov	x0, x24
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_uniphier_fi2c_hw_init
Lloh30:
	adrp	x8, _uniphier_fi2c_interrupt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _uniphier_fi2c_interrupt@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_20
; %bb.18:
	mov	x23, x0
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_22
LBB0_19:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_20:
	mov	x0, x24
	bl	_i2c_add_adapter
	mov	x23, x0
LBB0_21:
	cbz	w23, LBB0_5
LBB0_22:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get IRQ number\n"

l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_UNIPHIER_FI2C_DEFAULT_SPEED,8,3 ; @UNIPHIER_FI2C_DEFAULT_SPEED
	.comm	_UNIPHIER_FI2C_MAX_SPEED,8,3    ; @UNIPHIER_FI2C_MAX_SPEED
l_.str.2:                               ; @.str.2
	.asciz	"invalid clock-frequency %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"failed to get clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"input clock rate should not be zero\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_uniphier_fi2c_algo,4,2         ; @uniphier_fi2c_algo
l_.str.5:                               ; @.str.5
	.asciz	"UniPhier FI2C"

	.comm	_uniphier_fi2c_bus_recovery_info,4,2 ; @uniphier_fi2c_bus_recovery_info
	.comm	_uniphier_fi2c_interrupt,4,2    ; @uniphier_fi2c_interrupt
l_.str.6:                               ; @.str.6
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_uniphier_fi2c_probe
.subsections_via_symbols
