	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000mc_set_output_mode
_dib3000mc_set_output_mode:             ## @dib3000mc_set_output_mode
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$206, %esi
	callq	_dib3000mc_read_word
	movl	%eax, %r15d
	andl	$16, %r15d
	leaq	8(%r14), %r12
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	xorl	%r12d, %r12d
	jmpq	*%rcx
LBB0_3:
	movl	$1, %r12d
	movl	$4096, %r13d                    ## imm = 0x1000
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_7:
	movl	$1, %r12d
	jmp	LBB0_8
LBB0_2:
	movl	$1, %r12d
	movl	$2048, %r13d                    ## imm = 0x800
	jmp	LBB0_8
LBB0_4:
	orl	$6, %r15d
	movl	$3, %r12d
	movl	$10240, %r13d                   ## imm = 0x2800
	movl	$512, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x200
	jmp	LBB0_8
LBB0_5:
	movl	$1, %r12d
	movl	$8192, %r13d                    ## imm = 0x2000
LBB0_8:
	movq	(%r14), %rax
	leal	32(%r15), %ebx
	cmpq	$0, (%rax)
	cmovel	%r15d, %ebx
	movq	%r14, %rdi
	movl	$244, %esi
	callq	_dib3000mc_read_word
	andl	$2047, %eax                     ## imm = 0x7FF
	orl	%eax, %r13d
	movq	%r14, %rdi
	movl	$244, %esi
	movl	%r13d, %edx
	callq	_dib3000mc_write_word
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$206, %esi
	movl	%ebx, %edx
	callq	_dib3000mc_write_word
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$207, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dib3000mc_write_word
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	$1040, %esi                     ## imm = 0x410
	movl	%r12d, %edx
	callq	_dib3000mc_write_word
	orl	%ebx, %eax
	orl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-I-  Setting output mode for demod %p to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unhandled output_mode passed to be set for demod %p\n"

	.no_dead_strip	_dib3000mc_set_output_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib3000mc_set_output_mode
_dib3000mc_set_output_mode:             ; @dib3000mc_set_output_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w1, #206
	bl	_dib3000mc_read_word
	and	w22, w0, #0x10
	add	x20, x19, #8
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w23, #0
	mov	w20, #0
	mov	w21, #1792
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w20, #1
	mov	w23, #4096
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dprintk
LBB0_4:
	mov	w23, #0
	mov	w20, #1
	b	LBB0_8
LBB0_5:
	mov	w20, #1
	mov	w23, #2048
	b	LBB0_8
LBB0_6:
	orr	w22, w22, #0x6
	mov	w20, #3
	mov	w23, #10240
	mov	w21, #512
	b	LBB0_9
LBB0_7:
	mov	w20, #1
	mov	w23, #8192
LBB0_8:
	mov	w21, #1792
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	orr	w9, w22, #0x20
	cmp	x8, #0
	csel	w22, w22, w9, eq
	mov	x0, x19
	mov	w1, #244
	bl	_dib3000mc_read_word
	and	w8, w0, #0x7ff
	orr	w2, w8, w23
	mov	x0, x19
	mov	w1, #244
	bl	_dib3000mc_write_word
	mov	x23, x0
	mov	x0, x19
	mov	w1, #206
	mov	x2, x22
	bl	_dib3000mc_write_word
	orr	w22, w0, w23
	mov	x0, x19
	mov	w1, #207
	mov	x2, x21
	bl	_dib3000mc_write_word
	orr	w21, w22, w0
	mov	x0, x19
	mov	w1, #1040
	mov	x2, x20
	bl	_dib3000mc_write_word
	orr	w0, w21, w0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-I-  Setting output mode for demod %p to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unhandled output_mode passed to be set for demod %p\n"

	.no_dead_strip	_dib3000mc_set_output_mode
.subsections_via_symbols
