	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24110_send_diseqc_msg
_cx24110_send_diseqc_msg:               ## @cx24110_send_diseqc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	addl	$-7, %eax
	cmpl	$-4, %eax
	jae	LBB0_1
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	%rsi, %r15
	movq	(%rdi), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	leal	121(%rbx), %esi
	movq	%r14, %rdi
	callq	_cx24110_writereg
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movl	$119, %esi
	callq	_cx24110_readreg
	testb	$4, %al
	je	LBB0_5
## %bb.4:
	andl	$-5, %eax
	movq	%r14, %rdi
	movl	$119, %esi
	movl	%eax, %edx
	callq	_cx24110_writereg
	movl	$30, %edi
	callq	_msleep
LBB0_5:
	movq	%r14, %rdi
	movl	$118, %esi
	callq	_cx24110_readreg
                                        ## kill: def $eax killed $eax def $rax
	andl	$144, %eax
	movl	(%r15), %ecx
	incl	%ecx
	andl	$3, %ecx
	leal	(%rax,%rcx), %edx
	addl	$64, %edx
	movq	%r14, %rdi
	movl	$118, %esi
	callq	_cx24110_writereg
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	$118, %esi
	callq	_cx24110_readreg
	testb	$64, %al
	je	LBB0_6
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_cx24110_send_diseqc_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24110_send_diseqc_msg
_cx24110_send_diseqc_msg:               ; @cx24110_send_diseqc_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
	sub	w8, w8, #7
	cmn	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x21, #0
	ldr	x19, [x0]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x21, lsl #2]
	add	w1, w21, #121
	mov	x0, x19
	bl	_cx24110_writereg
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_3
; %bb.4:
	mov	x0, x19
	mov	w1, #119
	bl	_cx24110_readreg
	tbz	w0, #2, LBB0_6
; %bb.5:
	and	w2, w0, #0xfffffffb
	mov	x0, x19
	mov	w1, #119
	bl	_cx24110_writereg
	mov	w0, #30
	bl	_msleep
LBB0_6:
	mov	x0, x19
	mov	w1, #118
	bl	_cx24110_readreg
	mov	w8, #144
	and	w8, w0, w8
	ldr	w9, [x20]
	add	w9, w9, #1
	bfxil	w8, w9, #0, #2
	orr	w2, w8, #0x40
	mov	x0, x19
	mov	w1, #118
	bl	_cx24110_writereg
Lloh3:
	adrp	x21, _jiffies@GOTPAGE
Lloh4:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x20, x0, x20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #118
	bl	_cx24110_readreg
	tbz	w0, #6, LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_cx24110_send_diseqc_msg
.subsections_via_symbols
