	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function digitv_ctrl_msg
_digitv_ctrl_msg:                       ## @digitv_ctrl_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	$4, %r8d
	jg	LBB0_2
## %bb.1:
	movl	16(%rbp), %r12d
	cmpl	$5, %r12d
	jge	LBB0_2
## %bb.4:
	movl	%r8d, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%r9, %r9
	sete	%al
	testl	%r12d, %r12d
	sete	%r13b
	orb	%al, %r13b
	movq	(%rdi), %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movq	%rsi, %r14
	xorl	%esi, %esi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	$7, %edx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	callq	_memset
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	%r14, (%rax)
	movq	(%r15), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	testb	%r13b, %r13b
	movl	%r12d, %eax
	cmovnel	%ebx, %eax
	cltq
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r15), %rsi
	cmpb	$1, %r13b
	jne	LBB0_5
## %bb.6:
	addq	$24, %rsi
	movq	%rsi, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$7, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_usb_generic_write          ## TAILCALL
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_5:
	movq	8(%r15), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$7, %edx
	movl	$7, %r8d
	movl	$10, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %ebx
	movq	8(%r15), %rsi
	addq	$24, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movl	%ebx, %eax
LBB0_3:
	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
	.no_dead_strip	_digitv_ctrl_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digitv_ctrl_msg
_digitv_ctrl_msg:                       ; @digitv_ctrl_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	w4, #4
	b.gt	LBB0_4
; %bb.1:
	mov	x19, x6
	cmp	w6, #5
	b.ge	LBB0_4
; %bb.2:
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	cmp	x5, #0
	ccmp	w19, #0, #4, ne
	cset	w27, eq
	ldr	x26, [x0]
	ldr	x0, [x26]
	mov	w1, #0
	mov	w2, #7
	bl	_memset
	ldr	x0, [x26, #8]
	mov	w1, #0
	mov	w2, #7
	bl	_memset
	ldr	x8, [x26]
	str	x25, [x8]
	ldr	x8, [x26]
	str	x24, [x8, #8]
	cmp	w27, #0
	csel	w8, w22, w19, ne
	sxtw	x8, w8
	ldr	x9, [x26]
	str	x8, [x9, #16]
	ldr	x1, [x26]
	cmp	w27, #1
	b.ne	LBB0_5
; %bb.3:
	add	x0, x1, #24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x1, [x26]
	mov	x0, x21
	mov	w2, #7
	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
	b	_dvb_usb_generic_write
LBB0_4:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	x3, [x26, #8]
	mov	x0, x21
	mov	w2, #7
	mov	w4, #7
	mov	w5, #10
	bl	_dvb_usb_generic_rw
	mov	x21, x0
	ldr	x8, [x26, #8]
	add	x1, x8, #24
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	mov	x0, x21
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_digitv_ctrl_msg
.subsections_via_symbols
