	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24123_send_diseqc_msg
_cx24123_send_diseqc_msg:               ## @cx24123_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
	movq	%rsi, %r12
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_cx24123_readreg
	movl	%eax, %r14d
	testb	$16, %r14b
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edx
	andl	$-81, %edx
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_cx24123_writereg
LBB0_2:
	movq	%r15, %rdi
	callq	_cx24123_wait_for_diseqc
	movq	%r15, %rdi
	movl	$42, %esi
	callq	_cx24123_readreg
	andl	$251, %eax
	movq	%r15, %rdi
	movl	$42, %esi
	movl	%eax, %edx
	callq	_cx24123_writereg
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	leal	44(%rbx), %esi
	movq	%r15, %rdi
	callq	_cx24123_writereg
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_cx24123_readreg
                                        ## kill: def $eax killed $eax def $rax
	andl	$144, %eax
	movl	(%r12), %ecx
	incl	%ecx
	andl	$3, %ecx
	leal	(%rax,%rcx), %edx
	addl	$64, %edx
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_cx24123_writereg
	movq	%r15, %rdi
	callq	_cx24123_wait_for_diseqc
	testb	$16, %r14b
	je	LBB0_7
## %bb.6:
	andl	$-65, %r14d
	movq	%r15, %rdi
	movl	$41, %esi
	movl	%r14d, %edx
	callq	_cx24123_writereg
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.no_dead_strip	_cx24123_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 cx24123_send_diseqc_msg
_cx24123_send_diseqc_msg:               ; @cx24123_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
	mov	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #41
	bl	_cx24123_readreg
	mov	x20, x0
	tbz	w0, #4, LBB0_2
; %bb.1:
	mov	w8, #-81
	and	w2, w20, w8
	mov	x0, x19
	mov	w1, #41
	bl	_cx24123_writereg
LBB0_2:
	mov	x0, x19
	bl	_cx24123_wait_for_diseqc
	mov	x0, x19
	mov	w1, #42
	bl	_cx24123_readreg
	mov	w8, #251
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #42
	bl	_cx24123_writereg
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x22, lsl #2]
	add	w1, w22, #44
	mov	x0, x19
	bl	_cx24123_writereg
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	mov	w1, #41
	bl	_cx24123_readreg
	mov	w8, #144
	and	w8, w0, w8
	ldr	w9, [x21]
	add	w9, w9, #1
	bfxil	w8, w9, #0, #2
	orr	w2, w8, #0x40
	mov	x0, x19
	mov	w1, #41
	bl	_cx24123_writereg
	mov	x0, x19
	bl	_cx24123_wait_for_diseqc
	tbz	w20, #4, LBB0_7
; %bb.6:
	and	w2, w20, #0xffffffbf
	mov	x0, x19
	mov	w1, #41
	bl	_cx24123_writereg
LBB0_7:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.no_dead_strip	_cx24123_send_diseqc_msg
.subsections_via_symbols
