	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lme2510_usb_talk
_lme2510_usb_talk:                      ## @lme2510_usb_talk
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %eax
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	(%rbx), %r14
	testq	%r14, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$512, %edi                      ## imm = 0x200
	callq	_kmalloc
	movq	%rax, %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%r14, (%rbx)
	testq	%r14, %r14
	je	LBB0_2
LBB0_3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpl	$512, %eax                      ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	cmovll	%eax, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	%eax, %r13d
	movl	4(%r12), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_sndbulkpipe
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_usb_clear_halt
	movl	%eax, %r15d
	orl	%r13d, %r15d
	movl	4(%r12), %edi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_lme2510_bulk_write
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$10, %edi
	callq	_msleep
	movl	4(%r12), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_usb_clear_halt
	movl	%eax, %r13d
	orl	%r15d, %r13d
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	4(%r12), %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	$512, %r15d                     ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	cmovll	%r15d, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_lme2510_bulk_read
	movl	%eax, %ebx
	orl	%r13d, %ebx
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	sarl	$31, %ebx
	andl	%ecx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MEM Error no memory"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_lme2510_usb_talk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lme2510_usb_talk
_lme2510_usb_talk:                      ; @lme2510_usb_talk
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x25, [x0, #8]
	ldr	x22, [x25]
	cbnz	x22, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #512
	bl	_kmalloc
	mov	x22, x0
	str	x0, [x25]
	cbz	x0, LBB0_7
LBB0_2:
	mov	w26, #512
	cmp	w23, #512
	csel	w2, w23, w26, lt
	mov	x0, x22
	mov	x1, x24
	bl	_memcpy
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x24, x0
	ldr	w25, [x19, #4]
	mov	x0, x25
	mov	w1, #1
	bl	_usb_sndbulkpipe
	mov	x1, x0
	mov	x0, x25
	bl	_usb_clear_halt
	orr	w24, w0, w24
	ldr	w0, [x19, #4]
	mov	x1, x22
	mov	x2, x23
	mov	w3, #1
	bl	_lme2510_bulk_write
	orr	w24, w24, w0
	mov	w0, #10
	bl	_msleep
	ldr	w23, [x19, #4]
	mov	x0, x23
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	mov	x0, x23
	bl	_usb_clear_halt
	orr	w23, w24, w0
	ldr	w0, [x19, #4]
	cmp	w20, #512
	csel	w2, w20, w26, lt
	mov	x1, x22
	mov	w3, #1
	bl	_lme2510_bulk_read
	orr	w23, w23, w0
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	and	w0, w8, w23, asr #31
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MEM Error no memory"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_lme2510_usb_talk
.subsections_via_symbols
