	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opera1_i2c_xfer
_opera1_i2c_xfer:                       ## @opera1_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
	pushq	%rax
	.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
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_12
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.5:
	movl	%r14d, %r13d
	shlq	$4, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %r12
	cmpq	%r12, %r13
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	4(%rbx,%r12), %eax
	setne	%dl
	movl	(%rbx,%r12), %eax
	movl	8(%rbx,%r12), %ecx
	leal	(%rdx,%rax,2), %esi
	movl	12(%rbx,%r12), %edx
	movq	%r15, %rdi
	callq	_opera1_usb_i2c_msgxfer
	cmpl	8(%rbx,%r12), %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_dvb_usb_opera1_debug@GOTPCREL(%rip), %rcx
	testb	$16, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_info
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_dvb_usb_opera1_debug,4,2       ## @dvb_usb_opera1_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending i2c message %d %d"

	.no_dead_strip	_opera1_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opera1_i2c_xfer
_opera1_i2c_xfer:                       ; @opera1_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_10
; %bb.2:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w22, w19
	add	x23, x21, #8
Lloh0:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	adrp	x25, _dvb_usb_opera1_debug@GOTPAGE
Lloh3:
	ldr	x25, [x25, _dvb_usb_opera1_debug@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #16
	subs	x22, x22, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x23, #-8]
	ldr	w10, [x24]
	tst	w10, w9
	cset	w1, ne
	bfi	w1, w8, #1, #31
	ldp	w3, w2, [x23]
	mov	x0, x20
	bl	_opera1_usb_i2c_msgxfer
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x25]
	tbz	w8, #4, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x21
	mov	x2, x1
	bl	_info
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_dvb_usb_opera1_debug,4,2       ; @dvb_usb_opera1_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending i2c message %d %d"

	.no_dead_strip	_opera1_i2c_xfer
.subsections_via_symbols
