	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si2168_probe
_si2168_probe:                          ## @si2168_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, %r15
	movq	(%rdi), %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	leaq	52(%r14), %rdi
	callq	_mutex_init
	leaq	l_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$13, %edx
	xorl	%ecx, %ecx
	callq	_cmd_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_si2168_cmd_execute
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	leaq	l_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %edx
	movl	$1, %ecx
	callq	_cmd_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_si2168_cmd_execute
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$13, %ecx
	callq	_cmd_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_si2168_cmd_execute
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	-48(%rbp), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	12(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	16(%rax), %ecx
	movl	%ecx, (%r14)
	addl	$-128, %ecx
	cmpl	$4, %ecx
	jae	LBB0_6
## %bb.10:
	movslq	%ecx, %rcx
	leaq	l_switch.table.si2168_probe(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r14)
	movl	4(%rax), %ecx
	movl	12(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	addl	$-3145728, %edx                 ## imm = 0xFFD00000
	orl	%ecx, %edx
	movl	16(%rax), %ecx
	shll	$8, %ecx
	addl	$-12288, %ecx                   ## imm = 0xD000
	orl	20(%rax), %edx
	orl	%ecx, %edx
	movl	%edx, 4(%r14)
	movl	8(%r15), %edi
	movq	_I2C_MUX_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_si2168_select@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_si2168_deselect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_alloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r15, 8(%rax)
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	leaq	24(%r14), %rbx
	movq	%r14, %rdi
	addq	$32, %rdi
	movq	_si2168_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, 24(%r14)
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	24(%r13), %rcx
	movl	%eax, (%rcx)
	movq	16(%r13), %rax
	movq	%rbx, (%rax)
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%r14)
	movl	4(%r14), %edx
	movl	%edx, %eax
	movzbl	%dh, %ebx
	shrl	$24, %edx
	shrl	$16, %eax
	movzbl	%al, %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_info
	movl	4(%r14), %edx
	movl	%edx, %eax
	movzbl	%dh, %ebx
	movzbl	%dl, %r9d
	shrl	$24, %edx
	shrl	$16, %eax
	movzbl	%al, %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	movl	12(%rax), %r8d
	movl	16(%rax), %r9d
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
	movl	%ebx, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %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	"\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"\300\022\000\f\000\r\026\000\000\000\000\000\000"

l_.str.2:                               ## @.str.2
	.asciz	"\300\006\001\017\000  \001"

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"\002"

	.comm	_SI2168_A20_FIRMWARE,4,2        ## @SI2168_A20_FIRMWARE
	.comm	_SI2168_A30_FIRMWARE,4,2        ## @SI2168_A30_FIRMWARE
	.comm	_SI2168_B40_FIRMWARE,4,2        ## @SI2168_B40_FIRMWARE
	.comm	_SI2168_D60_FIRMWARE,4,2        ## @SI2168_D60_FIRMWARE
L_.str.4:                               ## @.str.4
	.asciz	"unknown chip version Si21%d-%c%c%c\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_I2C_MUX_LOCKED,4,2             ## @I2C_MUX_LOCKED
	.comm	_si2168_select,4,2              ## @si2168_select
	.comm	_si2168_deselect,4,2            ## @si2168_deselect
	.comm	_si2168_ops,4,2                 ## @si2168_ops
L_.str.5:                               ## @.str.5
	.asciz	"Silicon Labs Si2168-%c%d%d successfully identified\n"

L_.str.6:                               ## @.str.6
	.asciz	"firmware version: %c %d.%d.%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"probe failed = %d\n"

	.no_dead_strip	_si2168_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.si2168_probe
l_switch.table.si2168_probe:
	.quad	_SI2168_D60_FIRMWARE
	.quad	_SI2168_B40_FIRMWARE
	.quad	_SI2168_A30_FIRMWARE
	.quad	_SI2168_A20_FIRMWARE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si2168_probe
_si2168_probe:                          ; @si2168_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #52
	bl	_mutex_init
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	mov	w2, #13
	mov	w3, #0
	bl	_cmd_init
	add	x1, sp, #40
	mov	x0, x19
	bl	_si2168_cmd_execute
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #40
	mov	w2, #8
	mov	w3, #1
	bl	_cmd_init
	add	x1, sp, #40
	mov	x0, x19
	bl	_si2168_cmd_execute
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #40
	mov	w2, #1
	mov	w3, #13
	bl	_cmd_init
	add	x1, sp, #40
	mov	x0, x19
	bl	_si2168_cmd_execute
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	x8, [sp, #40]
	ldp	w9, w10, [x8, #4]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w11, [x8, #12]
	orr	w9, w9, w10, lsl #8
	orr	w9, w9, w11
	str	w9, [x20]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hs	LBB0_9
; %bb.5:
Lloh11:
	adrp	x10, l_switch.table.si2168_probe@PAGE
Lloh12:
	add	x10, x10, l_switch.table.si2168_probe@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w9, [x9]
	str	w9, [x20, #48]
	ldr	w9, [x8, #4]
	ldp	w10, w11, [x8, #12]
	lsl	w10, w10, #16
	sub	w10, w10, #768, lsl #12         ; =3145728
	orr	w9, w10, w9, lsl #24
	lsl	w10, w11, #8
	sub	w10, w10, #3, lsl #12           ; =12288
	ldr	w8, [x8, #20]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x20, #4]
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x8, _I2C_MUX_LOCKED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I2C_MUX_LOCKED@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x8, _si2168_select@GOTPAGE
Lloh17:
	ldr	x8, [x8, _si2168_select@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
Lloh19:
	adrp	x8, _si2168_deselect@GOTPAGE
Lloh20:
	ldr	x8, [x8, _si2168_deselect@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	bl	_i2c_mux_alloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_10
; %bb.6:
	str	x19, [x0, #8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.7:
	add	x0, x20, #32
Lloh22:
	adrp	x1, _si2168_ops@GOTPAGE
Lloh23:
	ldr	x1, [x1, _si2168_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x20, #24]!
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldp	x10, x9, [x22, #16]
	str	w8, [x9]
	str	x20, [x10]
	ldur	w8, [x20, #-20]
	lsr	w2, w8, #24
	ldr	q0, [x22]
	stur	q0, [x20, #-16]
	ubfx	w3, w8, #16, #8
	ubfx	w4, w8, #8, #8
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldur	w8, [x20, #-20]
	lsr	w2, w8, #24
	ubfx	w3, w8, #16, #8
	ubfx	w4, w8, #8, #8
	and	w8, w8, #0xff
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	bl	_dev_info
	b	LBB0_14
LBB0_8:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_9:
	ldp	w10, w9, [x8, #4]
	ldp	w11, w8, [x8, #12]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x20
	bl	_kfree
LBB0_13:
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"\300\022\000\f\000\r\026\000\000\000\000\000\000"

l_.str.2:                               ; @.str.2
	.asciz	"\300\006\001\017\000  \001"

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"\002"

	.comm	_SI2168_A20_FIRMWARE,4,2        ; @SI2168_A20_FIRMWARE
	.comm	_SI2168_A30_FIRMWARE,4,2        ; @SI2168_A30_FIRMWARE
	.comm	_SI2168_B40_FIRMWARE,4,2        ; @SI2168_B40_FIRMWARE
	.comm	_SI2168_D60_FIRMWARE,4,2        ; @SI2168_D60_FIRMWARE
l_.str.4:                               ; @.str.4
	.asciz	"unknown chip version Si21%d-%c%c%c\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_I2C_MUX_LOCKED,4,2             ; @I2C_MUX_LOCKED
	.comm	_si2168_select,4,2              ; @si2168_select
	.comm	_si2168_deselect,4,2            ; @si2168_deselect
	.comm	_si2168_ops,4,2                 ; @si2168_ops
l_.str.5:                               ; @.str.5
	.asciz	"Silicon Labs Si2168-%c%d%d successfully identified\n"

l_.str.6:                               ; @.str.6
	.asciz	"firmware version: %c %d.%d.%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"probe failed = %d\n"

	.no_dead_strip	_si2168_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.si2168_probe
l_switch.table.si2168_probe:
	.quad	_SI2168_D60_FIRMWARE
	.quad	_SI2168_B40_FIRMWARE
	.quad	_SI2168_A30_FIRMWARE
	.quad	_SI2168_A20_FIRMWARE

.subsections_via_symbols
