	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av7110_send_diseqc_msg
_av7110_send_diseqc_msg:                ## @av7110_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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -48(%rbp)
	movq	_COMTYPE_AUDIODAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	movq	_SendDiSEqC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -112(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r15, %rdx
	callq	_dprintk
	cmpl	$10, %ebx
	movl	$10, %eax
	cmovll	%ebx, %eax
	leal	2(%rax), %ecx
	movl	%ecx, -108(%rbp)
	movl	%eax, -104(%rbp)
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	setne	%cl
	cmpl	$-1, %r12d
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovnel	%ecx, %edx
	movl	%edx, -100(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	leaq	-96(%rbp), %rdi
	cmpl	$2, %eax
	movl	$1, %edx
	cmovgel	%eax, %edx
	shlq	$2, %rdx
	movq	%r14, %rsi
	callq	_memcpy
LBB0_2:
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movl	$18, %edx
	callq	_budget_av7110_send_fw_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMTYPE_AUDIODAC,4,2           ## @COMTYPE_AUDIODAC
	.comm	_SendDiSEqC,4,2                 ## @SendDiSEqC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"budget: %p\n"

	.no_dead_strip	_av7110_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 av7110_send_diseqc_msg
_av7110_send_diseqc_msg:                ; @av7110_send_diseqc_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh3:
	adrp	x8, _COMTYPE_AUDIODAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMTYPE_AUDIODAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SendDiSEqC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SendDiSEqC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
	str	w8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
	mov	w8, #10
	cmp	w22, #10
	csel	w8, w22, w8, lt
	add	w9, w8, #2
	stp	w9, w8, [sp, #4]
	cmp	w21, #0
	cset	w9, ne
	cmn	w21, #1
	mov	w10, #65535
	csel	w9, w10, w9, eq
	str	w9, [sp, #12]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x9, sp
	add	x0, x9, #16
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	lsl	x2, x8, #2
	mov	x1, x20
	bl	_memcpy
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #18
	bl	_budget_av7110_send_fw_cmd
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMTYPE_AUDIODAC,4,2           ; @COMTYPE_AUDIODAC
	.comm	_SendDiSEqC,4,2                 ; @SendDiSEqC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"budget: %p\n"

	.no_dead_strip	_av7110_send_diseqc_msg
.subsections_via_symbols
