	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_i2c_xfer
_cxusb_i2c_xfer:                        ## @cxusb_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	$88, %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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_24
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movl	%ebx, %r13d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movl	%r13d, %ebx
	cmpl	%r14d, %r13d
	jge	LBB0_29
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %r14
	movq	_USB_VID_MEDION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	cmpl	$99, (%r15,%r14,8)
	setne	%sil
	movq	%r12, %rdi
	callq	_cxusb_gpio_tuner
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%r14,8), %r12
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15,%r14,8)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	movq	%r14, %r15
	movq	%r12, %r14
	movq	%rax, %r12
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_XFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movslq	8(%r12,%r15,8), %rsi
	movq	%rsi, %r9
	incq	%r9
	cmpq	%r9, %rbx
	jb	LBB0_26
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -60(%rbp)
	movl	%esi, -56(%rbp)
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)
	movq	_CMD_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	-60(%rbp), %rdx
	movl	$3, %ecx
	movq	%r13, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_cxusb_ctrl_msg
	testq	%rax, %rax
	js	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%r15,%rcx,8), %rax
	addq	$8, %rax
	movq	16(%r15,%rcx,8), %rdi
	addq	$4, %r13
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %r13d
	cmpl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r13d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	testl	%eax, 4(%r15,%rcx,8)
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %eax
	cmpl	(%r15,%rcx,8), %eax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_XFER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%rbx), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movslq	8(%r15,%r14,8), %rdx
	movq	%rdx, %rax
	addq	$3, %rax
	cmpq	%rax, -112(%rbp)                ## 8-byte Folded Reload
	jb	LBB0_37
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movslq	8(%r15,%rdi,8), %rsi
	movq	%rsi, %rax
	incq	%rax
	cmpq	%rax, %rbx
	jb	LBB0_38
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%r14,8), %rax
	addq	$8, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	8(%r15,%rdi,8), %rax
	movq	%r12, %rbx
	movq	%rax, %r12
	movl	%edx, (%rbx)
	movl	%esi, 4(%rbx)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	16(%r15,%r14,8), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	_CMD_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ecx
	addl	$3, %ecx
	movl	(%r12), %r9d
	incl	%r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	callq	_cxusb_ctrl_msg
	testq	%rax, %rax
	js	LBB0_40
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$8, (%rbx)
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_deb_i2c
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%r15,%rax,8), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	addq	$4, %rsi
	movl	(%r12), %edx
	callq	_memcpy
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_XFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movslq	8(%r15,%r14,8), %rdx
	movq	%rdx, %rax
	addq	$2, %rax
	cmpq	%rax, %rbx
	jb	LBB0_31
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%r14,8), %rbx
	addq	$8, %rbx
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movl	%edx, 4(%r13)
	movq	%r13, %rdi
	addq	$8, %rdi
	movq	16(%r15,%r14,8), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	_CMD_I2C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	addl	$2, %ecx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rdx
	leaq	-60(%rbp), %r8
	movl	$1, %r9d
	callq	_cxusb_ctrl_msg
	testq	%rax, %rax
	js	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$8, -60(%rbp)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_3
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_deb_i2c
	jmp	LBB0_3
LBB0_24:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_35
LBB0_25:
	xorl	%r13d, %r13d
	cmpl	%r14d, %r13d
	jne	LBB0_30
	jmp	LBB0_34
LBB0_26:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_32
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
LBB0_28:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	movl	-64(%rbp), %r14d                ## 4-byte Reload
LBB0_29:
	cmpl	%r14d, %r13d
	je	LBB0_34
LBB0_30:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_34
LBB0_31:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%edx, %esi
LBB0_32:
	xorl	%eax, %eax
	callq	_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_33:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_34:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.36:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	leaq	L_.str.2(%rip), %rdi
	movl	%edx, %esi
	jmp	LBB0_39
LBB0_38:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_39:
	xorl	%eax, %eax
	callq	_warn
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rcx, %rsp
	jmp	LBB0_33
LBB0_40:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %r13d
	jne	LBB0_30
	jmp	LBB0_34
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_USB_VID_MEDION,8,3             ## @USB_VID_MEDION
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_MAX_XFER_SIZE,4,2              ## @MAX_XFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c rd: len=%d is too big!\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CMD_I2C_READ,4,2               ## @CMD_I2C_READ
L_.str.1:                               ## @.str.1
	.asciz	"i2c read failed"

L_.str.2:                               ## @.str.2
	.asciz	"i2c wr: len=%d is too big!\n"

L_.str.3:                               ## @.str.3
	.asciz	"i2c read may have failed\n"

	.comm	_CMD_I2C_WRITE,4,2              ## @CMD_I2C_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"i2c write may have failed\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_cxusb_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_i2c_xfer
_cxusb_i2c_xfer:                        ; @cxusb_i2c_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, #48
	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_24
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_25
; %bb.2:
	mov	w28, #0
Lloh3:
	adrp	x25, _USB_VID_MEDION@GOTPAGE
