	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_demux_pinctrl_probe
_i2c_demux_pinctrl_probe:               ## @i2c_demux_pinctrl_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	$40, %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	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_count_phandle_with_args
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_2:
	movl	%eax, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	movq	%rax, %r13
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$24, %edx
	callq	_devm_kcalloc
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	24(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_string
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %eax
	shlq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movq	8(%r13), %rax
	movq	%r12, 8(%rax,%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_devm_kstrdup
	movq	%rax, 16(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rsi
	callq	_devm_kstrdup
	movq	%rax, 8(%rbx)
	movl	$3, (%rbx)
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	callq	_of_changeset_init
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_of_changeset_update_property
	incl	%r15d
	addq	$24, %rbx
	addq	$16, %r14
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.10:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 16(%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_pm_runtime_no_callbacks
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_i2c_demux_activate_master
	movq	_dev_attr_available_masters@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_18
LBB0_12:
	movq	_dev_attr_current_master@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movl	%eax, %r14d
	movq	_dev_attr_available_masters@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_remove_file
LBB0_14:
	movl	%r12d, %r15d
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_16:
	movl	%r15d, %r15d
	shlq	$4, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_of_node_put
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_of_changeset_destroy
	addq	$16, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
LBB0_18:
	movl	%r14d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-parent"

L_.str.1:                               ## @.str.1
	.asciz	"Need at least two I2C masters to switch\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_chan,4,2                       ## @chan
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"i2c-bus-name"

L_.str.3:                               ## @.str.3
	.asciz	"can't get phandle for parent %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"status"

L_.str.5:                               ## @.str.5
	.asciz	"ok"

	.comm	_dev_attr_available_masters,4,2 ## @dev_attr_available_masters
	.comm	_dev_attr_current_master,4,2    ## @dev_attr_current_master
	.no_dead_strip	_i2c_demux_pinctrl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_demux_pinctrl_probe
_i2c_demux_pinctrl_probe:               ; @i2c_demux_pinctrl_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	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_count_phandle_with_args
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x22, x0
Lloh6:
	adrp	x8, _chan@GOTPAGE
Lloh7:
	ldr	x8, [x8, _chan@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_struct_size
	mov	x1, x0
Lloh9:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_devm_kzalloc
	mov	x19, x0
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #24
	bl	_devm_kcalloc
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_5:
	mov	x0, x25
	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_6:
	mov	x24, x0
	add	x2, x19, #24
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_string
	mov	x25, x0
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x25, #0
	mov	x23, #0
	mov	w26, w22
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_of_parse_phandle
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x0
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x0, [x8, #8]
	ldr	w2, [x27]
	mov	x0, x20
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_devm_kstrdup
	str	x0, [x24, #16]
	ldr	w2, [x27]
	mov	x0, x20
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_devm_kstrdup
	str	x0, [x24, #8]
	mov	w8, #3
	str	w8, [x24]
	ldr	x8, [x19, #8]
	add	x0, x8, x25
	bl	_of_changeset_init
	ldr	x8, [x19, #8]
	add	x0, x8, x25
	mov	x1, x28
	mov	x2, x24
	bl	_of_changeset_update_property
	add	x23, x23, #1
	add	x24, x24, #24
	add	x25, x25, #16
	cmp	x26, x23
	b.ne	LBB0_8
; %bb.10:
	str	w22, [x19]
	str	x20, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_pm_runtime_no_callbacks
	mov	x0, x19
	mov	w1, #0
	bl	_i2c_demux_activate_master
Lloh21:
	adrp	x1, _dev_attr_available_masters@GOTPAGE
Lloh22:
	ldr	x1, [x1, _dev_attr_available_masters@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	cbz	w0, LBB0_13
; %bb.11:
	mov	x25, x0
	b	LBB0_15
LBB0_12:
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w25, w8
	cbnz	w23, LBB0_16
	b	LBB0_5
LBB0_13:
Lloh28:
	adrp	x1, _dev_attr_current_master@GOTPAGE
Lloh29:
	ldr	x1, [x1, _dev_attr_current_master@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	mov	x25, x0
	cbz	w0, LBB0_5
; %bb.14:
Lloh30:
	adrp	x1, _dev_attr_available_masters@GOTPAGE
Lloh31:
	ldr	x1, [x1, _dev_attr_available_masters@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_remove_file
LBB0_15:
	mov	x23, x26
	cbz	w23, LBB0_5
LBB0_16:
	mov	x20, #0
	mov	w8, w23
	lsl	x21, x8, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	ldr	x0, [x8, #8]
	bl	_of_node_put
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_of_changeset_destroy
	add	x20, x20, #16
	cmp	x21, x20
	b.ne	LBB0_17
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-parent"

l_.str.1:                               ; @.str.1
	.asciz	"Need at least two I2C masters to switch\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_chan,4,2                       ; @chan
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"i2c-bus-name"

l_.str.3:                               ; @.str.3
	.asciz	"can't get phandle for parent %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"status"

l_.str.5:                               ; @.str.5
	.asciz	"ok"

	.comm	_dev_attr_available_masters,4,2 ; @dev_attr_available_masters
	.comm	_dev_attr_current_master,4,2    ; @dev_attr_current_master
	.no_dead_strip	_i2c_demux_pinctrl_probe
.subsections_via_symbols
