	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttusb2_msg
_ttusb2_msg:                            ## @ttusb2_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$61, %r9d
	jl	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movl	%r9d, %r14d
	movl	%ecx, %ebx
	movq	%rdi, %r12
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	4(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r13
	movl	(%r15), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movl	$170, (%r13)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	incl	%eax
	movl	%eax, (%rcx)
	movl	%eax, 4(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	movl	%ebx, 12(%r13)
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	$64, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	cmpl	$85, (%rbx)
	jne	LBB0_12
## %bb.6:
	movl	4(%rbx), %eax
	cmpl	4(%r13), %eax
	jne	LBB0_12
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%rbx)
	jne	LBB0_12
## %bb.8:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.9:
	cmpl	%r14d, 12(%rbx)
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_12:
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_warn
	movq	%r13, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	%r13, %rdi
	callq	_kfree
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"there might have been an error during control message transfer. (rlen = %d, was %d)"

	.no_dead_strip	_ttusb2_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttusb2_msg
_ttusb2_msg:                            ; @ttusb2_msg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w5, #61
	b.ge	LBB0_12
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x25, x3
	mov	x27, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x28, [x0]
	add	w26, w3, #4
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x26
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x20, x0
	ldr	w1, [x22]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
	mov	w8, #170
	str	w8, [x20]
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	stp	w8, w23, [x20, #4]
	str	w25, [x20, #12]
	add	x0, x20, #16
	mov	x1, x27
	mov	x2, x25
	bl	_memcpy
	mov	x0, x24
	mov	x1, x20
	mov	x2, x26
	mov	x3, x22
	mov	w4, #64
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	w8, [x22]
	cmp	w8, #85
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x22, #4]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x22, #8]
	cmp	w8, w23
	b.ne	LBB0_11
; %bb.7:
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.8:
	ldr	w8, [x22, #12]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.9:
	add	x1, x22, #16
	mov	x0, x21
	mov	x2, x19
	bl	_memcpy
LBB0_10:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	w0, #0
	b	LBB0_16
LBB0_11:
	ldr	w2, [x22, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	bl	_kfree
LBB0_12:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_kfree
LBB0_14:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"there might have been an error during control message transfer. (rlen = %d, was %d)"

	.no_dead_strip	_ttusb2_msg
.subsections_via_symbols
