	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_arbitrator_probe
_i2c_arbitrator_probe:                  ## @i2c_arbitrator_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	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_I2C_MUX_ARBITRATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_i2c_arbitrator_select@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_i2c_arbitrator_deselect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	$1, %edx
	movl	$32, %ecx
	callq	_i2c_mux_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i2c_mux_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r12), %rdi
	jmp	LBB0_14
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	16(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r12), %rdi
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_15:
	movl	(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_27
## %bb.16:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_7
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	$10, (%r12)
LBB0_19:
	leaq	4(%r12), %rbx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	$3000, (%rbx)                   ## imm = 0xBB8
LBB0_21:
	addq	$8, %r12
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	$50000, (%r12)                  ## imm = 0xC350
LBB0_23:
	leaq	L_.str.10(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_get_i2c_adapter_by_node
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_of_node_put
	cmpl	$0, (%r14)
	je	LBB0_29
## %bb.25:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	testl	%eax, %eax
	je	LBB0_7
## %bb.26:
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_i2c_put_adapter
	movl	%r15d, %ebx
	jmp	LBB0_7
LBB0_27:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
LBB0_28:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_4
LBB0_29:
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find device tree node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Platform data is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_MUX_ARBITRATOR,4,2         ## @I2C_MUX_ARBITRATOR
	.comm	_i2c_arbitrator_select,4,2      ## @i2c_arbitrator_select
	.comm	_i2c_arbitrator_deselect,4,2    ## @i2c_arbitrator_deselect
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"our-claim"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"could not get \"our-claim\" GPIO (%ld)\n"

L_.str.4:                               ## @.str.4
	.asciz	"their-claim"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.5:                               ## @.str.5
	.asciz	"could not get \"their-claim\" GPIO (%ld)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Only one other master is supported\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.7:                               ## @.str.7
	.asciz	"slew-delay-us"

L_.str.8:                               ## @.str.8
	.asciz	"wait-retry-us"

L_.str.9:                               ## @.str.9
	.asciz	"wait-free-us"

L_.str.10:                              ## @.str.10
	.asciz	"i2c-parent"

L_.str.11:                              ## @.str.11
	.asciz	"Cannot parse i2c-parent\n"

L_.str.12:                              ## @.str.12
	.asciz	"Cannot find parent bus\n"

	.no_dead_strip	_i2c_arbitrator_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_arbitrator_probe
_i2c_arbitrator_probe:                  ; @i2c_arbitrator_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	x21, [x0]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
LBB0_6:
	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:
Lloh8:
	adrp	x8, _I2C_MUX_ARBITRATOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_MUX_ARBITRATOR@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _i2c_arbitrator_select@GOTPAGE
Lloh12:
	ldr	x8, [x8, _i2c_arbitrator_select@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x8, _i2c_arbitrator_deselect@GOTPAGE
Lloh15:
	ldr	x8, [x8, _i2c_arbitrator_deselect@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #32
	bl	_i2c_mux_alloc
	cbz	x0, LBB0_11
; %bb.9:
	mov	x20, x0
	bl	_i2c_mux_priv
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh17:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x22, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x22, #24]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22, #24]
	b	LBB0_14
LBB0_11:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
Lloh26:
	adrp	x23, _GPIOD_IN@GOTPAGE
Lloh27:
	ldr	x23, [x23, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x22, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x22, #16]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22, #16]
LBB0_14:
	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
	b	_PTR_ERR
LBB0_15:
	ldr	w3, [x23]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_devm_gpiod_get_index
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_27
; %bb.16:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x23, x0
Lloh34:
	adrp	x24, _EPROBE_DEFER@GOTPAGE
Lloh35:
	ldr	x24, [x24, _EPROBE_DEFER@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.17:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_19
; %bb.18:
	mov	w8, #10
	str	w8, [x22]
LBB0_19:
	add	x23, x22, #4
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_of_property_read_u32
	cbz	x0, LBB0_21
; %bb.20:
	mov	w8, #3000
	str	w8, [x23]
LBB0_21:
	add	x22, x22, #8
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_23
; %bb.22:
	mov	w8, #50000
	str	w8, [x22]
LBB0_23:
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_28
; %bb.24:
	mov	x21, x0
	bl	_of_get_i2c_adapter_by_node
	str	w0, [x20]
	mov	x0, x21
	bl	_of_node_put
	ldr	w8, [x20]
	cbz	w8, LBB0_29
; %bb.25:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.26:
	ldr	w0, [x20]
	bl	_i2c_put_adapter
	b	LBB0_7
LBB0_27:
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_28:
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_3
LBB0_29:
Lloh48:
	adrp	x1, l_.str.12@PAGE
Lloh49:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x24]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find device tree node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Platform data is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_MUX_ARBITRATOR,4,2         ; @I2C_MUX_ARBITRATOR
	.comm	_i2c_arbitrator_select,4,2      ; @i2c_arbitrator_select
	.comm	_i2c_arbitrator_deselect,4,2    ; @i2c_arbitrator_deselect
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"our-claim"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"could not get \"our-claim\" GPIO (%ld)\n"

l_.str.4:                               ; @.str.4
	.asciz	"their-claim"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.5:                               ; @.str.5
	.asciz	"could not get \"their-claim\" GPIO (%ld)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Only one other master is supported\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.7:                               ; @.str.7
	.asciz	"slew-delay-us"

l_.str.8:                               ; @.str.8
	.asciz	"wait-retry-us"

l_.str.9:                               ; @.str.9
	.asciz	"wait-free-us"

l_.str.10:                              ; @.str.10
	.asciz	"i2c-parent"

l_.str.11:                              ; @.str.11
	.asciz	"Cannot parse i2c-parent\n"

l_.str.12:                              ; @.str.12
	.asciz	"Cannot find parent bus\n"

	.no_dead_strip	_i2c_arbitrator_probe
.subsections_via_symbols
