	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_af9005_send_command            ## -- Begin function af9005_send_command
	.p2align	4, 0x90
_af9005_send_command:                   ## @af9005_send_command
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.3:
	movl	%ecx, %r12d
	cmpl	$55, %ecx
	jb	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	cmpl	$55, %r9d
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_37:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r8, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	8(%rdi), %r15
	leal	5(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r15), %rcx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx)
	movabsq	$163208757248, %rax             ## imm = 0x2600000000
	movq	%rax, 4(%rcx)
	leal	3(%r12), %eax
	movl	%eax, 12(%rcx)
	movslq	8(%r15), %rdx
	leal	1(%rdx), %eax
	movl	%eax, 8(%r15)
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, 16(%rcx)
	movl	%r14d, 20(%rcx)
	movl	%r12d, 24(%rcx)
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.8:
	movl	%r12d, %r9d
	cmpl	$1, %r12d
	jne	LBB0_10
## %bb.9:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_10:
	movl	%r9d, %edx
	andl	$-2, %edx
	leaq	-2(%rdx), %rax
	movq	%rax, %rdi
	shrq	%rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$6, %rax
	jae	LBB0_12
## %bb.11:
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_12:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi,8), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 28(%rcx,%rsi,4)
	movdqu	16(%rbx,%rsi,8), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 36(%rcx,%rsi,4)
	movdqu	32(%rbx,%rsi,8), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 44(%rcx,%rsi,4)
	movdqu	48(%rbx,%rsi,8), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 52(%rcx,%rsi,4)
	addq	$8, %rsi
	addq	$-4, %rdi
	jne	LBB0_13
LBB0_14:
	testq	%r8, %r8
	je	LBB0_17
## %bb.15:
	leaq	(%rcx,%rsi,4), %rdi
	addq	$28, %rdi
	leaq	(%rbx,%rsi,8), %rsi
	shlq	$3, %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rax,2), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, (%rdi,%rax)
	addq	$8, %rax
	cmpq	%rax, %r8
	jne	LBB0_16
LBB0_17:
	cmpq	%r9, %rdx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,8), %eax
	movl	%eax, 28(%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_18
LBB0_19:
	addl	$7, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	7(%rax), %r8d
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rsi
	movl	%r12d, %edx
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpl	$39, 8(%rax)
	jne	LBB0_20
## %bb.21:
	movslq	16(%rax), %rcx
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_23
## %bb.22:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_27
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
LBB0_27:
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_28:
	testl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_36
## %bb.29:
	testl	%ecx, %ecx
	jle	LBB0_36
## %bb.30:
	movl	%ecx, %edx
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_32
## %bb.31:
	xorl	%ecx, %ecx
	jmp	LBB0_34
LBB0_32:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movslq	28(%rsi,%rcx,4), %rsi
	movq	%rsi, (%r13,%rcx,8)
	movq	(%r15), %rsi
	movslq	32(%rsi,%rcx,4), %rsi
	movq	%rsi, 8(%r13,%rcx,8)
	movq	(%r15), %rsi
	movslq	36(%rsi,%rcx,4), %rsi
	movq	%rsi, 16(%r13,%rcx,8)
	movq	(%r15), %rsi
	movslq	40(%rsi,%rcx,4), %rsi
	movq	%rsi, 24(%r13,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_33
LBB0_34:
	testq	%rax, %rax
	je	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movslq	28(%rdx,%rcx,4), %rdx
	movq	%rdx, (%r13,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_35
LBB0_36:
	callq	_mutex_unlock
	jmp	LBB0_37
LBB0_23:
	cmpl	$1, 20(%rax)
	jne	LBB0_24
## %bb.25:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, 24(%rax)
	je	LBB0_28
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_27
LBB0_24:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send command, wlen less than 0 bytes. Makes no sense."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"send command, wlen more than 54 bytes. Not supported."

L_.str.2:                               ## @.str.2
	.asciz	"send command, rlen more than 54 bytes. Not supported."

L_.str.3:                               ## @.str.3
	.asciz	"send command, wrong reply code."

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"send command, wrong sequence in reply."

L_.str.5:                               ## @.str.5
	.asciz	"send command, wrong status code in reply."

L_.str.6:                               ## @.str.6
	.asciz	"send command, invalid data length in reply."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function af9005_send_command
lCPI0_0:
	.long	0                               ; 0x0
	.long	38                              ; 0x26
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_af9005_send_command
	.p2align	2
_af9005_send_command:                   ; @af9005_send_command
	.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
	tbnz	w3, #31, LBB0_3
; %bb.1:
	mov	x22, x3
	cmp	w3, #55
	b.lo	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x21, x5
	cmp	w5, #55
	b.lt	LBB0_8
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	mov	x19, x4
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x25, [x0, #8]
	add	w26, w22, #5
	bl	_mutex_lock
	ldr	x1, [x25]
	str	w26, [x1]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x1, #4]
	add	w8, w22, #3
	str	w8, [x1, #12]
	ldrsw	x26, [x25, #8]
	add	w8, w26, #1
	str	w8, [x25, #8]
	stp	w26, w24, [x1, #16]
	str	w22, [x1, #24]
	cbz	w22, LBB0_16
; %bb.9:
	mov	w8, w22
	cmp	w22, #1
	b.ne	LBB0_11
; %bb.10:
	mov	x9, #0
	b	LBB0_14
LBB0_11:
	and	x9, x8, #0xfffffffe
	add	x10, x1, #28
	mov	x11, x9
	mov	x12, x23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x12], #16
	xtn.2s	v0, v0
	str	d0, [x10], #8
	subs	x11, x11, #2
	b.ne	LBB0_12
; %bb.13:
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_14:
	add	x10, x1, x9, lsl #2
	add	x10, x10, #28
	add	x11, x23, x9, lsl #3
	sub	x8, x8, x9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	add	w2, w22, #7
	add	w4, w21, #7
	mov	x0, x20
	mov	x3, x1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	ldr	x8, [x25]
	ldr	w9, [x8, #8]
	cmp	w9, #39
	b.ne	LBB0_19
; %bb.17:
	ldrsw	x9, [x8, #16]
	cmp	x9, x26
	b.eq	LBB0_25
; %bb.18:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_err
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_21:
	cmp	w22, #0
	ccmp	w21, #1, #8, eq
	b.lt	LBB0_24
; %bb.22:
	mov	x8, #0
	mov	w9, w21
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x25]
	add	x10, x10, x8, lsl #2
	ldrsw	x10, [x10, #28]
	str	x10, [x19, x8, lsl #3]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_23
LBB0_24:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_7
LBB0_25:
	ldr	w9, [x8, #20]
	cmp	w9, #1
	b.ne	LBB0_28
; %bb.26:
	mov	x22, x0
	ldr	w8, [x8, #24]
	cmp	w8, w21
	b.eq	LBB0_21
; %bb.27:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_28:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send command, wlen less than 0 bytes. Makes no sense."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"send command, wlen more than 54 bytes. Not supported."

l_.str.2:                               ; @.str.2
	.asciz	"send command, rlen more than 54 bytes. Not supported."

l_.str.3:                               ; @.str.3
	.asciz	"send command, wrong reply code."

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"send command, wrong sequence in reply."

l_.str.5:                               ; @.str.5
	.asciz	"send command, wrong status code in reply."

l_.str.6:                               ; @.str.6
	.asciz	"send command, invalid data length in reply."

.subsections_via_symbols
