	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.7:
	xorl	%r13d, %r13d
	movl	%ebx, -268(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r13), %eax
	movl	%r13d, %ecx
	cmpl	%ebx, %eax
	jge	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r15,%rax,8)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rcx,%rcx,2), %rdx
	movl	4(%r15,%rdx,8), %ecx
	cmpl	$2, %ecx
	jg	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r15,%rax,8), %r8d
	cmpl	$60, %r8d
	jg	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_CMD_I2C_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -256(%rbp)
	movl	8(%r15,%rdx,8), %esi
	addl	%esi, %esi
	incl	%esi
	movl	%esi, -252(%rbp)
	movq	16(%r15,%rdx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, -248(%rbp)
	movl	4(%rdx), %edx
	movl	%edx, -244(%rbp)
	decl	%ecx
	movl	%ecx, -240(%rbp)
	movl	%r8d, -236(%rbp)
	movq	16(%r15,%rax,8), %rcx
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	leaq	-256(%rbp), %rsi
	movl	$6, %edx
	callq	_anysee_ctrl_msg
	movl	%eax, %r12d
	movl	$2, %r14d
	testl	%r12d, %r12d
	je	LBB0_4
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rcx,%rcx,2), %rax
	movl	4(%r15,%rax,8), %edx
	cmpl	$48, %edx
	jg	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r15,%rax,8), %rbx
	addq	$4, %rbx
	movq	_CMD_I2C_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -256(%rbp)
	movl	8(%r15,%rax,8), %ecx
	addl	%ecx, %ecx
	movl	%ecx, -252(%rbp)
	movl	%edx, -248(%rbp)
	movl	$1, -244(%rbp)
	movq	16(%r15,%rax,8), %rsi
	leaq	-240(%rbp), %rdi
	callq	_memcpy
	movl	(%rbx), %edx
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	addl	$4, %edx
	leaq	-256(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_anysee_ctrl_msg
	movl	%eax, %r12d
	movl	$1, %r14d
	testl	%r12d, %r12d
	jne	LBB0_16
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=1
	addl	%r13d, %r14d
	movl	%r14d, %r13d
	movl	-268(%rbp), %ebx                ## 4-byte Reload
	cmpl	%ebx, %r14d
	jl	LBB0_8
	jmp	LBB0_5
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_2:
	xorl	%r14d, %r14d
LBB0_5:
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %r13d
LBB0_6:
	movl	%r13d, %r12d
	jmp	LBB0_19
LBB0_17:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.18:
	negl	%r12d
	jmp	LBB0_19
LBB0_16:
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r12d, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.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:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_i2c_get_adapdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_11
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.2:
	mov	w24, #0
	mov	x8, sp
	add	x22, x8, #16
	mov	w25, #24
Lloh3:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	adrp	x28, _CMD_I2C_WRITE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _CMD_I2C_WRITE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w24, #1
	umaddl	x23, w24, w25, x21
	cmp	w8, w20
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	umull	x9, w8, w25
	ldr	w9, [x21, x9]
	ldr	w10, [x26]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23, #4]
	cmp	w9, #2
	b.gt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x10, x8, x25, x21
	ldr	w4, [x10, #4]
	cmp	w4, #60
	b.gt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, w24
	madd	x10, x10, x25, x21
	ldr	w11, [x10, #8]
	mov	w12, #1
	bfi	w12, w11, #1, #31
Lloh7:
	adrp	x11, _CMD_I2C_READ@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CMD_I2C_READ@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	stp	w11, w12, [sp]
	ldr	x10, [x10, #16]
	ldr	w11, [x10]
	str	w11, [sp, #8]
	ldr	w10, [x10, #4]
	sub	w9, w9, #1
	stp	w10, w9, [sp, #12]
	str	w4, [sp, #20]
	madd	x8, x8, x25, x21
	ldr	x3, [x8, #16]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #6
	bl	_anysee_ctrl_msg
	mov	x23, x0
	mov	w27, #2
	cbz	w23, LBB0_10
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x23, #4]!
	cmp	w2, #48
	b.gt	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w24
	ldr	w9, [x28]
	madd	x8, x8, x25, x21
	ldr	w10, [x8, #8]
	lsl	w10, w10, #1
	stp	w9, w10, [sp]
	mov	w27, #1
	stp	w2, w27, [sp, #8]
	ldr	x1, [x8, #16]
	mov	x0, x22
	bl	_memcpy
	ldr	w8, [x23]
	add	w2, w8, #4
	mov	x1, sp
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_anysee_ctrl_msg
	mov	x23, x0
	cbnz	w23, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w27, w24
	cmp	w24, w20
	b.lt	LBB0_3
	b	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_12:
	mov	w24, #0
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_14:
	mov	x23, x24
	b	LBB0_18
LBB0_15:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_mutex_unlock
	cbz	w20, LBB0_14
; %bb.16:
	neg	w23, w20
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_18:
	ldur	x8, [x29, #-96]
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_20
; %bb.19:
	mov	x0, x23
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, 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	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.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
