	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ec168_i2c_xfer
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ec168_i2c_xfer:                        ## @ec168_i2c_xfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	cmpl	$3, %r15d
	jl	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_WRITE_I2C@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movq	16(%rbx,%rax), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, -88(%rbp)
	addq	$256, %rcx                      ## imm = 0x100
	movq	%rcx, -80(%rbp)
	movq	24(%rbx,%rax), %rax
	decq	%rax
	movq	%rax, -64(%rbp)
	addq	$8, %rdx
	movq	%rdx, -72(%rbp)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	callq	_ec168_ctrl_msg
	movl	%eax, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %r12d
	testl	%r13d, %r13d
	jne	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %r12d
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r12), %r14d
	movslq	%r12d, %rax
	cmpl	%r15d, %r14d
	jge	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rcx
	shlq	$5, %rcx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx,%rcx)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	shlq	$5, %rax
	movq	8(%rbx,%rax), %rdx
	movq	_ec168_ec100_config@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_READ_DEMOD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movq	$0, -88(%rbp)
	movq	16(%rbx,%rax), %rax
	movq	(%rax), %rax
	movl	$65280, %edx                    ## imm = 0xFF00
	addq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	24(%rbx,%rcx), %rax
	movq	%rax, -64(%rbp)
	movq	16(%rbx,%rcx), %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	callq	_ec168_ctrl_msg
	movl	%eax, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	shlq	$5, %rax
	movq	8(%rbx,%rax), %rcx
	movq	_ec168_ec100_config@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_WRITE_DEMOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	16(%rbx,%rax), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -88(%rbp)
	movq	(%rax), %rax
	movl	$65280, %ecx                    ## imm = 0xFF00
	addq	%rcx, %rax
	movq	%rax, -80(%rbp)
	leaq	-72(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%r13d, %r13d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	$2, %r12d
	movl	%r12d, %r14d
	jmp	LBB0_17
LBB0_20:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_6:
	movl	%r12d, %r13d
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_19:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_ec168_ec100_config,8,3         ## @ec168_ec100_config
	.comm	_READ_DEMOD,4,2                 ## @READ_DEMOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: I2C read not implemented\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WRITE_DEMOD,4,2                ## @WRITE_DEMOD
	.comm	_WRITE_I2C,4,2                  ## @WRITE_I2C
	.no_dead_strip	_ec168_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec168_i2c_xfer
_ec168_i2c_xfer:                        ; @ec168_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	cmp	w19, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x20, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_15
; %bb.3:
	mov	w26, #0
	add	x8, sp, #8
Lloh2:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ec168_ec100_config@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ec168_ec100_config@GOTPAGEOFF]
	add	x27, x8, #16
	mov	w28, #65280
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh6:
	adrp	x10, _WRITE_I2C@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WRITE_I2C@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	str	w10, [sp, #40]
	ldp	x10, x8, [x8, #16]
	ldr	x11, [x10], #8
	add	x9, x9, #256
	stp	x11, x9, [sp, #8]
	sub	x8, x8, #1
	stp	x10, x8, [sp, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_ec168_ctrl_msg
	mov	x23, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x22
	cbnz	w23, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w26, w19
	b.ge	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w26
	add	x22, x8, #1
	cmp	w22, w19
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x9, x22, #5
	ldr	w9, [x21, x9]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, x8, lsl #5
	ldr	x9, [x8, #8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x9, _READ_DEMOD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _READ_DEMOD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	str	xzr, [sp, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	add	x8, x8, x28
	add	x9, x21, x22, lsl #5
	ldp	x9, x10, [x9, #16]
	stp	x9, x10, [sp, #24]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ec168_ctrl_msg
	mov	x23, x0
	add	w22, w26, #2
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, x8, lsl #5
	ldr	x9, [x8, #8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x9, _WRITE_DEMOD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WRITE_DEMOD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	ldr	x8, [x8, #16]
	ldr	x9, [x8, #8]
	str	x9, [sp, #8]
	ldr	x8, [x8]
	add	x8, x8, x28
	str	x8, [sp, #16]
	stp	xzr, xzr, [x27]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	add	w22, w26, #2
	b	LBB0_6
LBB0_15:
Lloh23:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_17:
	mov	x23, x26
LBB0_18:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_ec168_ec100_config,8,3         ; @ec168_ec100_config
	.comm	_READ_DEMOD,4,2                 ; @READ_DEMOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: I2C read not implemented\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WRITE_DEMOD,4,2                ; @WRITE_DEMOD
	.comm	_WRITE_I2C,4,2                  ; @WRITE_I2C
	.no_dead_strip	_ec168_i2c_xfer
.subsections_via_symbols
