	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efm32_i2c_probe
_efm32_i2c_probe:                       ## @efm32_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	%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
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	52(%r12), %rdi
	callq	_init_completion
	movq	%r12, %rbx
	addq	$16, %rbx
	movl	44(%r12), %edi
	movl	8(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_efm32_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	%r14, 24(%r12)
	movq	(%r14), %rax
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 12(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	12(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_resource_size
	cmpl	$65, %eax
	jg	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 48(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	48(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_17:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_22
## %bb.18:
	movl	%r15d, (%r12)
	movl	12(%r12), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_26
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	leaq	L_.str.6(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	callq	_efm32_i2c_get_configured_location
	movl	%eax, -44(%rbp)
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r15d, %r15d
	cmovnel	%r15d, %ebx
	jmp	LBB0_10
LBB0_23:
	movslq	-44(%rbp), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_24:
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r12)
	leaq	L_.str.9(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movl	$100000, -48(%rbp)              ## imm = 0x186A0
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_28
LBB0_26:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_27:
	movslq	-48(%rbp), %rdx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_28:
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r12)
	movl	12(%r12), %edi
	callq	_clk_get_rate
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	%rax, %r13
	movl	8(%r12), %esi
	shll	$3, %esi
	movq	%rax, %rdi
	callq	_DIV_ROUND_UP
	cmpl	$513, %eax                      ## imm = 0x201
	jl	LBB0_34
## %bb.30:
	movl	8(%r12), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_33:
	movl	12(%r12), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_10
LBB0_34:
	decl	%eax
	movl	8(%r12), %ecx
	movslq	%eax, %r15
	leaq	L_.str.14(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_REG_CLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_REG_CLKDIV_DIV
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_efm32_i2c_write32
	movq	_REG_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_REG_ROUTE_SDAPEN@GOTPCREL(%rip), %rax
	movq	_REG_ROUTE_SCLPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	4(%r12), %edi
	callq	_REG_ROUTE_LOCATION
	orl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_efm32_i2c_write32
	movq	_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_CTRL_EN@GOTPCREL(%rip), %rax
	movq	_REG_CTRL_BITO_160PCC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_efm32_i2c_write32
	movq	_REG_IFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_IFC__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_efm32_i2c_write32
	movq	_REG_IF_TXC@GOTPCREL(%rip), %rax
	movq	_REG_IF_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REG_IF_NACK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_REG_IF_ARBLOST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_REG_IEN@GOTPCREL(%rip), %rax
	movq	_REG_IF_BUSERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_REG_IF_RXDATAV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_efm32_i2c_write32
	movq	_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_CMD_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_efm32_i2c_write32
	movl	(%r12), %edi
	movq	_efm32_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_37
## %bb.35:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_10
## %bb.36:
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movl	%r14d, %ebx
	jmp	LBB0_33
LBB0_37:
	movl	%eax, %r15d
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_efm32_i2c_algo,4,2             ## @efm32_i2c_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get clock: %d\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to determine base address\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"memory resource too small\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get irq (%d)\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"energymicro,location"

L_.str.6:                               ## @.str.6
	.asciz	"efm32,location"

L_.str.7:                               ## @.str.7
	.asciz	"using location %u\n"

L_.str.8:                               ## @.str.8
	.asciz	"fall back to location %u\n"

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

L_.str.10:                              ## @.str.10
	.asciz	"using frequency %u\n"

L_.str.11:                              ## @.str.11
	.asciz	"defaulting to 100 kHz\n"

L_.str.12:                              ## @.str.12
	.asciz	"there is no input clock available\n"

L_.str.13:                              ## @.str.13
	.asciz	"input clock too fast (%lu) to divide down to bus freq (%lu)"

L_.str.14:                              ## @.str.14
	.asciz	"input clock = %lu, bus freq = %lu, clkdiv = %lu\n"

	.comm	_REG_CLKDIV,4,2                 ## @REG_CLKDIV
	.comm	_REG_ROUTE,4,2                  ## @REG_ROUTE
	.comm	_REG_ROUTE_SDAPEN,4,2           ## @REG_ROUTE_SDAPEN
	.comm	_REG_ROUTE_SCLPEN,4,2           ## @REG_ROUTE_SCLPEN
	.comm	_REG_CTRL,4,2                   ## @REG_CTRL
	.comm	_REG_CTRL_EN,4,2                ## @REG_CTRL_EN
	.comm	_REG_CTRL_BITO_160PCC,4,2       ## @REG_CTRL_BITO_160PCC
	.comm	_REG_CTRL_GIBITO,4,2            ## @REG_CTRL_GIBITO
	.comm	_REG_IFC,4,2                    ## @REG_IFC
	.comm	_REG_IFC__MASK,4,2              ## @REG_IFC__MASK
	.comm	_REG_IEN,4,2                    ## @REG_IEN
	.comm	_REG_IF_TXC,4,2                 ## @REG_IF_TXC
	.comm	_REG_IF_ACK,4,2                 ## @REG_IF_ACK
	.comm	_REG_IF_NACK,4,2                ## @REG_IF_NACK
	.comm	_REG_IF_ARBLOST,4,2             ## @REG_IF_ARBLOST
	.comm	_REG_IF_BUSERR,4,2              ## @REG_IF_BUSERR
	.comm	_REG_IF_RXDATAV,4,2             ## @REG_IF_RXDATAV
	.comm	_REG_CMD,4,2                    ## @REG_CMD
	.comm	_REG_CMD_ABORT,4,2              ## @REG_CMD_ABORT
	.comm	_efm32_i2c_irq,4,2              ## @efm32_i2c_irq
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.15:                              ## @.str.15
	.asciz	"failed to request irq (%d)\n"

	.no_dead_strip	_efm32_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efm32_i2c_probe
_efm32_i2c_probe:                       ; @efm32_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x22, [x0]
	cbz	x22, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #52
	bl	_init_completion
	ldr	w0, [x19, #44]
	ldr	w1, [x20, #8]
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x20]
	mov	x21, x19
	str	x8, [x21, #16]!
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh6:
	adrp	x8, _efm32_i2c_algo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _efm32_i2c_algo@GOTPAGEOFF]
	stp	x20, x8, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh12:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_11
; %bb.6:
	mov	x23, x0
	bl	_resource_size
	cmp	w0, #65
	b.gt	LBB0_12
; %bb.7:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	mov	x0, x20
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	w0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x19, #48]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	cmp	w0, #0
	b.le	LBB0_19
; %bb.15:
	str	w23, [x19]
	ldr	w0, [x19, #12]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_23
; %bb.16:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #28
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_20
; %bb.17:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #28
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_efm32_i2c_get_configured_location
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #28]
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_21
LBB0_19:
	str	x23, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w21, w23, w8, ne
	b	LBB0_10
LBB0_20:
	ldrsw	x2, [sp, #28]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_21:
	ldr	w8, [sp, #28]
	str	w8, [x19, #4]
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_24
; %bb.22:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [sp, #24]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_25
LBB0_23:
	mov	x23, x0
	str	x23, [sp]
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x23
	b	LBB0_10
LBB0_24:
	ldrsw	x2, [sp, #24]
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_25:
	ldr	w8, [sp, #24]
	str	w8, [x19, #8]
	ldr	w0, [x19, #12]
	bl	_clk_get_rate
	cbz	x0, LBB0_28
; %bb.26:
	mov	x22, x0
	ldr	w8, [x19, #8]
	lsl	w1, w8, #3
	bl	_DIV_ROUND_UP
	cmp	w0, #513
	b.lt	LBB0_31
; %bb.27:
	ldr	w8, [x19, #8]
	stp	x22, x8, [sp]
Lloh44:
	adrp	x1, l_.str.13@PAGE
Lloh45:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_29
LBB0_28:
Lloh46:
	adrp	x1, l_.str.12@PAGE
Lloh47:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_29:
	mov	x0, x20
	bl	_dev_err
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_30:
	ldr	w0, [x19, #12]
	bl	_clk_disable_unprepare
	b	LBB0_10
LBB0_31:
	sub	w23, w0, #1
	sxtw	x8, w23
	ldr	w9, [x19, #8]
	stp	x9, x8, [sp]
Lloh51:
	adrp	x1, l_.str.14@PAGE
Lloh52:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
Lloh53:
	adrp	x8, _REG_CLKDIV@GOTPAGE
Lloh54:
	ldr	x8, [x8, _REG_CLKDIV@GOTPAGEOFF]
Lloh55:
	ldr	w22, [x8]
	mov	x0, x23
	bl	_REG_CLKDIV_DIV
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_efm32_i2c_write32
Lloh56:
	adrp	x8, _REG_ROUTE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _REG_ROUTE@GOTPAGEOFF]
Lloh58:
	ldr	w22, [x8]
Lloh59:
	adrp	x8, _REG_ROUTE_SDAPEN@GOTPAGE
Lloh60:
	ldr	x8, [x8, _REG_ROUTE_SDAPEN@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _REG_ROUTE_SCLPEN@GOTPAGE
Lloh63:
	ldr	x9, [x9, _REG_ROUTE_SCLPEN@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w23, w9, w8
	ldr	w0, [x19, #4]
	bl	_REG_ROUTE_LOCATION
	orr	w2, w23, w0
	mov	x0, x19
	mov	x1, x22
	bl	_efm32_i2c_write32
Lloh65:
	adrp	x8, _REG_CTRL@GOTPAGE
Lloh66:
	ldr	x8, [x8, _REG_CTRL@GOTPAGEOFF]
Lloh67:
	adrp	x9, _REG_CTRL_EN@GOTPAGE
Lloh68:
	ldr	x9, [x9, _REG_CTRL_EN@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
Lloh70:
	ldr	w8, [x9]
Lloh71:
	adrp	x9, _REG_CTRL_BITO_160PCC@GOTPAGE
Lloh72:
	ldr	x9, [x9, _REG_CTRL_BITO_160PCC@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_efm32_i2c_write32
Lloh74:
	adrp	x8, _REG_IFC@GOTPAGE
Lloh75:
	ldr	x8, [x8, _REG_IFC@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x8, _REG_IFC__MASK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _REG_IFC__MASK@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_efm32_i2c_write32
Lloh80:
	adrp	x8, _REG_IEN@GOTPAGE
Lloh81:
	ldr	x8, [x8, _REG_IEN@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
Lloh83:
	adrp	x8, _REG_IF_TXC@GOTPAGE
Lloh84:
	ldr	x8, [x8, _REG_IF_TXC@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
Lloh86:
	adrp	x9, _REG_IF_ACK@GOTPAGE
Lloh87:
	ldr	x9, [x9, _REG_IF_ACK@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh89:
	adrp	x9, _REG_IF_NACK@GOTPAGE
Lloh90:
	ldr	x9, [x9, _REG_IF_NACK@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh92:
	adrp	x9, _REG_IF_ARBLOST@GOTPAGE
Lloh93:
	ldr	x9, [x9, _REG_IF_ARBLOST@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh95:
	adrp	x9, _REG_IF_BUSERR@GOTPAGE
Lloh96:
	ldr	x9, [x9, _REG_IF_BUSERR@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh98:
	adrp	x9, _REG_IF_RXDATAV@GOTPAGE
Lloh99:
	ldr	x9, [x9, _REG_IF_RXDATAV@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_efm32_i2c_write32
Lloh101:
	adrp	x8, _REG_CMD@GOTPAGE
Lloh102:
	ldr	x8, [x8, _REG_CMD@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
Lloh104:
	adrp	x8, _REG_CMD_ABORT@GOTPAGE
Lloh105:
	ldr	x8, [x8, _REG_CMD_ABORT@GOTPAGEOFF]
Lloh106:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_efm32_i2c_write32
	ldr	w0, [x19]
Lloh107:
	adrp	x8, _efm32_i2c_irq@GOTPAGE
Lloh108:
	ldr	x8, [x8, _efm32_i2c_irq@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
Lloh110:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh111:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh112:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_34
; %bb.32:
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.33:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_30
LBB0_34:
	mov	x22, x0
	str	x22, [sp]
Lloh113:
	adrp	x1, l_.str.15@PAGE
Lloh114:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x22
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh69
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh113, Lloh114
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_efm32_i2c_algo,4,2             ; @efm32_i2c_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get clock: %d\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to determine base address\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"memory resource too small\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get irq (%d)\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"energymicro,location"

l_.str.6:                               ; @.str.6
	.asciz	"efm32,location"

l_.str.7:                               ; @.str.7
	.asciz	"using location %u\n"

l_.str.8:                               ; @.str.8
	.asciz	"fall back to location %u\n"

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

l_.str.10:                              ; @.str.10
	.asciz	"using frequency %u\n"

l_.str.11:                              ; @.str.11
	.asciz	"defaulting to 100 kHz\n"

l_.str.12:                              ; @.str.12
	.asciz	"there is no input clock available\n"

l_.str.13:                              ; @.str.13
	.asciz	"input clock too fast (%lu) to divide down to bus freq (%lu)"

l_.str.14:                              ; @.str.14
	.asciz	"input clock = %lu, bus freq = %lu, clkdiv = %lu\n"

	.comm	_REG_CLKDIV,4,2                 ; @REG_CLKDIV
	.comm	_REG_ROUTE,4,2                  ; @REG_ROUTE
	.comm	_REG_ROUTE_SDAPEN,4,2           ; @REG_ROUTE_SDAPEN
	.comm	_REG_ROUTE_SCLPEN,4,2           ; @REG_ROUTE_SCLPEN
	.comm	_REG_CTRL,4,2                   ; @REG_CTRL
	.comm	_REG_CTRL_EN,4,2                ; @REG_CTRL_EN
	.comm	_REG_CTRL_BITO_160PCC,4,2       ; @REG_CTRL_BITO_160PCC
	.comm	_REG_CTRL_GIBITO,4,2            ; @REG_CTRL_GIBITO
	.comm	_REG_IFC,4,2                    ; @REG_IFC
	.comm	_REG_IFC__MASK,4,2              ; @REG_IFC__MASK
	.comm	_REG_IEN,4,2                    ; @REG_IEN
	.comm	_REG_IF_TXC,4,2                 ; @REG_IF_TXC
	.comm	_REG_IF_ACK,4,2                 ; @REG_IF_ACK
	.comm	_REG_IF_NACK,4,2                ; @REG_IF_NACK
	.comm	_REG_IF_ARBLOST,4,2             ; @REG_IF_ARBLOST
	.comm	_REG_IF_BUSERR,4,2              ; @REG_IF_BUSERR
	.comm	_REG_IF_RXDATAV,4,2             ; @REG_IF_RXDATAV
	.comm	_REG_CMD,4,2                    ; @REG_CMD
	.comm	_REG_CMD_ABORT,4,2              ; @REG_CMD_ABORT
	.comm	_efm32_i2c_irq,4,2              ; @efm32_i2c_irq
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.15:                              ; @.str.15
	.asciz	"failed to request irq (%d)\n"

	.no_dead_strip	_efm32_i2c_probe
.subsections_via_symbols
