	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_mux_reg_probe
_i2c_mux_reg_probe:                     ## @i2c_mux_reg_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	$24, %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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$56, %edx
	callq	_memcpy
LBB0_5:
	movl	48(%r12), %edi
	callq	_i2c_get_adapter
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r15
	cmpq	$0, 40(%r12)
	je	LBB0_11
LBB0_13:
	movl	(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.14:
	movl	$22, %ecx
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.16:
	movl	4(%r12), %edx
	movq	_i2c_mux_reg_select@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i2c_mux_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r13
	movq	%r12, 16(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	cmpq	$0, 32(%r12)
	je	LBB0_20
## %bb.19:
	movq	_i2c_mux_reg_deselect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_20:
	movl	4(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_29
## %bb.21:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %eax
	leal	(%r15,%rax), %esi
	testl	%eax, %eax
	cmovel	%eax, %esi
	movq	16(%r12), %rax
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rax,%r15,4), %ecx
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r13, %rdi
	callq	_i2c_mux_add_adapter
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%r15
	movslq	4(%r12), %rdx
	cmpq	%rdx, %r15
	jl	LBB0_23
LBB0_29:
	movq	(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_mux_reg_probe_dt
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_28
## %bb.8:
	testl	%ebx, %ebx
	jns	LBB0_5
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_28
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_26:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_i2c_mux_del_adapters
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_27:
	movq	%r15, %rdi
	callq	_i2c_put_adapter
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error parsing device tree"

L_.str.1:                               ## @.str.1
	.asciz	"Register not set, using platform resource\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"Invalid register size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_i2c_mux_reg_select,4,2         ## @i2c_mux_reg_select
	.comm	_i2c_mux_reg_deselect,4,2       ## @i2c_mux_reg_deselect
L_.str.3:                               ## @.str.3
	.asciz	"%d port mux on %s adapter\n"

	.no_dead_strip	_i2c_mux_reg_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_mux_reg_probe
_i2c_mux_reg_probe:                     ; @i2c_mux_reg_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_18
; %bb.2:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x1, x0
	mov	x0, x20
	mov	w2, #56
	bl	_memcpy
LBB0_3:
	ldr	w0, [x20, #48]
	bl	_i2c_get_adapter
	cbz	x0, LBB0_21
; %bb.4:
	mov	x21, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_23
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #4
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #22
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_26
; %bb.6:
	ldr	w2, [x20, #4]
Lloh3:
	adrp	x8, _i2c_mux_reg_select@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i2c_mux_reg_select@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_i2c_mux_alloc
	cbz	x0, LBB0_25
; %bb.7:
	mov	x22, x0
	str	x20, [x0, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _i2c_mux_reg_deselect@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i2c_mux_reg_deselect@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22, #8]
LBB0_9:
	ldr	w2, [x20, #4]
	cmp	w2, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	add	w9, w24, w8
	cmp	w8, #0
	csel	w1, wzr, w9, eq
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w3, [x8, x24, lsl #2]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w3, #0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #24]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x22
	bl	_i2c_mux_add_adapter
	cbnz	w0, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x2, [x20, #4]
	cmp	x24, x2
	b.lt	LBB0_11
LBB0_16:
	ldr	x8, [x22]
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	w23, #0
	b	LBB0_30
LBB0_17:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_mux_reg_probe_dt
	mov	x23, x0
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_30
; %bb.19:
	tbz	w23, #31, LBB0_3
; %bb.20:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_30
LBB0_21:
Lloh18:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_30
LBB0_23:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh22:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	bl	_resource_size
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.24:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_29
LBB0_25:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_29
LBB0_28:
	mov	x23, x0
	mov	x0, x22
	bl	_i2c_mux_del_adapters
LBB0_29:
	mov	x0, x21
	bl	_i2c_put_adapter
LBB0_30:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error parsing device tree"

l_.str.1:                               ; @.str.1
	.asciz	"Register not set, using platform resource\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"Invalid register size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_i2c_mux_reg_select,4,2         ; @i2c_mux_reg_select
	.comm	_i2c_mux_reg_deselect,4,2       ; @i2c_mux_reg_deselect
l_.str.3:                               ; @.str.3
	.asciz	"%d port mux on %s adapter\n"

	.no_dead_strip	_i2c_mux_reg_probe
.subsections_via_symbols
