	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lme2510_i2c_xfer
_lme2510_i2c_xfer:                      ## @lme2510_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	$24, %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
	movq	8(%rax), %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mutex_lock
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movl	%r14d, %edx
	leaq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx,%r15,8), %eax
	incl	%eax
	movl	%eax, _lme2510_i2c_xfer.obuf+4(%rip)
	movl	(%rcx), %eax
	addl	%eax, %eax
	movl	%eax, _lme2510_i2c_xfer.obuf+8(%rip)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx,%r15,8), %rsi
	movl	8(%rbx,%r15,8), %edx
	leaq	_lme2510_i2c_xfer.obuf+12(%rip), %rdi
	callq	_memcpy
	movl	8(%rbx,%r15,8), %edx
	addl	$3, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	_lme2510_i2c_xfer.obuf(%rip), %rsi
	leaq	_lme2510_i2c_xfer.ibuf(%rip), %rcx
	movl	$64, %r8d
	callq	_lme2510_msg
	testq	%rax, %rax
	js	LBB0_18
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %r14d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r12d
	jge	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r12
	leaq	(%r12,%r12,2), %r15
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx,%r15,8), %eax
	andl	%ecx, %eax
	incl	%r12d
	cmpl	%edx, %r12d
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	testl	%ecx, (%rbx,%rdx,8)
	setne	%cl
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%cl, %edx
	orl	%eax, %edx
	leaq	(%rbx,%r15,8), %rcx
	addq	$4, %rcx
	movl	4(%rbx,%r15,8), %edi
	movq	%r13, %rsi
	cmpl	4(%r13), %edi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%edx, %edx
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi), %esi
	movl	%edx, %edi
	shll	$7, %edi
	orl	%esi, %edi
	movl	%edi, _lme2510_i2c_xfer.obuf(%rip)
	cmpl	$5, %esi
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, _lme2510_i2c_xfer.obuf+4(%rip)
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	movl	%ecx, _lme2510_i2c_xfer.obuf+8(%rip)
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r13), %esi
	movl	%esi, _lme2510_i2c_xfer.obuf(%rip)
	cmpl	$5, %esi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx,%r15,8), %esi
	addl	%edx, %esi
	incl	%esi
	movl	%esi, _lme2510_i2c_xfer.obuf+4(%rip)
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	movl	%ecx, _lme2510_i2c_xfer.obuf+8(%rip)
	testl	%edx, %edx
	je	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	_lme2510_i2c_xfer.obuf(%rip), %rsi
	movl	$3, %edx
	leaq	_lme2510_i2c_xfer.ibuf(%rip), %rcx
	movl	$64, %r8d
	callq	_lme2510_msg
	testq	%rax, %rax
	js	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx,%r15,8), %rdi
	movl	8(%rbx,%r15,8), %edx
	leaq	_lme2510_i2c_xfer.ibuf+4(%rip), %rsi
	callq	_memcpy
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx,%r15,8), %rsi
	movl	8(%rbx,%r15,8), %edx
	leaq	_lme2510_i2c_xfer.obuf+12(%rip), %rdi
	callq	_memcpy
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %r12
	movl	8(%rbx,%r12,8), %eax
	movslq	8(%rbx,%r15,8), %rcx
	leaq	_lme2510_i2c_xfer.obuf(%rip), %rsi
	movl	%eax, 12(%rsi,%rcx,4)
	movl	8(%rbx,%r15,8), %edx
	addl	$4, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	_lme2510_i2c_xfer.ibuf(%rip), %rcx
	movl	$64, %r8d
	callq	_lme2510_msg
	testq	%rax, %rax
	js	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r12,8), %rax
	addq	$8, %rax
	movq	16(%rbx,%r12,8), %rdi
	movl	(%rax), %edx
	leaq	_lme2510_i2c_xfer.ibuf+4(%rip), %rsi
	callq	_memcpy
	addl	$2, %r14d
	movl	%r14d, %r12d
	jmp	LBB0_21
