	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_diseqc_send
_stv0900_diseqc_send:                   ## @stv0900_diseqc_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_DIS_PRECHARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_stv0900_write_bits
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	movq	_FIFO_FULL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_stv0900_get_bits
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DISTXDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15,%r13,4), %edx
	movq	%rbx, %rdi
	callq	_stv0900_write_reg
	incq	%r13
	cmpq	%r14, %r13
	jne	LBB0_2
LBB0_4:
	movq	_DIS_PRECHARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_TX_IDLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_stv0900_get_bits
	cmpl	$1, %eax
	je	LBB0_8
## %bb.5:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_stv0900_get_bits
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r15), %rax
	cmpq	$9, %r15
	movq	%rax, %r15
	jb	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIS_PRECHARGE,4,2              ## @DIS_PRECHARGE
	.comm	_FIFO_FULL,4,2                  ## @FIFO_FULL
	.comm	_DISTXDATA,4,2                  ## @DISTXDATA
	.comm	_TX_IDLE,4,2                    ## @TX_IDLE
	.no_dead_strip	_stv0900_diseqc_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0900_diseqc_send
_stv0900_diseqc_send:                   ; @stv0900_diseqc_send
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _DIS_PRECHARGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DIS_PRECHARGE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #1
	bl	_stv0900_write_bits
	cbz	x20, LBB0_4
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _FIFO_FULL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FIFO_FULL@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DISTXDATA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DISTXDATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cbnz	w0, LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x21, x23, lsl #2]
	mov	x0, x19
	bl	_stv0900_write_reg
	add	x23, x23, #1
	cmp	x23, x20
	b.ne	LBB0_2
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh6:
	adrp	x20, _TX_IDLE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TX_IDLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	add	x22, x21, #1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	ccmp	x21, #9, #2, ne
	mov	x21, x22
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DIS_PRECHARGE,4,2              ; @DIS_PRECHARGE
	.comm	_FIFO_FULL,4,2                  ; @FIFO_FULL
	.comm	_DISTXDATA,4,2                  ; @DISTXDATA
	.comm	_TX_IDLE,4,2                    ; @TX_IDLE
	.no_dead_strip	_stv0900_diseqc_send
.subsections_via_symbols
