	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_lnb_init_fmode             ## -- Begin function ddb_lnb_init_fmode
	.p2align	4, 0x90
_ddb_lnb_init_fmode:                    ## @ddb_lnb_init_fmode
	.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	%edx, 4(%rsi)
	je	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %r13d
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_dev_info
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	leal	-1(%r14), %eax
	cmpl	$1, %eax
	ja	LBB0_8
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_fmode_sat@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_lnb_set_sat
	movq	_old_quattro@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	(%rbx), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	je	LBB0_5
## %bb.4:
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_lnb_set_sat
	movq	(%rbx), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$2, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_6
LBB0_5:
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_lnb_set_sat
	movq	(%rbx), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$2, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
LBB0_6:
	callq	_lnb_set_sat
	movq	(%rbx), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$3, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_lnb_set_sat
LBB0_7:
	movl	%r13d, %ebx
	movq	_SEC_TONE_OFF@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_lnb_set_tone
	movq	_old_quattro@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_SEC_TONE_ON@GOTPCREL(%rip), %rdx
	movq	%r13, %rax
	cmoveq	%rdx, %rax
	movl	(%rax), %ecx
	cmovneq	%rdx, %r13
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_lnb_set_tone
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$2, %edx
	callq	_lnb_set_tone
	movq	_SEC_TONE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$3, %edx
	callq	_lnb_set_tone
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movl	%r14d, 4(%r12)
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set fmode link %u = %u\n"

	.comm	_fmode_sat,8,3                  ## @fmode_sat
	.comm	_old_quattro,8,3                ## @old_quattro
	.comm	_SEC_TONE_OFF,4,2               ## @SEC_TONE_OFF
	.comm	_SEC_TONE_ON,4,2                ## @SEC_TONE_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_lnb_init_fmode             ; -- Begin function ddb_lnb_init_fmode
	.p2align	2
_ddb_lnb_init_fmode:                    ; @ddb_lnb_init_fmode
	.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
	ldr	w8, [x1, #4]
	cmp	w8, w2
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x1]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_dev_info
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
	sub	w8, w19, #1
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.2:
Lloh2:
	adrp	x25, _fmode_sat@GOTPAGE
Lloh3:
	ldr	x25, [x25, _fmode_sat@GOTPAGEOFF]
	ldr	x3, [x25]
Lloh4:
	adrp	x24, _old_quattro@GOTPAGE
Lloh5:
	ldr	x24, [x24, _old_quattro@GOTPAGEOFF]
	tbnz	x3, #63, LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_lnb_set_sat
	ldr	x8, [x24]
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	cbz	x8, LBB0_5
; %bb.4:
	mov	w4, #0
	mov	w5, #1
	bl	_lnb_set_sat
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	mov	w4, #1
	mov	w5, #0
	b	LBB0_6
LBB0_5:
	mov	w4, #1
	mov	w5, #0
	bl	_lnb_set_sat
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	mov	w4, #0
	mov	w5, #1
LBB0_6:
	bl	_lnb_set_sat
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #3
	mov	w4, #1
	mov	w5, #1
	bl	_lnb_set_sat
LBB0_7:
Lloh6:
	adrp	x25, _SEC_TONE_OFF@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SEC_TONE_OFF@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_lnb_set_tone
	ldr	x8, [x24]
Lloh8:
	adrp	x24, _SEC_TONE_ON@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SEC_TONE_ON@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x24, x25, eq
	ldr	w3, [x8]
	csel	x25, x25, x24, eq
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_lnb_set_tone
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_lnb_set_tone
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #3
	bl	_lnb_set_tone
LBB0_8:
	str	w19, [x20, #4]
	mov	x0, x23
	bl	_mutex_unlock
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set fmode link %u = %u\n"

	.comm	_fmode_sat,8,3                  ; @fmode_sat
	.comm	_old_quattro,8,3                ; @old_quattro
	.comm	_SEC_TONE_OFF,4,2               ; @SEC_TONE_OFF
	.comm	_SEC_TONE_ON,4,2                ; @SEC_TONE_ON
.subsections_via_symbols
