	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000m_set_output_mode
_dib7000m_set_output_mode:              ## @dib7000m_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	$294, %esi                      ## imm = 0x126
	addl	(%rdi), %esi
	callq	_dib7000m_read_word
	movl	%eax, %r15d
	andl	$16, %r15d
	leal	2(%r15), %r12d
	leaq	24(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	movq	%r13, %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leal	-128(%r13), %eax
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	$5, %r14d
	movq	%r12, %rcx
	movl	$1024, %r12d                    ## imm = 0x400
	jmpq	*%rax
LBB0_3:
	movl	$1152, %r12d                    ## imm = 0x480
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$5, %r14d
	movq	%r12, %rcx
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_2:
	movl	$1088, %r12d                    ## imm = 0x440
	jmp	LBB0_8
LBB0_5:
	orl	$6, %r15d
	movl	$512, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x200
	movl	$1344, %r12d                    ## imm = 0x540
	movl	%r15d, %ecx
	jmp	LBB0_8
LBB0_4:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	movl	$1280, %r12d                    ## imm = 0x500
	cmovel	%eax, %r12d
	movl	$3077, %eax                     ## imm = 0xC05
	movl	$5, %r14d
	cmovel	%eax, %r14d
LBB0_8:
	leal	32(%rcx), %edx
	cmpq	$0, 8(%rbx)
	cmovel	%ecx, %edx
	movl	$294, %esi                      ## imm = 0x126
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dib7000m_write_word
	movl	%eax, %r13d
	movl	$295, %esi                      ## imm = 0x127
	addl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dib7000m_write_word
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$1795, %esi                     ## imm = 0x703
	movl	%r12d, %edx
	callq	_dib7000m_write_word
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$1805, %esi                     ## imm = 0x70D
	movl	%r14d, %edx
	callq	_dib7000m_write_word
	movl	%eax, %r14d
	cmpl	$16387, 4(%rbx)                 ## imm = 0x4003
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$909, %esi                      ## imm = 0x38D
	callq	_dib7000m_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$65533, %eax                    ## imm = 0xFFFD
	leal	2(%rax), %edx
	cmpl	$133, -56(%rbp)                 ## 4-byte Folded Reload
	cmovnel	%eax, %edx
	movq	%rbx, %rdi
	movl	$909, %esi                      ## imm = 0x38D
	callq	_dib7000m_write_word
LBB0_10:
	orl	%r13d, %r15d
	orl	%r12d, %r15d
	orl	%r14d, %r15d
	movl	%r15d, %eax
	addq	$24, %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_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"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	_dib7000m_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 dib7000m_set_output_mode
_dib7000m_set_output_mode:              ; @dib7000m_set_output_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21], #24
	add	w1, w8, #294
	bl	_dib7000m_read_word
	and	w25, w0, #0x10
	orr	w24, w25, #0x2
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w21, #5
	mov	w23, #1792
	mov	w22, #1024
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	w21, #5
	mov	w23, #1792
	mov	w22, #1152
	b	LBB0_9
LBB0_3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_dprintk
LBB0_4:
	mov	w22, #0
	mov	w21, #5
	b	LBB0_8
LBB0_5:
	mov	w21, #5
	mov	w23, #1792
	mov	w22, #1088
	b	LBB0_9
LBB0_6:
	orr	w24, w25, #0x6
	mov	w21, #5
	mov	w23, #512
	mov	w22, #1344
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #16]
	mov	w9, #1280
	cmp	w8, #0
	csel	w22, wzr, w9, eq
	mov	w8, #5
	mov	w9, #3077
	csel	w21, w9, w8, eq
LBB0_8:
	mov	w23, #1792
LBB0_9:
	ldr	x8, [x19, #8]
	orr	w9, w24, #0x20
	cmp	x8, #0
	csel	w2, w24, w9, eq
	ldr	w8, [x19]
	add	w1, w8, #294
	mov	x0, x19
	bl	_dib7000m_write_word
	mov	x24, x0
	ldr	w8, [x19]
	add	w1, w8, #295
	mov	x0, x19
	mov	x2, x23
	bl	_dib7000m_write_word
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1795
	mov	x2, x22
	bl	_dib7000m_write_word
	mov	x22, x0
	mov	x0, x19
	mov	w1, #1805
	mov	x2, x21
	bl	_dib7000m_write_word
	mov	x21, x0
	ldr	w8, [x19, #4]
	mov	w9, #16387
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #909
	bl	_dib7000m_read_word
	mov	w8, #65533
	and	w8, w0, w8
	orr	w9, w8, #0x2
	cmp	w20, #133
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #909
	bl	_dib7000m_write_word
LBB0_11:
	orr	w8, w23, w24
	orr	w8, w8, w22
	orr	w0, w8, w21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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_9-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"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	_dib7000m_set_output_mode
.subsections_via_symbols
