	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_i2c_probe
_ec_i2c_probe:                          ## @ec_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-44(%rbp), %eax
	movl	%eax, 64(%r15)
	movq	%r12, 56(%r15)
	movq	%r13, 48(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movl	40(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_ec_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r15, 24(%r15)
	movq	%r13, 16(%r15)
	movq	%r14, 8(%r15)
	movq	_I2C_MAX_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing sendrecv\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"google,remote-bus"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't read remote-bus property\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.3:                               ## @.str.3
	.asciz	"cros-ec-i2c-tunnel"

	.comm	_ec_i2c_algorithm,4,2           ## @ec_i2c_algorithm
	.comm	_I2C_MAX_RETRIES,4,2            ## @I2C_MAX_RETRIES
	.no_dead_strip	_ec_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_i2c_probe
_ec_i2c_probe:                          ; @ec_i2c_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	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	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_8:
	ldr	w8, [sp, #12]
	str	w8, [x21, #64]
	stp	x19, x22, [x21, #48]
Lloh13:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #44]
	ldr	w0, [x21, #40]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh18:
	adrp	x8, _ec_i2c_algorithm@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ec_i2c_algorithm@GOTPAGEOFF]
	stp	x21, x8, [x21, #24]
	stp	x20, x19, [x21, #8]
Lloh20:
	adrp	x8, _I2C_MAX_RETRIES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_MAX_RETRIES@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing sendrecv\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"google,remote-bus"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't read remote-bus property\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.3:                               ; @.str.3
	.asciz	"cros-ec-i2c-tunnel"

	.comm	_ec_i2c_algorithm,4,2           ; @ec_i2c_algorithm
	.comm	_I2C_MAX_RETRIES,4,2            ; @I2C_MAX_RETRIES
	.no_dead_strip	_ec_i2c_probe
.subsections_via_symbols
