	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_multi_inst_probe
_i2c_multi_inst_probe:                  ## @i2c_multi_inst_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_acpi_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_ACPI_COMPANION
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_multi_inst_count_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_24
## %bb.3:
	movq	_clients@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	%r12d, (%rax)
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.6:
	addq	$12, %r13
	xorl	%ebx, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -12(%r13)
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-84(%rbp), %edi
	movq	-12(%r13), %rsi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_dev_name
	movq	-12(%r13), %r8
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rcx
	movl	%ebx, %r9d
	callq	_snprintf
	movq	%r14, -96(%rbp)
	movq	_IRQ_RESOURCE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-4(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %eax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r12, %r15
	movl	$0, %r12d
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_acpi_dev_gpio_irq_get
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_platform_get_irq
	movl	%eax, %ecx
	testl	%eax, %eax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	js	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %r15
	movl	%ecx, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, -88(%rbp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-96(%rbp), %rdx
	callq	_i2c_acpi_new_device
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_15:
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_21
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_11:
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_20:
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ecx, %r12d
	callq	_dev_dbg
LBB0_21:
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.22:
	movl	%ebx, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_i2c_unregister_device
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_23
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error ACPI match data is missing\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_clients,4,2                    ## @clients
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s-%s.%d"

	.comm	_IRQ_RESOURCE_TYPE,4,2          ## @IRQ_RESOURCE_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"Error requesting irq at index %d: %d\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"Error creating i2c-client, idx %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error finding driver, idx %d\n"

	.no_dead_strip	_i2c_multi_inst_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_multi_inst_probe
_i2c_multi_inst_probe:                  ; @i2c_multi_inst_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	stp	xzr, xzr, [sp, #24]
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_acpi_match_device
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x24, [x0]
	mov	x0, x20
	bl	_ACPI_COMPANION
	mov	x22, x0
	bl	_i2c_multi_inst_count_resources
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.2:
Lloh3:
	adrp	x8, _clients@GOTPAGE
Lloh4:
	ldr	x8, [x8, _clients@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_struct_size
	mov	x1, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kmalloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
	str	w23, [x0]
	cbz	w23, LBB0_12
; %bb.4:
	mov	x21, #0
Lloh9:
	adrp	x26, _I2C_NAME_SIZE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _I2C_NAME_SIZE@GOTPAGEOFF]
	add	x25, x24, #12
	add	x27, sp, #40
Lloh11:
	adrp	x28, _IRQ_RESOURCE_TYPE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _IRQ_RESOURCE_TYPE@GOTPAGEOFF]
Lloh13:
	adrp	x24, l_.str.1@PAGE
Lloh14:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x25, #-12]
	cbz	x8, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #36]
	ldur	x1, [x25, #-12]
	ldr	w2, [x26]
	bl	_strlcpy
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
	ldur	x4, [x25, #-12]
	add	x0, sp, #40
	mov	w1, #32
	mov	x2, x24
	mov	x5, x21
	bl	_snprintf
	str	x27, [sp, #24]
	ldur	w8, [x25, #-4]
	ldr	w9, [x28]
	and	w8, w9, w8
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	mov	x0, x22
	bl	_acpi_dev_gpio_irq_get
	mov	x23, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_21
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_26
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [sp, #32]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_acpi_new_device
	ldr	x8, [x19, #8]
	str	w0, [x8, x21, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x25, x25, #16
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w23, #0
	b	LBB0_16
LBB0_13:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	ldr	x8, [sp, #72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.17:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w23, w8
	cbnz	w21, LBB0_24
	b	LBB0_16
LBB0_19:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_PTR_ERR
	mov	x23, x0
Lloh29:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_23
; %bb.20:
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_21:
	ldr	w8, [x25]
	stp	x8, x23, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_22:
	mov	x0, x20
	bl	_dev_err
LBB0_23:
	cbz	w21, LBB0_16
LBB0_24:
	mov	w8, w21
	sub	x20, x8, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_i2c_unregister_device
	add	x8, x20, #1
	sub	x20, x20, #1
	cmp	x8, #1
	b.hi	LBB0_25
	b	LBB0_16
LBB0_26:
	ldr	w2, [x25]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	bl	_dev_dbg
	cbnz	w21, LBB0_24
	b	LBB0_16
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error ACPI match data is missing\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_clients,4,2                    ; @clients
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s-%s.%d"

	.comm	_IRQ_RESOURCE_TYPE,4,2          ; @IRQ_RESOURCE_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"Error requesting irq at index %d: %d\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"Error creating i2c-client, idx %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error finding driver, idx %d\n"

	.no_dead_strip	_i2c_multi_inst_probe
.subsections_via_symbols
