	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_tuner_dsd                  ## -- Begin function avc_tuner_dsd
	.p2align	4, 0x90
_avc_tuner_dsd:                         ## @avc_tuner_dsd
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AVC_CTYPE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_AVC_SUBUNIT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	4(%r13), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_avc_tuner_dsd_dvb_c
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_avc_tuner_tuneqpsk
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_avc_tuner_dsd_dvb_t
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $ebx
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pad_operands
	addl	$3, %ebx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_ALIGN
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	callq	_avc_write
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVC_CTYPE_CONTROL,4,2          ## @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ## @AVC_SUBUNIT_TYPE_TUNER
	.comm	_r,8,3                          ## @r
	.comm	_status,8,3                     ## @status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_tuner_dsd                  ; -- Begin function avc_tuner_dsd
	.p2align	2
_avc_tuner_dsd:                         ; @avc_tuner_dsd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _AVC_CTYPE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVC_CTYPE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldp	w11, w8, [x20]
	orr	w10, w11, w10
	stp	w10, w9, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_avc_tuner_dsd_dvb_c
	mov	x22, x0
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_avc_tuner_tuneqpsk
	mov	x22, x0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	bl	_avc_tuner_dsd_dvb_t
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	bl	_BUG
                                        ; implicit-def: $w22
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_pad_operands
	add	w0, w22, #3
	mov	w1, #4
	bl	_ALIGN
	str	w0, [x20, #12]
	mov	x0, x20
	bl	_avc_write
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	cbnz	w20, LBB0_9
; %bb.8:
	mov	w0, #500
	bl	_msleep
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_CTYPE_CONTROL,4,2          ; @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ; @AVC_SUBUNIT_TYPE_TUNER
	.comm	_r,8,3                          ; @r
	.comm	_status,8,3                     ; @status
.subsections_via_symbols