Lloh4:
	ldr	x25, [x25, _USB_VID_MEDION@GOTPAGEOFF]
	mov	w27, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	ldr	x8, [x25]
	sxtw	x26, w28
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x8, x26, x27
	ldr	w8, [x21, x8]
	cmp	w8, #99
	cset	w1, ne
	mov	x0, x19
	bl	_cxusb_gpio_tuner
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x13, x26, x27, x21
	ldr	w9, [x13, #4]
Lloh5:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, sp
Lloh8:
	adrp	x8, _MAX_XFER_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_XFER_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	madd	x22, x26, x27, x21
	ldrsw	x9, [x22, #8]!
	add	x5, x9, #1
	cmp	x8, x5
	b.lo	LBB0_26
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	wzr, w9, [x29, #-100]
	ldr	w8, [x13]
	stur	w8, [x29, #-92]
Lloh13:
	adrp	x8, _CMD_I2C_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_I2C_READ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sub	x2, x29, #100
	mov	x0, x19
	mov	w3, #3
	mov	x4, x24
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_cxusb_ctrl_msg
	tbnz	x0, #63, LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x26, x27, x21
	ldr	x0, [x8, #16]
	add	x1, x24, #4
	ldr	w2, [x22]
	bl	_memcpy
	b	LBB0_22
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x26, #1
	cmp	w23, w20
	b.ge	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x23, x27, x21
	ldr	w9, [x9, #4]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x13]
	mul	x9, x23, x27
	ldr	w9, [x21, x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, sp
Lloh16:
	adrp	x12, _MAX_XFER_SIZE@GOTPAGE
Lloh17:
	ldr	x12, [x12, _MAX_XFER_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x25, x9, x10
	mov	sp, x25
	ldr	w14, [x12]
	lsl	x12, x14, #2
	mov	x9, x12
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x9, x9, x10
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x9
	madd	x24, x26, x27, x21
	ldrsw	x2, [x24, #8]!
	add	x9, x2, #3
	cmp	x8, x9
	b.lo	LBB0_36
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	stur	x22, [x29, #-120]               ; 8-byte Folded Spill
	madd	x22, x23, x27, x21
	ldrsw	x8, [x22, #8]!
	add	x9, x8, #1
	cmp	x9, x14, lsl #2
	b.hi	LBB0_37
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	stp	w2, w8, [x25]
	ldr	w8, [x13]
	str	w8, [x25, #8]
	add	x0, x25, #12
	madd	x8, x26, x27, x21
	ldr	x1, [x8, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
Lloh22:
	adrp	x8, _CMD_I2C_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMD_I2C_READ@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w8, [x24]
	add	w3, w8, #3
	ldr	w8, [x22]
	add	w5, w8, #1
	mov	x0, x19
	mov	x2, x25
	ldur	x24, [x29, #-112]               ; 8-byte Folded Reload
	mov	x4, x24
	bl	_cxusb_ctrl_msg
	tbnz	x0, #63, LBB0_39
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w8, #8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_i2c
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x23, x27, x21
	ldr	x0, [x8, #16]
	add	x1, x24, #4
	ldr	w2, [x22]
	bl	_memcpy
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
Lloh27:
	adrp	x25, _USB_VID_MEDION@GOTPAGE
Lloh28:
	ldr	x25, [x25, _USB_VID_MEDION@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, sp
Lloh29:
	adrp	x8, _MAX_XFER_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAX_XFER_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh32:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh33:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	madd	x22, x26, x27, x21
	ldrsw	x2, [x22, #8]!
	add	x9, x2, #2
	cmp	x8, x9
	b.lo	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x13]
	stp	w8, w2, [x24]
	add	x0, x24, #8
	madd	x8, x26, x27, x21
	ldr	x1, [x8, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
Lloh34:
	adrp	x8, _CMD_I2C_WRITE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CMD_I2C_WRITE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w8, [x22]
	add	w3, w8, #2
	sub	x4, x29, #100
	mov	x0, x19
	mov	x2, x24
	mov	w5, #1
	bl	_cxusb_ctrl_msg
	tbnz	x0, #63, LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-100]
	cmp	w8, #8
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_deb_i2c
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	sp, x23
	mov	x23, x28
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w28, w23, #1
	cmp	w28, w20
	b.lt	LBB0_3
	b	LBB0_31
LBB0_24:
Lloh39:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_34
LBB0_25:
	mov	w28, #0
	cmp	w28, w20
	b.ne	LBB0_32
	b	LBB0_33
LBB0_26:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	str	x9, [sp, #-16]!
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_29
LBB0_27:
Lloh44:
	adrp	x0, l_.str.1@PAGE
Lloh45:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	mov	sp, x23
	cmp	w28, w20
	b.ne	LBB0_32
	b	LBB0_33
LBB0_28:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	str	x2, [sp, #-16]!
Lloh46:
	adrp	x0, l_.str.2@PAGE
Lloh47:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_29:
	bl	_warn
	add	sp, sp, #16
Lloh48:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w20, w8
	mov	sp, x23
	b	LBB0_33
LBB0_30:
	mov	sp, x23
LBB0_31:
	cmp	w28, w20
	b.eq	LBB0_33
LBB0_32:
Lloh51:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_33:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_34:
	ldur	x8, [x29, #-88]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.35:
	mov	x0, x20
	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_36:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	str	x2, [sp, #-16]!
Lloh57:
	adrp	x0, l_.str.2@PAGE
Lloh58:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	add	sp, sp, #16
	b	LBB0_38
LBB0_37:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp, #-16]!
Lloh59:
	adrp	x0, l_.str@PAGE
Lloh60:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	add	sp, sp, #16
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
LBB0_38:
Lloh61:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w20, w8
	mov	sp, x22
	b	LBB0_33
LBB0_39:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
	cmp	w28, w20
	b.ne	LBB0_32
	b	LBB0_33
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_USB_VID_MEDION,8,3             ; @USB_VID_MEDION
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_MAX_XFER_SIZE,4,2              ; @MAX_XFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c rd: len=%d is too big!\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CMD_I2C_READ,4,2               ; @CMD_I2C_READ
l_.str.1:                               ; @.str.1
	.asciz	"i2c read failed"

l_.str.2:                               ; @.str.2
	.asciz	"i2c wr: len=%d is too big!\n"

l_.str.3:                               ; @.str.3
	.asciz	"i2c read may have failed\n"

	.comm	_CMD_I2C_WRITE,4,2              ; @CMD_I2C_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"i2c write may have failed\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_cxusb_i2c_xfer
.subsections_via_symbols
