	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opera1_usb_i2c_msgxfer
_opera1_usb_i2c_msgxfer:                ## @opera1_usb_i2c_msgxfer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movl	%r12d, %eax
	sarl	%eax
	addl	$-128, %eax
	movl	$177, %esi
	movl	%r12d, %edx
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	L_switch.table.opera1_usb_i2c_msgxfer(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	leaq	L_switch.table.opera1_usb_i2c_msgxfer.1(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
LBB0_7:
	movl	4(%rbx), %edi
	testb	$1, %r12b
	jne	LBB0_8
## %bb.9:
	movq	_OPERA_WRITE_MSG@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movq	_OPERA_READ_MSG@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r9d
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_opera1_xilinx_rw
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no usb_device"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_OPERA_READ_MSG,4,2             ## @OPERA_READ_MSG
	.comm	_OPERA_WRITE_MSG,4,2            ## @OPERA_WRITE_MSG
	.no_dead_strip	_opera1_usb_i2c_msgxfer
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.opera1_usb_i2c_msgxfer
L_switch.table.opera1_usb_i2c_msgxfer:
	.long	184                             ## 0xb8
	.long	182                             ## 0xb6
	.long	182                             ## 0xb6
	.long	177                             ## 0xb1

	.p2align	2                               ## @switch.table.opera1_usb_i2c_msgxfer.1
L_switch.table.opera1_usb_i2c_msgxfer.1:
	.long	128                             ## 0x80
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	166                             ## 0xa6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opera1_usb_i2c_msgxfer
_opera1_usb_i2c_msgxfer:                ; @opera1_usb_i2c_msgxfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_5
; %bb.2:
	sbfx	x8, x22, #1, #31
	sub	x8, x8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.opera1_usb_i2c_msgxfer@PAGE
Lloh1:
	add	x9, x9, l_switch.table.opera1_usb_i2c_msgxfer@PAGEOFF
	ldr	w1, [x9, x8, lsl #2]
Lloh2:
	adrp	x9, l_switch.table.opera1_usb_i2c_msgxfer.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.opera1_usb_i2c_msgxfer.1@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w1, #177
	mov	x2, x22
LBB0_8:
Lloh10:
	adrp	x8, _OPERA_READ_MSG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPERA_READ_MSG@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x9, _OPERA_WRITE_MSG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OPERA_WRITE_MSG@GOTPAGEOFF]
	tst	w22, #0x1
	csel	x8, x9, x8, eq
	ldr	w5, [x8]
	mov	x3, x21
	mov	x4, x20
	bl	_opera1_xilinx_rw
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no usb_device"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_OPERA_READ_MSG,4,2             ; @OPERA_READ_MSG
	.comm	_OPERA_WRITE_MSG,4,2            ; @OPERA_WRITE_MSG
	.no_dead_strip	_opera1_usb_i2c_msgxfer
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.opera1_usb_i2c_msgxfer
l_switch.table.opera1_usb_i2c_msgxfer:
	.long	184                             ; 0xb8
	.long	182                             ; 0xb6
	.long	182                             ; 0xb6
	.long	177                             ; 0xb1

	.p2align	2                               ; @switch.table.opera1_usb_i2c_msgxfer.1
l_switch.table.opera1_usb_i2c_msgxfer.1:
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	166                             ; 0xa6

.subsections_via_symbols
