	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ce6230_i2c_master_xfer
_ce6230_i2c_master_xfer:                ## @ce6230_i2c_master_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	cmpl	$3, %r14d
	jl	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r15
	leaq	-80(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_I2C_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	sarl	%ecx
	addl	$8192, %ecx                     ## imm = 0x2000
	movl	%ecx, -80(%rbp)
	movl	$0, -76(%rbp)
	movq	16(%rbx,%rax,8), %rcx
	movq	%rcx, -64(%rbp)
	movq	8(%rbx,%rax,8), %rax
	movq	%rax, -72(%rbp)
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	callq	_ce6230_ctrl_msg
	movl	%eax, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %r12d
	testl	%r13d, %r13d
	jne	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %r12d
	jge	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r12), %r15d
	cmpl	%r14d, %r15d
	jge	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx,%rax,8)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rbx,%rcx,8), %edx
	movq	_ce6230_zl10353_config@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_DEMOD_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -56(%rbp)
	sarl	%edx
	movl	%edx, -80(%rbp)
	movq	8(%rbx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)
	movq	16(%rbx,%rax,8), %rcx
	movq	%rcx, -64(%rbp)
	movq	8(%rbx,%rax,8), %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	callq	_ce6230_ctrl_msg
	movl	%eax, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%rbx,%rax,8), %ecx
	movq	_ce6230_zl10353_config@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_DEMOD_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	sarl	%ecx
	movl	%ecx, -80(%rbp)
	movq	8(%rbx,%rax,8), %rcx
	movl	(%rcx), %edx
	movl	%edx, -76(%rbp)
	movq	16(%rbx,%rax,8), %rax
	decq	%rax
	movq	%rax, -64(%rbp)
	addq	$4, %rcx
	movq	%rcx, -72(%rbp)
	jmp	LBB0_15
LBB0_10:                                ##   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_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	$2, %r12d
	movl	%r12d, %r15d
	jmp	LBB0_16
LBB0_20:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_19
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r12d, %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_ce6230_zl10353_config,4,2      ## @ce6230_zl10353_config
	.comm	_DEMOD_READ,4,2                 ## @DEMOD_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: I2C read not implemented\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_DEMOD_WRITE,4,2                ## @DEMOD_WRITE
	.comm	_I2C_WRITE,4,2                  ## @I2C_WRITE
	.no_dead_strip	_ce6230_i2c_master_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ce6230_i2c_master_xfer
_ce6230_i2c_master_xfer:                ; @ce6230_i2c_master_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	bl	_i2c_get_adapdata
	cmp	w19, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x21
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_15
; %bb.3:
	mov	w22, #0
	mov	w24, #24
Lloh2:
	adrp	x25, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _I2C_M_RD@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ce6230_zl10353_config@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ce6230_zl10353_config@GOTPAGEOFF]
Lloh6:
	adrp	x27, _I2C_WRITE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _I2C_WRITE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x27]
	str	w10, [sp, #24]
	asr	w9, w9, #1
	add	w9, w9, #2, lsl #12             ; =8192
	stp	w9, wzr, [sp]
	madd	x8, x8, x24, x20
	ldp	x8, x9, [x8, #8]
	stp	x8, x9, [sp, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_ce6230_ctrl_msg
	mov	x23, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x28
	cbnz	w23, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w19
	b.ge	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w22
	add	x28, x8, #1
	cmp	w28, w19
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	x9, x28, x24
	ldr	w9, [x20, x9]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	madd	x9, x8, x24, x20
	ldr	w9, [x9, #4]
	ldr	w10, [x26]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x10, _DEMOD_READ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DEMOD_READ@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	asr	w9, w9, #1
	str	w10, [sp, #24]
	str	w9, [sp]
	madd	x8, x8, x24, x20
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	w8, [sp, #4]
	madd	x8, x28, x24, x20
	ldp	x8, x9, [x8, #8]
	stp	x8, x9, [sp, #8]
	mov	x1, sp
	mov	x0, x21
	bl	_ce6230_ctrl_msg
	mov	x23, x0
	add	w28, w22, #2
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	madd	x9, x8, x24, x20
	ldr	w9, [x9, #4]
	ldr	w10, [x26]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh11:
	adrp	x10, _DEMOD_WRITE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DEMOD_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	asr	w9, w9, #1
	str	w10, [sp, #24]
	str	w9, [sp]
	madd	x8, x8, x24, x20
	ldp	x9, x8, [x8, #8]
	ldr	w10, [x9], #4
	str	w10, [sp, #4]
	sub	x8, x8, #1
	stp	x9, x8, [sp, #8]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21, #8]
Lloh14:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
	add	w28, w22, #2
	b	LBB0_6
LBB0_15:
Lloh22:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_17
LBB0_19:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x23, x22
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_ce6230_zl10353_config,4,2      ; @ce6230_zl10353_config
	.comm	_DEMOD_READ,4,2                 ; @DEMOD_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: I2C read not implemented\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_DEMOD_WRITE,4,2                ; @DEMOD_WRITE
	.comm	_I2C_WRITE,4,2                  ; @I2C_WRITE
	.no_dead_strip	_ce6230_i2c_master_xfer
.subsections_via_symbols
