	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_send_diseqc_burst
_stv090x_send_diseqc_burst:             ## @stv090x_send_diseqc_burst
	.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
	movl	%esi, %r14d
	movq	(%rdi), %r12
	movq	_DISTXCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r15d
	movq	_SEC_MINI_A@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	setne	%dl
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	leal	3(%rdx,%rdx), %eax
	leal	2(%rdx,%rdx), %edx
	cmovel	%eax, %edx
	movl	$255, %r14d
	cmovel	%ecx, %r14d
	movq	_DISTX_MODE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_STV090x_SETFIELD_Px
	movq	_DISEQC_RESET_FIELD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_10
## %bb.2:
	movq	_DIS_PRECHARGE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	_DISTXSTATUS@GOTPCREL(%rip), %r15
	movq	_FIFO_FULL_FIELD@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_DISTXDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	movq	_DIS_PRECHARGE_FIELD@GOTPCREL(%rip), %rbx
	js	LBB0_10
## %bb.6:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r14d
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:
	movq	_TX_IDLE_FIELD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, %r14d
	movl	$10, %edi
	callq	_msleep
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9, %ebx
	movl	%ecx, %ebx
	jb	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISTXCTL,4,2                   ## @DISTXCTL
	.comm	_SEC_MINI_A,4,2                 ## @SEC_MINI_A
	.comm	_DISTX_MODE_FIELD,4,2           ## @DISTX_MODE_FIELD
	.comm	_DISEQC_RESET_FIELD,4,2         ## @DISEQC_RESET_FIELD
	.comm	_DIS_PRECHARGE_FIELD,4,2        ## @DIS_PRECHARGE_FIELD
	.comm	_DISTXSTATUS,4,2                ## @DISTXSTATUS
	.comm	_FIFO_FULL_FIELD,4,2            ## @FIFO_FULL_FIELD
	.comm	_DISTXDATA,4,2                  ## @DISTXDATA
	.comm	_TX_IDLE_FIELD,4,2              ## @TX_IDLE_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_send_diseqc_burst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_send_diseqc_burst
_stv090x_send_diseqc_burst:             ; @stv090x_send_diseqc_burst
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _DISTXCTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DISTXCTL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
Lloh2:
	adrp	x8, _SEC_MINI_A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEC_MINI_A@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	cmp	x9, #0
	mov	w9, #5
	mov	w10, #3
	csel	w9, w10, w9, eq
	mov	w10, #4
	mov	w11, #2
	csel	w10, w11, w10, eq
	cmp	w8, w20
	csel	w2, w9, w10, eq
	mov	w8, #255
	csel	w20, wzr, w8, eq
Lloh5:
	adrp	x8, _DISTX_MODE_FIELD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DISTX_MODE_FIELD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_STV090x_SETFIELD_Px
Lloh8:
	adrp	x23, _DISEQC_RESET_FIELD@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DISEQC_RESET_FIELD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_10
; %bb.2:
Lloh10:
	adrp	x23, _DIS_PRECHARGE_FIELD@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DIS_PRECHARGE_FIELD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_10
; %bb.3:
Lloh12:
	adrp	x21, _DISTXSTATUS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _DISTXSTATUS@GOTPAGEOFF]
Lloh14:
	adrp	x24, _FIFO_FULL_FIELD@GOTPAGE
Lloh15:
	ldr	x24, [x24, _FIFO_FULL_FIELD@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x24]
	bl	_STV090x_GETFIELD_Px
	cbnz	w0, LBB0_4
; %bb.5:
Lloh16:
	adrp	x8, _DISTXDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DISTXDATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_10
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
	ldr	w1, [x23]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_10
; %bb.7:
	mov	w22, #0
Lloh19:
	adrp	x23, _TX_IDLE_FIELD@GOTPAGE
Lloh20:
	ldr	x23, [x23, _TX_IDLE_FIELD@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x23]
	bl	_STV090x_GETFIELD_Px
	mov	x20, x0
	mov	w0, #10
	bl	_msleep
	cmp	w20, #0
	ccmp	w22, #9, #2, eq
	add	w22, w22, #1
	b.lo	LBB0_8
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_11:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DISTXCTL,4,2                   ; @DISTXCTL
	.comm	_SEC_MINI_A,4,2                 ; @SEC_MINI_A
	.comm	_DISTX_MODE_FIELD,4,2           ; @DISTX_MODE_FIELD
	.comm	_DISEQC_RESET_FIELD,4,2         ; @DISEQC_RESET_FIELD
	.comm	_DIS_PRECHARGE_FIELD,4,2        ; @DIS_PRECHARGE_FIELD
	.comm	_DISTXSTATUS,4,2                ; @DISTXSTATUS
	.comm	_FIFO_FULL_FIELD,4,2            ; @FIFO_FULL_FIELD
	.comm	_DISTXDATA,4,2                  ; @DISTXDATA
	.comm	_TX_IDLE_FIELD,4,2              ; @TX_IDLE_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_send_diseqc_burst
.subsections_via_symbols
