	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_send_diseqc_msg
_stb0899_send_diseqc_msg:               ## @stb0899_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	%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
	cmpl	$9, (%rsi)
	jb	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r13
	movq	(%rdi), %r14
	movq	_STB0899_DISCNTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stb0899_read_reg
	movq	%rax, %r15
	movq	_DISPRECHARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_stb0899_write_reg
	cmpl	$0, (%r13)
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_STB0899_DISFIFO@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$100, %esi
	callq	_stb0899_wait_diseqc_fifo_empty
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %esi
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	callq	_stb0899_write_reg
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stb0899_read_reg
	movq	%rax, %r15
	movq	_DISPRECHARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_stb0899_write_reg
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_9
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STB0899_DISCNTRL1,4,2          ## @STB0899_DISCNTRL1
	.comm	_DISPRECHARGE,4,2               ## @DISPRECHARGE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_STB0899_DISFIFO,4,2            ## @STB0899_DISFIFO
	.no_dead_strip	_stb0899_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 stb0899_send_diseqc_msg
_stb0899_send_diseqc_msg:               ; @stb0899_send_diseqc_msg
	.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
	ldr	w8, [x1]
	cmp	w8, #9
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	ldr	x19, [x0]
Lloh2:
	adrp	x22, _STB0899_DISCNTRL1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STB0899_DISCNTRL1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x21, x0
Lloh4:
	adrp	x23, _DISPRECHARGE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DISPRECHARGE@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	mov	w2, #1
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_stb0899_write_reg
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x21, #0
Lloh6:
	adrp	x24, _STB0899_DISFIFO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _STB0899_DISFIFO@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #100
	bl	_stb0899_wait_diseqc_fifo_empty
	tbnz	x0, #63, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	ldr	x8, [x20, #8]
	ldr	x2, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_stb0899_write_reg
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
	ldr	w0, [x23]
	mov	x1, x20
	mov	w2, #0
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
	mov	w0, #100
	bl	_msleep
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STB0899_DISCNTRL1,4,2          ; @STB0899_DISCNTRL1
	.comm	_DISPRECHARGE,4,2               ; @DISPRECHARGE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_STB0899_DISFIFO,4,2            ; @STB0899_DISFIFO
	.no_dead_strip	_stb0899_send_diseqc_msg
.subsections_via_symbols
