	.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	%r12
	pushq	%rbx
	subq	$528, %rsp                      ## imm = 0x210
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.3:
	movl	%ecx, %ebx
	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:
	movl	%r9d, %r15d
	cmpl	$55, %r9d
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%ebx, %eax
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r8, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	leal	5(%rbx), %ecx
	movl	%ecx, -304(%rbp)
	movabsq	$163208757248, %rcx             ## imm = 0x2600000000
	movq	%rcx, -300(%rbp)
	leal	3(%rbx), %ecx
	movl	%ecx, -292(%rbp)
	movl	(%rax), %ecx
	leal	1(%rcx), %edi
	movl	%edi, (%rax)
	movl	%ecx, -288(%rbp)
	movl	%esi, -284(%rbp)
	movl	%ebx, -280(%rbp)
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	-276(%rbp), %rdi
	movl	%ebx, %eax
	shlq	$2, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_memcpy
LBB0_9:
	addl	$7, %ebx
	leal	7(%r15), %r8d
	leaq	-304(%rbp), %rsi
	leaq	-560(%rbp), %rcx
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:
	cmpl	$39, -552(%rbp)
	jne	LBB0_11
## %bb.12:
	movl	-544(%rbp), %eax
	cmpl	-288(%rbp), %eax
	jne	LBB0_13
## %bb.14:
	cmpl	$1, -540(%rbp)
	jne	LBB0_15
## %bb.16:
	cmpl	%r15d, -536(%rbp)
	jne	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.18:
	leaq	-532(%rbp), %rsi
	movl	%r15d, %edx
	shlq	$2, %rdx
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_20
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
LBB0_20:
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_24:
	callq	___stack_chk_fail
	.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	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	tbnz	w3, #31, LBB0_3
; %bb.1:
	mov	x22, x3
	cmp	w3, #55
	b.lo	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x20, x5
	cmp	w5, #55
	b.lt	LBB0_10
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.9:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x19, x4
	mov	x21, x0
	ldr	x8, [x0]
	add	w9, w22, #5
	str	w9, [sp, #264]
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	add	x9, sp, #13
	stur	d0, [x9, #255]
	add	w9, w22, #3
	str	w9, [sp, #276]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	w9, [sp, #280]
	str	w1, [sp, #284]
	str	w22, [sp, #288]
	cbz	w22, LBB0_12
; %bb.11:
	add	x8, sp, #264
	add	x0, x8, #28
	mov	w8, w22
	lsl	x8, x8, #2
	mov	x1, x2
	mov	x2, x8
	bl	_memcpy
LBB0_12:
	add	w2, w22, #7
	add	w4, w20, #7
	add	x1, sp, #264
	add	x3, sp, #8
	mov	x0, x21
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	cbnz	w0, LBB0_8
; %bb.13:
	ldr	w8, [sp, #16]
	cmp	w8, #39
	b.ne	LBB0_19
; %bb.14:
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #280]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.15:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.16:
	ldr	w8, [sp, #32]
	cmp	w8, w20
	b.ne	LBB0_22
; %bb.17:
	cmp	w20, #1
	b.lt	LBB0_24
; %bb.18:
	add	x8, sp, #8
	add	x1, x8, #28
	mov	w8, w20
	lsl	x2, x8, #2
	mov	x0, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_19:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_20:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_23:
	bl	_err
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_24:
	mov	w0, #0
	b	LBB0_8
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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
