	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go7007_usb_readinterrupt_complete
_go7007_usb_readinterrupt_complete:     ## @go7007_usb_readinterrupt_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	32(%rdi), %rbx
	movl	(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	_STATUS_SHUTDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jne	LBB0_5
## %bb.6:
	movq	24(%rdi), %r14
	movl	$1, 8(%rbx)
	movl	(%r14), %edi
	callq	___le16_to_cpu
	movq	%rax, 16(%rbx)
	movl	4(%r14), %edi
	callq	___le16_to_cpu
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_debug
	jmp	LBB0_7
LBB0_5:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	addq	$12, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_STATUS_SHUTDOWN,8,3            ## @STATUS_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error in read interrupt: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"short read in interrupt pipe!\n"

L_.str.2:                               ## @.str.2
	.asciz	"ReadInterrupt: %04x %04x\n"

	.no_dead_strip	_go7007_usb_readinterrupt_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go7007_usb_readinterrupt_complete
_go7007_usb_readinterrupt_complete:     ; @go7007_usb_readinterrupt_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0, #32]
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_8
; %bb.2:
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _STATUS_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STATUS_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.3:
	ldr	w0, [x19, #32]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldp	x8, x9, [x0, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x20, [x0, #24]
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x20]
	bl	___le16_to_cpu
	str	x0, [x19, #16]
	ldr	w0, [x20, #4]
	bl	___le16_to_cpu
	mov	x1, x0
	str	x0, [x19, #24]
	ldr	x2, [x19, #16]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
LBB0_8:
	add	x0, x19, #12
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wake_up
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_STATUS_SHUTDOWN,8,3            ; @STATUS_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error in read interrupt: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"short read in interrupt pipe!\n"

l_.str.2:                               ; @.str.2
	.asciz	"ReadInterrupt: %04x %04x\n"

	.no_dead_strip	_go7007_usb_readinterrupt_complete
.subsections_via_symbols
