	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_demux_activate_master
_i2c_demux_activate_master:             ## @i2c_demux_activate_master
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	(%rsi,%rsi,2), %r13
	leaq	(,%r13,8), %r15
	movq	16(%rdi), %rdi
	addq	%r15, %rdi
	callq	_of_changeset_apply
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	16(%rbx), %rax
	movl	16(%rax,%r13,8), %edi
	callq	_of_find_i2c_adapter_by_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %edi
	callq	_devm_pinctrl_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_5
	jmp	LBB0_13
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_9:
	movl	104(%rbx), %esi
	movq	%r12, %rdi
	callq	_pinctrl_lookup_state
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_pinctrl_select_state
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_12
LBB0_5:
	addq	$16, -64(%rbp)                  ## 8-byte Folded Spill
	movq	16(%rbx), %rax
	movq	%rdi, 8(%rax,%r13,8)
	movq	%r14, (%rbx)
	movq	_i2c_demux_master_xfer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	80(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 96(%rbx)
	movq	24(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%rax, 88(%rbx)
LBB0_7:
	movq	_i2c_demux_functionality@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	leaq	24(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	76(%rbx), %r12d
	movq	%rdi, %r13
	callq	_i2c_adapter_id
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%rbx)
	movq	%rbx, 56(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movups	(%r13), %xmm0
	movups	%xmm0, 40(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_add_adapter
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_16
## %bb.8:
	movl	%eax, %r12d
	movq	%r13, %rdi
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %r12d
LBB0_13:
	callq	_i2c_put_adapter
LBB0_14:
	addq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_of_changeset_revert
LBB0_15:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subq	(%rax), %rcx
	movq	%rcx, (%rbx)
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i2c_demux_master_xfer,8,3      ## @i2c_demux_master_xfer
	.comm	_i2c_demux_functionality,4,2    ## @i2c_demux_functionality
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-demux (master i2c-%d)"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"failed to setup demux-adapter %d (%d)\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_i2c_demux_activate_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_demux_activate_master
_i2c_demux_activate_master:             ; @i2c_demux_activate_master
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	mov	w9, #24
	madd	x0, x1, x9, x8
	bl	_of_changeset_apply
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	w0, [x8, #16]
	bl	_of_find_i2c_adapter_by_node
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x24, x0
	ldr	w0, [x24, #16]!
	bl	_devm_pinctrl_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
	b	LBB0_13
LBB0_4:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_5:
	ldr	w1, [x19, #104]
	mov	x0, x22
	bl	_pinctrl_lookup_state
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_PTR_ERR
	b	LBB0_12
LBB0_7:
	mov	x0, x22
	mov	x1, x23
	bl	_pinctrl_select_state
	tbnz	w0, #31, LBB0_12
LBB0_8:
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x8, x20, x9, x8
	str	x21, [x8, #8]
Lloh6:
	adrp	x8, _i2c_demux_master_xfer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i2c_demux_master_xfer@GOTPAGEOFF]
	str	x20, [x19]
Lloh8:
	ldr	x8, [x8]
	add	x23, x19, #80
	str	x8, [x19, #96]
	ldr	x9, [x21, #24]
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.9:
	str	x8, [x19, #88]
LBB0_10:
Lloh9:
	adrp	x8, _i2c_demux_functionality@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i2c_demux_functionality@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	w22, [x19, #76]
	mov	x0, x21
	bl	_i2c_adapter_id
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
Lloh14:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	stp	x19, x23, [x19, #56]
	str	x24, [x19, #32]
	ldr	q0, [x21]
	stur	q0, [x19, #40]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	mov	x0, x19
	str	w8, [x0, #24]!
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	w22, #0
	b	LBB0_16
LBB0_12:
	mov	x22, x0
LBB0_13:
	mov	x0, x21
	bl	_i2c_put_adapter
LBB0_14:
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x0, x20, x9, x8
	bl	_of_changeset_revert
LBB0_15:
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	neg	x8, x8
	str	x8, [x19]
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i2c_demux_master_xfer,8,3      ; @i2c_demux_master_xfer
	.comm	_i2c_demux_functionality,4,2    ; @i2c_demux_functionality
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-demux (master i2c-%d)"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"failed to setup demux-adapter %d (%d)\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_i2c_demux_activate_master
.subsections_via_symbols
