	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synquacer_i2c_probe
_synquacer_i2c_probe:                   ## @synquacer_i2c_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_i2c_acpi_find_bus_speed
	movl	%eax, -36(%rbp)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_device_property_read_u32
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	60(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_27
LBB0_6:
	movl	60(%r15), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %edx
LBB0_12:
	movq	_SYNQUACER_I2C_MIN_CLK_RATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jl	LBB0_14
## %bb.13:
	movq	_SYNQUACER_I2C_MAX_CLK_RATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_14
## %bb.15:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 56(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	56(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_8:
	movl	60(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	60(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_10:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 52(%r15)
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movl	%eax, %r12d
	movq	_synquacer_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	%r14, 40(%r15)
	leaq	8(%r15), %r12
	movq	_synquacer_i2c_ops@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%r15)
	movq	16(%rax), %rax
	movq	%rax, 24(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, 16(%r15)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_ACPI_COMPANION
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ACPI_COMPANION_SET
	movl	16(%r14), %eax
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	addq	$36, %rdi
	callq	_init_completion
	cmpl	$400000, -36(%rbp)              ## imm = 0x61A80
	jge	LBB0_22
## %bb.23:
	movq	_SYNQUACER_I2C_SPEED_SM@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_11:
	movl	60(%r15), %edi
	callq	_clk_get_rate
	movl	%eax, %edx
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_18:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_20:
	movl	%eax, %ebx
	movl	52(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_10
LBB0_22:
	movq	_SYNQUACER_I2C_SPEED_FM@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r15, %rdi
	callq	_synquacer_i2c_hw_init
	movq	%r12, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_26:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	callq	_dev_name
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.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	"clock-frequency"

L_.str.1:                               ## @.str.1
	.asciz	"socionext,pclk-rate"

L_.str.2:                               ## @.str.2
	.asciz	"pclk"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"clock source %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable clock (%d)\n"

	.comm	_SYNQUACER_I2C_MIN_CLK_RATE,4,2 ## @SYNQUACER_I2C_MIN_CLK_RATE
	.comm	_SYNQUACER_I2C_MAX_CLK_RATE,4,2 ## @SYNQUACER_I2C_MAX_CLK_RATE
L_.str.5:                               ## @.str.5
	.asciz	"PCLK missing or out of range (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.6:                               ## @.str.6
	.asciz	"no IRQ resource found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_synquacer_i2c_isr,4,2          ## @synquacer_i2c_isr
L_.str.7:                               ## @.str.7
	.asciz	"cannot claim IRQ %d\n"

	.comm	_STATE_IDLE,4,2                 ## @STATE_IDLE
	.comm	_synquacer_i2c_ops,24,3         ## @synquacer_i2c_ops
	.comm	_SYNQUACER_I2C_SPEED_SM,4,2     ## @SYNQUACER_I2C_SPEED_SM
	.comm	_SYNQUACER_I2C_SPEED_FM,4,2     ## @SYNQUACER_I2C_SPEED_FM
L_.str.8:                               ## @.str.8
	.asciz	"failed to add bus to i2c core\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s: synquacer_i2c adapter\n"

	.no_dead_strip	_synquacer_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synquacer_i2c_probe
_synquacer_i2c_probe:                   ; @synquacer_i2c_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_i2c_acpi_find_bus_speed
	str	w0, [sp, #12]
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #60]
	bl	_PTR_ERR
	mov	x21, x0
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
LBB0_5:
	ldr	w0, [x20, #60]
	bl	_IS_ERR_OR_NULL
	cbz	w0, LBB0_14
; %bb.6:
	ldr	w0, [x20]
LBB0_7:
Lloh12:
	adrp	x8, _SYNQUACER_I2C_MIN_CLK_RATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNQUACER_I2C_MIN_CLK_RATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SYNQUACER_I2C_MAX_CLK_RATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SYNQUACER_I2C_MAX_CLK_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.le	LBB0_12
; %bb.8:
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	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
	add	sp, sp, #64
	ret
LBB0_12:
Lloh24:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.13:
	ldr	w0, [x20, #56]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_11
LBB0_14:
	ldr	w2, [x20, #60]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x20, #60]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_21
; %bb.15:
	mov	x21, x0
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20, #52]
	tbnz	w0, #31, LBB0_22
; %bb.18:
	mov	x21, x0
Lloh31:
	adrp	x8, _synquacer_i2c_isr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _synquacer_i2c_isr@GOTPAGEOFF]
Lloh33:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_23
; %bb.19:
Lloh34:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x20, #48]
	str	x19, [x20, #40]
	add	x22, x20, #8
Lloh37:
	adrp	x8, _synquacer_i2c_ops@GOTPAGE
Lloh38:
	ldr	x8, [x8, _synquacer_i2c_ops@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	stur	q0, [x20, #8]
	str	x9, [x20, #24]
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_adapdata
	str	x19, [x20, #16]
	ldr	w8, [x19]
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_ACPI_COMPANION
	mov	x1, x0
	mov	x0, x22
	bl	_ACPI_COMPANION_SET
	ldr	w8, [x19, #16]
	str	w8, [x20, #24]
	add	x0, x20, #36
	bl	_init_completion
Lloh39:
	adrp	x8, _SYNQUACER_I2C_SPEED_SM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SYNQUACER_I2C_SPEED_SM@GOTPAGEOFF]
Lloh41:
	adrp	x9, _SYNQUACER_I2C_SPEED_FM@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SYNQUACER_I2C_SPEED_FM@GOTPAGEOFF]
	ldr	w10, [sp, #12]
	mov	w11, #6784
	movk	w11, #6, lsl #16
	cmp	w10, w11
	csel	x8, x8, x9, lt
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	x0, x20
	bl	_synquacer_i2c_hw_init
	mov	x0, x22
	bl	_i2c_add_numbered_adapter
	mov	x21, x0
	cbz	w0, LBB0_24
; %bb.20:
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_21:
	ldr	w0, [x20, #60]
	bl	_clk_get_rate
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x20]
	b	LBB0_7
LBB0_22:
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_23:
	mov	x21, x0
	ldr	w8, [x20, #52]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x22
	bl	_dev_name
	mov	x2, x0
Lloh51:
	adrp	x1, l_.str.9@PAGE
Lloh52:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.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	"clock-frequency"

l_.str.1:                               ; @.str.1
	.asciz	"socionext,pclk-rate"

l_.str.2:                               ; @.str.2
	.asciz	"pclk"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"clock source %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable clock (%d)\n"

	.comm	_SYNQUACER_I2C_MIN_CLK_RATE,4,2 ; @SYNQUACER_I2C_MIN_CLK_RATE
	.comm	_SYNQUACER_I2C_MAX_CLK_RATE,4,2 ; @SYNQUACER_I2C_MAX_CLK_RATE
l_.str.5:                               ; @.str.5
	.asciz	"PCLK missing or out of range (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.6:                               ; @.str.6
	.asciz	"no IRQ resource found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_synquacer_i2c_isr,4,2          ; @synquacer_i2c_isr
l_.str.7:                               ; @.str.7
	.asciz	"cannot claim IRQ %d\n"

	.comm	_STATE_IDLE,4,2                 ; @STATE_IDLE
	.comm	_synquacer_i2c_ops,24,3         ; @synquacer_i2c_ops
	.comm	_SYNQUACER_I2C_SPEED_SM,4,2     ; @SYNQUACER_I2C_SPEED_SM
	.comm	_SYNQUACER_I2C_SPEED_FM,4,2     ; @SYNQUACER_I2C_SPEED_FM
l_.str.8:                               ; @.str.8
	.asciz	"failed to add bus to i2c core\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s: synquacer_i2c adapter\n"

	.no_dead_strip	_synquacer_i2c_probe
.subsections_via_symbols
