	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anysee_master_xfer
_anysee_master_xfer:                    ## @anysee_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	$72, %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, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_2
## %bb.4:
	xorl	%r12d, %r12d
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r12), %eax
	cmpl	%r14d, %eax
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13,%rax,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_CMD_I2C_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	movl	%r12d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%r13,%rcx,8), %edx
	incl	%edx
	movl	%edx, -76(%rbp)
	movq	8(%r13,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movq	$0, -68(%rbp)
	movl	$1, -60(%rbp)
	movq	8(%r13,%rax,8), %rcx
	movl	16(%r13,%rax,8), %r8d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movl	$24, %edx
	callq	_anysee_ctrl_msg
	movl	%eax, %r15d
	movl	$2, %ebx
	testl	%r15d, %r15d
	je	LBB0_6
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %r15
	movl	16(%r13,%r15,8), %r14d
	leal	4(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_CMD_I2C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	4(%r13,%r15,8), %eax
	movl	%eax, 4(%rbx)
	movl	16(%r13,%r15,8), %edx
	movl	%edx, 8(%rbx)
	movl	$1, 12(%rbx)
	leaq	16(%rbx), %rdi
	movq	8(%r13,%r15,8), %rsi
	callq	_memcpy
	leal	16(,%r14,4), %edx
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_anysee_ctrl_msg
	movl	%eax, %r15d
	movl	$1, %ebx
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addl	%r12d, %ebx
	movl	%ebx, %r12d
	cmpl	%r14d, %ebx
	jl	LBB0_7
	jmp	LBB0_3
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%ebx, %r15d
	jmp	LBB0_13
LBB0_12:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_CMD_I2C_READ,4,2               ## @CMD_I2C_READ
	.comm	_CMD_I2C_WRITE,4,2              ## @CMD_I2C_WRITE
	.no_dead_strip	_anysee_master_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anysee_master_xfer
_anysee_master_xfer:                    ; @anysee_master_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_i2c_get_adapdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_8
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.2:
	mov	w23, #0
	mov	w25, #24
Lloh3:
	adrp	x28, _CMD_I2C_WRITE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _CMD_I2C_WRITE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, #1
	cmp	w8, w20
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	umull	x9, w8, w25
	ldr	w9, [x21, x9]
Lloh5:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x9, _CMD_I2C_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMD_I2C_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	umaddl	x10, w23, w25, x21
	ldr	w11, [x10, #4]
	add	w11, w11, #1
	stp	w9, w11, [x29, #-112]
	ldr	x9, [x10, #8]
	ldr	w9, [x9]
	stur	w9, [x29, #-104]
	stur	xzr, [x29, #-100]
	mov	w9, #1
	stur	w9, [x29, #-92]
	madd	x8, x8, x25, x21
	ldr	x3, [x8, #8]
	ldr	w4, [x8, #16]
	sub	x1, x29, #112
	mov	x0, x19
	mov	w2, #24
	bl	_anysee_ctrl_msg
	mov	x22, x0
	mov	w26, #2
	cbz	w22, LBB0_7
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, sp
	umaddl	x8, w23, w25, x21
	ldr	w9, [x8, #16]
	add	w24, w9, #4
	lsl	x9, x24, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x12
	mov	sp, x22
	ldr	w9, [x28]
	ldr	w10, [x8, #4]
	stp	w9, w10, [x22]
	ldr	w2, [x8, #16]
	mov	w26, #1
	stp	w2, w26, [x22, #8]
	add	x0, x22, #16
	ldr	x1, [x8, #8]
	bl	_memcpy
	lsl	w2, w24, #2
	mov	x0, x19
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	bl	_anysee_ctrl_msg
	mov	x22, x0
	mov	sp, x27
	cbnz	w22, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w26, w23
	cmp	w23, w20
	b.lt	LBB0_3
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_9:
	mov	w23, #0
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x22, x23
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_CMD_I2C_READ,4,2               ; @CMD_I2C_READ
	.comm	_CMD_I2C_WRITE,4,2              ; @CMD_I2C_WRITE
	.no_dead_strip	_anysee_master_xfer
.subsections_via_symbols
