	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_send_request_ex
_pvr2_send_request_ex:                  ## @pvr2_send_request_ex
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 76(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	72(%rdi), %eax
	orl	%edx, %eax
	je	LBB0_10
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.4:
	movq	%rcx, %r14
	movl	%esi, %r13d
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	cmovel	%r12d, %r8d
	testq	%r9, %r9
	movl	16(%rbp), %esi
	cmovel	%r12d, %esi
	movq	_PVR2_CTL_BUFFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r8d
	jbe	LBB0_11
## %bb.5:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pvr2_trace
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
LBB0_9:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_10:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pvr2_trace
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	cmpl	%ecx, %esi
	jbe	LBB0_17
## %bb.12:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_pvr2_trace
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%esi, %eax
	orl	%r8d, %eax
	je	LBB0_20
## %bb.18:
	movl	$1, (%rbx)
	testl	%r8d, %r8d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	je	LBB0_21
## %bb.19:
	movb	(%r14), %al
	jmp	LBB0_22
LBB0_20:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pvr2_trace
	jmp	LBB0_14
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	movb	%al, 4(%rbx)
	movl	%r8d, 8(%rbx)
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, 12(%rbx)
	movl	%r8d, %r12d
	leaq	64(%rbx), %r15
	movq	%r15, %rdi
	callq	_init_completion
	movq	$0, 56(%rbx)
	movq	$0, 16(%rbx)
	leaq	-88(%rbp), %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	movl	%r12d, %r13d
	addq	(%rax), %rcx
	movq	%rcx, -72(%rbp)
	movq	%rbx, -88(%rbp)
	movq	_pvr2_ctl_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.23:
	movl	$2, (%rbx)
	movl	%r13d, %eax
	movl	%r13d, %esi
	leaq	-1(%rsi), %rcx
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_25
## %bb.24:
	xorl	%ecx, %ecx
	jmp	LBB0_27
LBB0_25:
	andl	$-4, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %edx
	movq	24(%rbx), %rdi
	movb	%dl, (%rdi,%rcx)
	movzbl	1(%r14,%rcx), %edx
	movq	24(%rbx), %rdi
	movb	%dl, 1(%rdi,%rcx)
	movzbl	2(%r14,%rcx), %edx
	movq	24(%rbx), %rdi
	movb	%dl, 2(%rdi,%rcx)
	movzbl	3(%r14,%rcx), %edx
	movq	24(%rbx), %rdi
	movb	%dl, 3(%rdi,%rcx)
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_26
LBB0_27:
	testq	%rax, %rax
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %edx
	movq	24(%rbx), %rsi
	movb	%dl, (%rsi,%rcx)
	incq	%rcx
	decq	%rax
	jne	LBB0_28
LBB0_29:
	movq	48(%rbx), %r14
	movl	68(%rbx), %r12d
	movq	_PVR2_CTL_WRITE_ENDPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_usb_sndbulkpipe
	movq	24(%rbx), %rcx
	movq	_pvr2_ctl_write_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r13d, %r8d
	callq	_usb_fill_bulk_urb
	movq	48(%rbx), %rdi
	movl	$0, (%rdi)
	movl	$1, 16(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_39
LBB0_30:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_32
## %bb.31:
	movl	$3, (%rbx)
	movq	32(%rbx), %rdi
	movl	$67, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	40(%rbx), %r14
	movl	68(%rbx), %r12d
	movq	_PVR2_CTL_READ_ENDPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_usb_rcvbulkpipe
	movq	32(%rbx), %rcx
	movq	_pvr2_ctl_read_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r13d, %r8d
	callq	_usb_fill_bulk_urb
	movq	40(%rbx), %rdi
	movl	$0, (%rdi)
	movl	$1, 20(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_48
LBB0_32:
	leaq	-88(%rbp), %rdi
	callq	_add_timer
	movl	$4, (%rbx)
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r15, %rdi
	callq	_wait_for_completion
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpl	$0, 20(%rbx)
	jne	LBB0_33
## %bb.36:
	movl	$5, (%rbx)
	leaq	-88(%rbp), %rdi
	callq	_del_timer_sync
	movl	$6, (%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_40
## %bb.37:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_59
LBB0_38:
	movl	$0, (%rbx)
	jmp	LBB0_16
LBB0_39:
	movl	%eax, %r12d
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pvr2_trace
	movl	$0, 16(%rbx)
	jmp	LBB0_49
LBB0_40:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_50
## %bb.41:
	movq	48(%rbx), %rax
	movl	4(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_45
## %bb.42:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	je	LBB0_45
## %bb.43:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	je	LBB0_45
## %bb.44:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	jne	LBB0_70
LBB0_45:
	movl	(%rax), %ecx
	cmpl	%edx, %ecx
	jae	LBB0_50
## %bb.46:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r14d, %r14d
	jne	LBB0_38
## %bb.47:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_58
LBB0_48:
	movl	%eax, %r12d
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pvr2_trace
	movl	$0, 20(%rbx)
LBB0_49:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_60
LBB0_50:
	testl	%r8d, %r8d
	je	LBB0_63
## %bb.51:
	movq	40(%rbx), %rax
	movl	4(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_55
## %bb.52:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	je	LBB0_55
## %bb.53:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	je	LBB0_55
## %bb.54:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	jne	LBB0_72
LBB0_55:
	movl	(%rax), %ecx
	cmpl	%r8d, %ecx
	jae	LBB0_64
## %bb.56:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r14d, %r14d
	jne	LBB0_38
## %bb.57:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	%r8d, %edx
LBB0_58:
	xorl	%eax, %eax
	callq	_pvr2_trace
	jmp	LBB0_60
LBB0_59:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
LBB0_60:
	movl	$0, (%rbx)
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.61:
	testl	%r12d, %r12d
	jns	LBB0_16
## %bb.62:
	movq	%rbx, %rdi
	callq	_pvr2_hdw_render_useless
	jmp	LBB0_16
LBB0_63:
	xorl	%r12d, %r12d
	jmp	LBB0_38
LBB0_64:
	movl	%r8d, %r8d
	leaq	-1(%r8), %rcx
	movl	%r8d, %eax
	andl	$3, %eax
	xorl	%r12d, %r12d
	cmpq	$3, %rcx
	jae	LBB0_66
## %bb.65:
	xorl	%ecx, %ecx
	jmp	LBB0_68
LBB0_66:
	andl	$-4, %r8d
	xorl	%ecx, %ecx
LBB0_67:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rsi
	movzbl	(%rsi,%rcx), %edx
	movb	%dl, (%rdi,%rcx)
	movq	32(%rbx), %rdx
	movzbl	1(%rdx,%rcx), %edx
	movb	%dl, 1(%rdi,%rcx)
	movq	32(%rbx), %rdx
	movzbl	2(%rdx,%rcx), %edx
	movb	%dl, 2(%rdi,%rcx)
	movq	32(%rbx), %rdx
	movzbl	3(%rdx,%rcx), %edx
	movb	%dl, 3(%rdi,%rcx)
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_67
LBB0_68:
	testq	%rax, %rax
	je	LBB0_38
LBB0_69:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdx
	movzbl	(%rdx,%rcx), %edx
	movb	%dl, (%rdi,%rcx)
	incq	%rcx
	decq	%rax
	jne	LBB0_69
	jmp	LBB0_38
LBB0_70:
	testl	%r14d, %r14d
	jne	LBB0_38
## %bb.71:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_74
LBB0_72:
	testl	%r14d, %r14d
	jne	LBB0_38
## %bb.73:
	movq	_PVR2_TRACE_ERROR_LEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
LBB0_74:
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pvr2_trace
	jmp	LBB0_60
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ## @PVR2_TRACE_ERROR_LEGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempted to execute control transfer without lock!!"

	.comm	_EDEADLK,4,2                    ## @EDEADLK
L_.str.1:                               ## @.str.1
	.asciz	"Attempted to execute control transfer when device not ok"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"Attempted to execute control transfer when USB is disconnected"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_PVR2_CTL_BUFFSIZE,4,2          ## @PVR2_CTL_BUFFSIZE
L_.str.3:                               ## @.str.3
	.asciz	"Attempted to execute %d byte control-write transfer (limit=%d)"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"Attempted to execute %d byte control-read transfer (limit=%d)"

L_.str.5:                               ## @.str.5
	.asciz	"Attempted to execute null control transfer?"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_pvr2_ctl_timeout,4,2           ## @pvr2_ctl_timeout
	.comm	_PVR2_CTL_WRITE_ENDPOINT,4,2    ## @PVR2_CTL_WRITE_ENDPOINT
	.comm	_pvr2_ctl_write_complete,4,2    ## @pvr2_ctl_write_complete
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.6:                               ## @.str.6
	.asciz	"Failed to submit write-control URB status=%d"

	.comm	_PVR2_CTL_READ_ENDPOINT,4,2     ## @PVR2_CTL_READ_ENDPOINT
	.comm	_pvr2_ctl_read_complete,4,2     ## @pvr2_ctl_read_complete
L_.str.7:                               ## @.str.7
	.asciz	"Failed to submit read-control URB status=%d"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.8:                               ## @.str.8
	.asciz	"Timed out control-write"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
L_.str.9:                               ## @.str.9
	.asciz	"control-write URB failure, status=%d"

L_.str.10:                              ## @.str.10
	.asciz	"control-write URB short, expected=%d got=%d"

L_.str.11:                              ## @.str.11
	.asciz	"control-read URB failure, status=%d"

L_.str.12:                              ## @.str.12
	.asciz	"control-read URB short, expected=%d got=%d"

	.no_dead_strip	_pvr2_send_request_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_send_request_ex
_pvr2_send_request_ex:                  ; @pvr2_send_request_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w8, [x0, #76]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x0, #72]
	orr	w8, w8, w2
	cbz	w8, LBB0_10
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x21, x5
	mov	x24, x3
	cmp	x3, #0
	csel	w23, wzr, w4, eq
	cmp	x5, #0
	csel	w22, wzr, w6, eq
Lloh0:
	adrp	x8, _PVR2_CTL_BUFFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_CTL_BUFFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ls	LBB0_11
; %bb.5:
Lloh3:
	adrp	x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_6:
Lloh8:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
Lloh13:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
	b	LBB0_18
LBB0_7:
	cbnz	w20, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pvr2_trace
LBB0_9:
Lloh20:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
Lloh22:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	cmp	w22, w8
	b.ls	LBB0_13
; %bb.12:
Lloh29:
	adrp	x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x8, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_13:
	orr	w8, w22, w23
	cbz	w8, LBB0_16
; %bb.14:
	mov	x26, x1
	mov	w8, #1
	str	w8, [x19]
	cbz	w23, LBB0_20
; %bb.15:
	ldrb	w8, [x24]
	b	LBB0_21
LBB0_16:
Lloh34:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_17:
	bl	_pvr2_trace
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	mov	w8, #0
LBB0_21:
	strb	w8, [x19, #4]
	add	x25, x19, #64
	stp	w23, w22, [x19, #8]
	mov	x0, x25
	bl	_init_completion
	str	xzr, [x19, #56]
	str	xzr, [x19, #16]
	add	x0, sp, #24
	bl	_init_timer
Lloh41:
	adrp	x8, _jiffies@GOTPAGE
Lloh42:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	add	x8, x8, w26, uxtw
	str	x8, [sp, #40]
	str	x19, [sp, #24]
Lloh44:
	adrp	x8, _pvr2_ctl_timeout@GOTPAGE
Lloh45:
	ldr	x8, [x8, _pvr2_ctl_timeout@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh47:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh48:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	cbz	w23, LBB0_25
; %bb.22:
	mov	x8, #0
	mov	w9, #2
	str	w9, [x19]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x24, x8]
	ldr	x10, [x19, #24]
	strb	w9, [x10, x8]
	add	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_23
; %bb.24:
	ldr	x24, [x19, #48]
	ldr	w26, [x19, #68]
Lloh49:
	adrp	x8, _PVR2_CTL_WRITE_ENDPOINT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PVR2_CTL_WRITE_ENDPOINT@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	x3, [x19, #24]
Lloh52:
	adrp	x8, _pvr2_ctl_write_complete@GOTPAGE
Lloh53:
	ldr	x8, [x8, _pvr2_ctl_write_complete@GOTPAGEOFF]
Lloh54:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x26
	mov	x4, x23
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	x0, [x19, #48]
	str	wzr, [x0]
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w1, [x27]
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_35
LBB0_25:
	cbz	w22, LBB0_27
; %bb.26:
	mov	w8, #3
	str	w8, [x19]
	ldr	x0, [x19, #32]
	mov	w1, #67
	mov	x2, x22
	bl	_memset
	ldr	x24, [x19, #40]
	ldr	w26, [x19, #68]
Lloh55:
	adrp	x8, _PVR2_CTL_READ_ENDPOINT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PVR2_CTL_READ_ENDPOINT@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x3, [x19, #32]
Lloh58:
	adrp	x8, _pvr2_ctl_read_complete@GOTPAGE
Lloh59:
	ldr	x8, [x8, _pvr2_ctl_read_complete@GOTPAGEOFF]
Lloh60:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x26
	mov	x4, x22
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	x0, [x19, #40]
	str	wzr, [x0]
	mov	w8, #1
	str	w8, [x19, #20]
	ldr	w1, [x27]
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_44
LBB0_27:
	add	x0, sp, #24
	bl	_add_timer
	mov	w8, #4
	str	w8, [x19]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x25
	bl	_wait_for_completion
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_28
; %bb.31:
	mov	w8, #5
	str	w8, [x19]
	add	x0, sp, #24
	bl	_del_timer_sync
	mov	w8, #6
	str	w8, [x19]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_36
; %bb.32:
Lloh61:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w24, w8
	cbnz	w20, LBB0_59
; %bb.33:
Lloh64:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.8@PAGE
Lloh68:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_34:
	bl	_pvr2_trace
	b	LBB0_45
LBB0_35:
	mov	x24, x0
Lloh69:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh72:
	adrp	x1, l_.str.6@PAGE
Lloh73:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_pvr2_trace
	str	wzr, [x19, #16]
	b	LBB0_45
LBB0_36:
	cbz	w23, LBB0_48
; %bb.37:
	ldr	x8, [x19, #48]
	ldr	w24, [x8, #4]
	cbz	w24, LBB0_41
; %bb.38:
Lloh74:
	adrp	x9, _ENOENT@GOTPAGE
Lloh75:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	cmn	w24, w9
	b.eq	LBB0_41
; %bb.39:
Lloh77:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh78:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	cmn	w24, w9
	b.eq	LBB0_41
; %bb.40:
Lloh80:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh81:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	cmn	w24, w9
	b.ne	LBB0_60
LBB0_41:
	ldr	w8, [x8]
	cmp	w8, w23
	b.hs	LBB0_48
; %bb.42:
Lloh83:
	adrp	x9, _EIO@GOTPAGE
Lloh84:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	neg	w24, w9
	cbnz	w20, LBB0_59
; %bb.43:
Lloh86:
	adrp	x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh87:
	ldr	x9, [x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x9]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x8, [sp]
Lloh89:
	adrp	x1, l_.str.10@PAGE
Lloh90:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_34
LBB0_44:
	mov	x24, x0
Lloh91:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh92:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh94:
	adrp	x1, l_.str.7@PAGE
Lloh95:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_pvr2_trace
	str	wzr, [x19, #20]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_45:
	str	wzr, [x19]
	cbnz	w20, LBB0_19
; %bb.46:
	tbz	w24, #31, LBB0_19
; %bb.47:
	mov	x0, x19
	bl	_pvr2_hdw_render_useless
	b	LBB0_19
LBB0_48:
	cbz	w22, LBB0_58
; %bb.49:
	ldr	x8, [x19, #40]
	ldr	w24, [x8, #4]
	cbz	w24, LBB0_53
; %bb.50:
Lloh96:
	adrp	x9, _ENOENT@GOTPAGE
Lloh97:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	cmn	w24, w9
	b.eq	LBB0_53
; %bb.51:
Lloh99:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh100:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	cmn	w24, w9
	b.eq	LBB0_53
; %bb.52:
Lloh102:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh103:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	cmn	w24, w9
	b.ne	LBB0_62
LBB0_53:
	ldr	w8, [x8]
	cmp	w8, w22
	b.hs	LBB0_56
; %bb.54:
Lloh105:
	adrp	x9, _EIO@GOTPAGE
Lloh106:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	neg	w24, w9
	cbnz	w20, LBB0_59
; %bb.55:
Lloh108:
	adrp	x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh109:
	ldr	x9, [x9, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh110:
	ldr	w0, [x9]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x8, [sp]
Lloh111:
	adrp	x1, l_.str.12@PAGE
Lloh112:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_34
LBB0_56:
	mov	x8, #0
LBB0_57:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldrb	w9, [x9, x8]
	strb	w9, [x21, x8]
	add	x8, x8, #1
	cmp	x22, x8
	b.ne	LBB0_57
LBB0_58:
	mov	w24, #0
LBB0_59:
	str	wzr, [x19]
	b	LBB0_19
LBB0_60:
	cbnz	w20, LBB0_59
; %bb.61:
Lloh113:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh114:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	mov	x8, x24
	str	x8, [sp]
Lloh116:
	adrp	x1, l_.str.9@PAGE
Lloh117:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_34
LBB0_62:
	cbnz	w20, LBB0_59
; %bb.63:
Lloh118:
	adrp	x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGE
Lloh119:
	ldr	x8, [x8, _PVR2_TRACE_ERROR_LEGS@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	mov	x8, x24
	str	x8, [sp]
Lloh121:
	adrp	x1, l_.str.11@PAGE
Lloh122:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_ERROR_LEGS,4,2      ; @PVR2_TRACE_ERROR_LEGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempted to execute control transfer without lock!!"

	.comm	_EDEADLK,4,2                    ; @EDEADLK
l_.str.1:                               ; @.str.1
	.asciz	"Attempted to execute control transfer when device not ok"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"Attempted to execute control transfer when USB is disconnected"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_PVR2_CTL_BUFFSIZE,4,2          ; @PVR2_CTL_BUFFSIZE
l_.str.3:                               ; @.str.3
	.asciz	"Attempted to execute %d byte control-write transfer (limit=%d)"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"Attempted to execute %d byte control-read transfer (limit=%d)"

l_.str.5:                               ; @.str.5
	.asciz	"Attempted to execute null control transfer?"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_pvr2_ctl_timeout,4,2           ; @pvr2_ctl_timeout
	.comm	_PVR2_CTL_WRITE_ENDPOINT,4,2    ; @PVR2_CTL_WRITE_ENDPOINT
	.comm	_pvr2_ctl_write_complete,4,2    ; @pvr2_ctl_write_complete
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.6:                               ; @.str.6
	.asciz	"Failed to submit write-control URB status=%d"

	.comm	_PVR2_CTL_READ_ENDPOINT,4,2     ; @PVR2_CTL_READ_ENDPOINT
	.comm	_pvr2_ctl_read_complete,4,2     ; @pvr2_ctl_read_complete
l_.str.7:                               ; @.str.7
	.asciz	"Failed to submit read-control URB status=%d"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.8:                               ; @.str.8
	.asciz	"Timed out control-write"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
l_.str.9:                               ; @.str.9
	.asciz	"control-write URB failure, status=%d"

l_.str.10:                              ; @.str.10
	.asciz	"control-write URB short, expected=%d got=%d"

l_.str.11:                              ; @.str.11
	.asciz	"control-read URB failure, status=%d"

l_.str.12:                              ; @.str.12
	.asciz	"control-read URB short, expected=%d got=%d"

	.no_dead_strip	_pvr2_send_request_ex
.subsections_via_symbols