LBB0_1:
	xorl	%r12d, %r12d
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_deb_info
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lme2510_i2c_xfer.obuf,256,4 ## @lme2510_i2c_xfer.obuf
.zerofill __DATA,__bss,_lme2510_i2c_xfer.ibuf,256,4 ## @lme2510_i2c_xfer.ibuf
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c transfer failed."

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_lme2510_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lme2510_i2c_xfer
_lme2510_i2c_xfer:                      ; @lme2510_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	x26, [x0, #8]
	bl	_mutex_lock
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.1:
	mov	w8, #0
	add	x9, x26, #8
	stp	x26, x9, [sp]                   ; 16-byte Folded Spill
	mov	w28, #24
Lloh0:
	adrp	x24, _lme2510_i2c_xfer.obuf@PAGE+4
Lloh1:
	add	x24, x24, _lme2510_i2c_xfer.obuf@PAGEOFF+4
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x23, x28, x21
	ldr	w8, [x8, #8]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	w8, [x9]
	lsl	w8, w8, #1
	str	w8, [x24, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x22, x23, x28, x21
	ldr	x1, [x22, #16]
	ldr	w2, [x22, #8]
Lloh2:
	adrp	x23, _lme2510_i2c_xfer.obuf@PAGE
Lloh3:
	add	x23, x23, _lme2510_i2c_xfer.obuf@PAGEOFF
	add	x0, x23, #12
	bl	_memcpy
	ldr	w8, [x22, #8]
	add	w2, w8, #3
	mov	x0, x19
	mov	x1, x23
Lloh4:
	adrp	x3, _lme2510_i2c_xfer.ibuf@PAGE
Lloh5:
	add	x3, x3, _lme2510_i2c_xfer.ibuf@PAGEOFF
	mov	w4, #64
	bl	_lme2510_msg
	tbnz	x0, #63, LBB0_22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x25
	cmp	w25, w20
	b.ge	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x23, w8
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	x25, x23, #1
	cmp	w25, w20
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	x10, x25, x28
	ldr	w10, [x21, x10]
	tst	w10, w9
	cset	w10, ne
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w10, #0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	smull	x8, w8, w28
	ldr	w8, [x21, x8]
	and	w8, w9, w8
	orr	w10, w8, w10
	madd	x9, x23, x28, x21
	ldr	w12, [x9, #4]!
	ldr	w13, [x26, #4]
	mov	x11, x26
	cmp	w12, w13
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w10, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x11]
	orr	w12, w11, w10, lsl #7
	adrp	x13, _lme2510_i2c_xfer.obuf@PAGE
	str	w12, [x13, _lme2510_i2c_xfer.obuf@PAGEOFF]
	cmp	w11, #5
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w10, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w10, #2
	str	w10, [x24]
	ldr	w9, [x9]
	lsl	w9, w9, #1
	str	w9, [x24, #4]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x26, #12]
	adrp	x12, _lme2510_i2c_xfer.obuf@PAGE
	str	w11, [x12, _lme2510_i2c_xfer.obuf@PAGEOFF]
	cmp	w11, #5
	b.eq	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x11, x23, x28, x21
	ldr	w11, [x11, #8]
	add	w11, w10, w11
	add	w11, w11, #1
	str	w11, [x24]
	ldr	w9, [x9]
	lsl	w9, w9, #1
	str	w9, [x24, #4]
	cbz	w10, LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
Lloh9:
	adrp	x1, _lme2510_i2c_xfer.obuf@PAGE
Lloh10:
	add	x1, x1, _lme2510_i2c_xfer.obuf@PAGEOFF
	mov	w2, #3
Lloh11:
	adrp	x3, _lme2510_i2c_xfer.ibuf@PAGE
Lloh12:
	add	x3, x3, _lme2510_i2c_xfer.ibuf@PAGEOFF
	mov	w4, #64
	bl	_lme2510_msg
	tbnz	x0, #63, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x23, x28, x21
	ldr	x0, [x8, #16]
	ldr	w2, [x8, #8]
Lloh13:
	adrp	x1, _lme2510_i2c_xfer.ibuf@PAGE+4
Lloh14:
	add	x1, x1, _lme2510_i2c_xfer.ibuf@PAGEOFF+4
	bl	_memcpy
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x22, x23, x28, x21
	ldr	x1, [x22, #16]
	ldr	w2, [x22, #8]
	mov	x26, x20
	mov	x20, x24
Lloh15:
	adrp	x24, _lme2510_i2c_xfer.obuf@PAGE
Lloh16:
	add	x24, x24, _lme2510_i2c_xfer.obuf@PAGEOFF
	add	x0, x24, #12
	bl	_memcpy
	smaddl	x27, w25, w28, x21
	ldr	w8, [x27, #8]!
	ldrsw	x9, [x22, #8]
	add	x9, x24, x9, lsl #2
	str	w8, [x9, #12]
	ldr	w8, [x22, #8]
	add	w2, w8, #4
	mov	x0, x19
	mov	x1, x24
	mov	x24, x20
	mov	x20, x26
	ldr	x26, [sp]                       ; 8-byte Folded Reload
Lloh17:
	adrp	x3, _lme2510_i2c_xfer.ibuf@PAGE
Lloh18:
	add	x3, x3, _lme2510_i2c_xfer.ibuf@PAGEOFF
	mov	w4, #64
	bl	_lme2510_msg
	tbnz	x0, #63, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x8, w25
	madd	x8, x8, x28, x21
	ldr	x0, [x8, #16]
	ldr	w2, [x27]
Lloh19:
	adrp	x1, _lme2510_i2c_xfer.ibuf@PAGE+4
Lloh20:
	add	x1, x1, _lme2510_i2c_xfer.ibuf@PAGEOFF+4
	bl	_memcpy
	add	w25, w23, #2
	b	LBB0_4
LBB0_20:
	mov	w25, #0
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_23
LBB0_22:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_deb_info
	mov	x0, x19
	bl	_mutex_unlock
Lloh23:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_23:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lme2510_i2c_xfer.obuf,256,2 ; @lme2510_i2c_xfer.obuf
.zerofill __DATA,__bss,_lme2510_i2c_xfer.ibuf,256,2 ; @lme2510_i2c_xfer.ibuf
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c transfer failed."

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_lme2510_i2c_xfer
.subsections_via_symbols
