	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em_i2c_probe
_em_i2c_probe:                          ## @em_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
	.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, %r12
	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, 60(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	60(%r12), %edi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	52(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	leaq	8(%r12), %r15
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 48(%r12)
	movl	$5, 8(%r12)
	movq	%r14, 24(%r12)
	movq	_em_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	(%r14), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	addq	$56, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_adapdata
	movq	%r15, %rdi
	callq	_em_i2c_reset
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 4(%r12)
	movq	_em_i2c_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movl	(%r12), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_11
LBB0_9:
	movl	4(%r12), %ecx
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.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	"EMEV2 I2C"

L_.str.1:                               ## @.str.1
	.asciz	"sclk"

	.comm	_em_i2c_algo,4,2                ## @em_i2c_algo
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_em_i2c_irq_handler,4,2         ## @em_i2c_irq_handler
L_.str.2:                               ## @.str.2
	.asciz	"em_i2c"

L_.str.3:                               ## @.str.3
	.asciz	"Added i2c controller %d, irq %d\n"

	.no_dead_strip	_em_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em_i2c_probe
_em_i2c_probe:                          ; @em_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_3
; %bb.1:
	mov	x20, x0
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	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #60]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x20, #52]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.8:
	add	x21, x20, #8
	mov	w0, #100
	bl	_msecs_to_jiffies
	str	w0, [x20, #48]
	mov	w8, #5
	str	w8, [x20, #8]
	str	x19, [x20, #24]
Lloh13:
	adrp	x8, _em_i2c_algo@GOTPAGE
Lloh14:
	ldr	x8, [x8, _em_i2c_algo@GOTPAGEOFF]
Lloh15:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
	str	x8, [x20, #40]
Lloh17:
	ldr	w8, [x9]
	str	w8, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20, #16]
	add	x0, x20, #56
	bl	_init_completion
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x21
	bl	_em_i2c_reset
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	str	w0, [x20, #4]
Lloh18:
	adrp	x8, _em_i2c_irq_handler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _em_i2c_irq_handler@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x4, l_.str.2@PAGE
Lloh22:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x22, x0
	cbz	w0, LBB0_11
LBB0_10:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_4
LBB0_11:
	ldr	w2, [x20, #12]
	ldr	w3, [x20, #4]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_4
	.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	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.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	"EMEV2 I2C"

l_.str.1:                               ; @.str.1
	.asciz	"sclk"

	.comm	_em_i2c_algo,4,2                ; @em_i2c_algo
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_em_i2c_irq_handler,4,2         ; @em_i2c_irq_handler
l_.str.2:                               ; @.str.2
	.asciz	"em_i2c"

l_.str.3:                               ; @.str.3
	.asciz	"Added i2c controller %d, irq %d\n"

	.no_dead_strip	_em_i2c_probe
.subsections_via_symbols
