	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_set_diseqc
_dst_set_diseqc:                        ## @dst_set_diseqc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rbx
	movaps	l___const.dst_set_diseqc.packet+16(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.dst_set_diseqc.packet(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rbx), %rax
	movq	_DST_TYPE_IS_SAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	(%rsi), %edx
	leal	-1(%rdx), %ecx
	movl	$3, %eax
	cmpl	$4, %ecx
	jb	LBB0_7
## %bb.4:
	cmpl	$5, %edx
	jne	LBB0_10
## %bb.5:
	movq	_DST_TYPE_HAS_DISEQC5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_10
## %bb.6:
	movl	$5, %edx
	movl	$2, %eax
LBB0_7:
	leaq	-64(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	4(%rsi), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_dst_check_sum
	movl	%eax, -36(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_dst_command
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_11
## %bb.9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.dst_set_diseqc.packet
l___const.dst_set_diseqc.packet:
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	224                             ## 0xe0
	.long	16                              ## 0x10
	.long	56                              ## 0x38
	.long	240                             ## 0xf0
	.long	236                             ## 0xec

	.comm	_DST_TYPE_IS_SAT,8,3            ## @DST_TYPE_IS_SAT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DST_TYPE_HAS_DISEQC5,4,2       ## @DST_TYPE_HAS_DISEQC5
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dst_set_diseqc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_set_diseqc
_dst_set_diseqc:                        ; @dst_set_diseqc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, l___const.dst_set_diseqc.packet@PAGE
Lloh4:
	add	x8, x8, l___const.dst_set_diseqc.packet@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _DST_TYPE_IS_SAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DST_TYPE_IS_SAT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w2, [x1]
	sub	w8, w2, #1
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #3
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cmp	w2, #5
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x9, _DST_TYPE_HAS_DISEQC5@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DST_TYPE_HAS_DISEQC5@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	w2, #5
	mov	w8, #2
LBB0_7:
	mov	x0, sp
	bfi	x0, x8, #2, #2
	ldr	w1, [x1, #4]
	bl	_memcpy
	mov	x0, sp
	mov	w1, #7
	bl	_dst_check_sum
	str	w0, [sp, #28]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_dst_command
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.dst_set_diseqc.packet
l___const.dst_set_diseqc.packet:
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	224                             ; 0xe0
	.long	16                              ; 0x10
	.long	56                              ; 0x38
	.long	240                             ; 0xf0
	.long	236                             ; 0xec

	.comm	_DST_TYPE_IS_SAT,8,3            ; @DST_TYPE_IS_SAT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DST_TYPE_HAS_DISEQC5,4,2       ; @DST_TYPE_HAS_DISEQC5
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dst_set_diseqc
.subsections_via_symbols
