	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_probe
_fsi_i2c_probe:                         ## @fsi_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_to_fsi_dev
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_fsi_i2c_dev_init
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movl	4(%rbx), %edi
	movq	_I2C_FSI_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_fsi_i2c_read_reg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_I2C_STAT_MAX_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi
	callq	_FIELD_GET
	movq	%rax, %rbx
	leaq	1(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_dev_dbg
	testq	%rbx, %rbx
	js	LBB0_15
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_fsi_i2c_find_port_of_node
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%r13)
	movq	%rbx, 64(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r12
	movq	%r13, %r14
	addq	$8, %r14
	movl	%eax, 56(%r13)
	movq	%r15, 48(%r13)
	movq	%r12, 40(%r13)
	movq	_fsi_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	_fsi_i2c_bus_recovery_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r13)
	movq	%r13, 16(%r13)
	movl	8(%r13), %edi
	movl	$4, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_15:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dev_set_drvdata
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_FSI_STAT,4,2               ## @I2C_FSI_STAT
	.comm	_I2C_STAT_MAX_PORT,4,2          ## @I2C_STAT_MAX_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C master has %d ports\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_fsi_i2c_algorithm,4,2          ## @fsi_i2c_algorithm
	.comm	_fsi_i2c_bus_recovery_info,4,2  ## @fsi_i2c_bus_recovery_info
L_.str.1:                               ## @.str.1
	.asciz	"i2c_bus-%u"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register adapter: %d\n"

	.no_dead_strip	_fsi_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_probe
_fsi_i2c_probe:                         ; @fsi_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	add	x0, x0, #8
	bl	_mutex_init
	mov	x0, x19
	bl	_to_fsi_dev
	str	w0, [x20, #4]
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_fsi_i2c_dev_init
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _I2C_FSI_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_FSI_STAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_fsi_i2c_read_reg
	cbnz	w0, LBB0_13
; %bb.3:
Lloh5:
	adrp	x8, _I2C_STAT_MAX_PORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_STAT_MAX_PORT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_FIELD_GET
	mov	x22, x0
	add	x21, x0, #1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	tbnz	x22, #63, LBB0_15
; %bb.4:
	mov	x22, #0
Lloh10:
	adrp	x24, _fsi_i2c_algorithm@GOTPAGE
Lloh11:
	ldr	x24, [x24, _fsi_i2c_algorithm@GOTPAGEOFF]
Lloh12:
	adrp	x28, _fsi_i2c_bus_recovery_info@GOTPAGE
Lloh13:
	ldr	x28, [x28, _fsi_i2c_bus_recovery_info@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_list_add
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x21, x22
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_fsi_i2c_find_port_of_node
	mov	x26, x0
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_of_device_is_available
	cbz	w0, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x27]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	stp	x22, x20, [x0, #64]
Lloh16:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	stp	x19, x26, [x0, #40]
	stp	x28, x24, [x0, #24]
	str	x0, [x0, #16]
	mov	x26, x0
	ldr	w0, [x26, #8]!
	mov	w1, #4
	mov	x2, x23
	mov	x3, x22
	bl	_snprintf
	mov	x0, x26
	bl	_i2c_add_adapter
	tbz	w0, #31, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x0
	mov	x0, x19
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x25
	bl	_kfree
	b	LBB0_6
LBB0_12:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x0, x26
	bl	_of_node_put
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_FSI_STAT,4,2               ; @I2C_FSI_STAT
	.comm	_I2C_STAT_MAX_PORT,4,2          ; @I2C_STAT_MAX_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C master has %d ports\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_fsi_i2c_algorithm,4,2          ; @fsi_i2c_algorithm
	.comm	_fsi_i2c_bus_recovery_info,4,2  ; @fsi_i2c_bus_recovery_info
l_.str.1:                               ; @.str.1
	.asciz	"i2c_bus-%u"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register adapter: %d\n"

	.no_dead_strip	_fsi_i2c_probe
.subsections_via_symbols
