	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc4306_probe
_ltc4306_probe:                         ## @ltc4306_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, %rbx
	movq	8(%rdi), %r13
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_chips@GOTPCREL(%rip), %rax
	movq	%r15, %r12
	movq	(%rax), %r15
	movq	_ltc4306_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_i2c_match_id
	movq	(%rax), %rax
	leaq	(%r15,%rax,4), %r14
	movq	%r12, %r15
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_property_read_bool
	movl	(%r14), %edx
	movq	_I2C_MUX_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_ltc4306_select_mux@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ltc4306_deselect_mux@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$16, %ecx
	callq	_i2c_mux_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_mux_priv
	movq	%rbx, %r13
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	_ltc4306_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_14:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_16
## %bb.15:
	movl	$1, %edi
	callq	_udelay
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_LTC_REG_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_regmap_write
	testq	%rax, %rax
	js	LBB0_28
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_property_read_bool
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	_LTC_DOWNSTREAM_ACCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_property_read_bool
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:
	movq	_LTC_UPSTREAM_ACCL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	orl	%ebx, %eax
	movq	(%r14), %rdi
	movq	_LTC_REG_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_regmap_write
	testq	%rax, %rax
	js	LBB0_29
## %bb.22:
	movq	%r14, %rdi
	callq	_ltc4306_gpio_init
	testl	%eax, %eax
	js	LBB0_30
## %bb.23:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movl	$0, %ebx
	jle	LBB0_27
## %bb.24:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	testl	%eax, %eax
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	incl	%ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	jl	LBB0_25
LBB0_27:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_dev_info
	jmp	LBB0_11
LBB0_28:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_29:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_30:
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_31:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_i2c_mux_del_adapters
	movl	%r15d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_chips,8,3                      ## @chips
	.comm	_ltc4306_id,4,2                 ## @ltc4306_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-mux-idle-disconnect"

	.comm	_I2C_MUX_LOCKED,4,2             ## @I2C_MUX_LOCKED
	.comm	_ltc4306_select_mux,4,2         ## @ltc4306_select_mux
	.comm	_ltc4306_deselect_mux,8,3       ## @ltc4306_deselect_mux
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ltc4306_regmap_config,4,2      ## @ltc4306_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate register map: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_LTC_REG_SWITCH,4,2             ## @LTC_REG_SWITCH
L_.str.3:                               ## @.str.3
	.asciz	"probe failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"ltc,downstream-accelerators-enable"

	.comm	_LTC_DOWNSTREAM_ACCL_EN,4,2     ## @LTC_DOWNSTREAM_ACCL_EN
L_.str.5:                               ## @.str.5
	.asciz	"ltc,upstream-accelerators-enable"

	.comm	_LTC_UPSTREAM_ACCL_EN,4,2       ## @LTC_UPSTREAM_ACCL_EN
	.comm	_LTC_REG_CONFIG,4,2             ## @LTC_REG_CONFIG
L_.str.6:                               ## @.str.6
	.asciz	"registered %d multiplexed busses for I2C switch %s\n"

	.no_dead_strip	_ltc4306_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc4306_probe
_ltc4306_probe:                         ; @ltc4306_probe
	.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, x0
	ldr	x22, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_of_device_get_match_data
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _chips@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chips@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _ltc4306_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ltc4306_id@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_i2c_match_id
	ldr	x8, [x0]
	add	x21, x21, x8, lsl #2
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	ldr	w2, [x21]
Lloh8:
	adrp	x8, _I2C_MUX_LOCKED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_MUX_LOCKED@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _ltc4306_select_mux@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ltc4306_select_mux@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x8, _ltc4306_deselect_mux@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ltc4306_deselect_mux@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x6, xzr, x8, eq
	mov	x0, x22
	mov	x1, x19
	mov	w3, #16
	bl	_i2c_mux_alloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	bl	_i2c_mux_priv
	mov	x23, x0
	str	x21, [x0, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_i2c_set_clientdata
Lloh17:
	adrp	x1, _ltc4306_regmap_config@GOTPAGE
Lloh18:
	ldr	x1, [x1, _ltc4306_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	x0, [x23]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x23]
	bl	_PTR_ERR
	mov	x23, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
LBB0_8:
Lloh23:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x24
	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
	b	_PTR_ERR
LBB0_10:
	cbz	x24, LBB0_12
; %bb.11:
	mov	w0, #1
	bl	_udelay
	mov	x0, x24
	mov	w1, #1
	bl	_gpiod_set_value
LBB0_12:
	ldr	x0, [x23]
Lloh28:
	adrp	x8, _LTC_REG_SWITCH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LTC_REG_SWITCH@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	tbnz	x0, #63, LBB0_19
; %bb.13:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
Lloh33:
	adrp	x8, _LTC_DOWNSTREAM_ACCL_EN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LTC_DOWNSTREAM_ACCL_EN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w24, wzr, w8, eq
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
Lloh38:
	adrp	x8, _LTC_UPSTREAM_ACCL_EN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LTC_UPSTREAM_ACCL_EN@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w24
	ldr	x0, [x23]
Lloh41:
	adrp	x8, _LTC_REG_CONFIG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LTC_REG_CONFIG@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	x0, #63, LBB0_20
; %bb.14:
	mov	x0, x23
	bl	_ltc4306_gpio_init
	tbnz	w0, #31, LBB0_21
; %bb.15:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:
	mov	w24, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x24
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	cbnz	w0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w24, w24, #1
	ldr	w8, [x21]
	cmp	w24, w8
	b.lt	LBB0_17
	b	LBB0_23
LBB0_19:
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_20:
Lloh46:
	adrp	x8, _ENODEV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_21:
	mov	x23, x0
	b	LBB0_7
LBB0_22:
	mov	w24, #0
LBB0_23:
	ldr	w3, [x20]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_dev_info
	mov	w23, #0
	b	LBB0_7
LBB0_24:
	mov	x23, x0
	mov	x0, x22
	bl	_i2c_mux_del_adapters
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_chips,8,3                      ; @chips
	.comm	_ltc4306_id,4,2                 ; @ltc4306_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-mux-idle-disconnect"

	.comm	_I2C_MUX_LOCKED,4,2             ; @I2C_MUX_LOCKED
	.comm	_ltc4306_select_mux,4,2         ; @ltc4306_select_mux
	.comm	_ltc4306_deselect_mux,8,3       ; @ltc4306_deselect_mux
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ltc4306_regmap_config,4,2      ; @ltc4306_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate register map: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_LTC_REG_SWITCH,4,2             ; @LTC_REG_SWITCH
l_.str.3:                               ; @.str.3
	.asciz	"probe failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"ltc,downstream-accelerators-enable"

	.comm	_LTC_DOWNSTREAM_ACCL_EN,4,2     ; @LTC_DOWNSTREAM_ACCL_EN
l_.str.5:                               ; @.str.5
	.asciz	"ltc,upstream-accelerators-enable"

	.comm	_LTC_UPSTREAM_ACCL_EN,4,2       ; @LTC_UPSTREAM_ACCL_EN
	.comm	_LTC_REG_CONFIG,4,2             ; @LTC_REG_CONFIG
l_.str.6:                               ; @.str.6
	.asciz	"registered %d multiplexed busses for I2C switch %s\n"

	.no_dead_strip	_ltc4306_probe
.subsections_via_symbols
