	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_set_output_mode
_dib8000_set_output_mode:               ## @dib8000_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, %r15d
	movq	(%rdi), %r13
	movl	%esi, (%r13)
	movq	%r13, %rdi
	movl	$299, %esi                      ## imm = 0x12B
	callq	_dib8000_read_word
	movl	%eax, %ebx
	movq	24(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	addl	$-128, %r15d
	cmpl	$6, %r15d
	ja	LBB0_7
## %bb.1:
	andl	$80, %ebx
	leal	2(%rbx), %r14d
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	movl	$1024, %r12d                    ## imm = 0x400
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	movl	$517, %r15d                     ## imm = 0x205
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	$1152, %r12d                    ## imm = 0x480
	jmp	LBB0_9
LBB0_7:
	movq	24(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_8:
	movl	$1088, %r12d                    ## imm = 0x440
	jmp	LBB0_9
LBB0_4:
	orl	$6, %ebx
	movl	$512, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x200
	movl	$1344, %r12d                    ## imm = 0x540
	movl	%ebx, %r14d
	jmp	LBB0_9
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_3:
	movl	16(%r13), %eax
	testl	%eax, %eax
	movl	$1280, %r12d                    ## imm = 0x500
	cmovel	%eax, %r12d
	movl	$3589, %eax                     ## imm = 0xE05
	movl	$5, %r15d
	cmovel	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	%r13, %rdi
	callq	_dib8000_set_acquisition_mode
	movl	$1216, %r12d                    ## imm = 0x4C0
LBB0_9:
	movl	%r14d, %edx
	orl	$32, %edx
	cmpq	$0, 8(%r13)
	cmovel	%r14d, %edx
	movq	%r13, %rdi
	movl	$299, %esi                      ## imm = 0x12B
	callq	_dib8000_write_word
	movq	%r13, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dib8000_write_word
	movq	%r13, %rdi
	movl	$1286, %esi                     ## imm = 0x506
	movl	%r12d, %edx
	callq	_dib8000_write_word
	movq	%r13, %rdi
	movl	$1291, %esi                     ## imm = 0x50B
	movl	%r15d, %edx
	callq	_dib8000_write_word
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %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_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-I-\tSetting 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"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dib8000_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 dib8000_set_output_mode
_dib8000_set_output_mode:               ; @dib8000_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
	ldr	x19, [x0]
	str	w1, [x19]
	mov	x0, x19
	mov	w1, #299
	bl	_dib8000_read_word
	mov	x20, x0
	ldr	x1, [x19, #24]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	sub	w9, w21, #128
	cmp	w9, #6
	b.hi	LBB0_3
; %bb.1:
	mov	w8, #80
	and	w8, w20, w8
	orr	w23, w8, #0x2
	mov	w20, #517
	mov	w22, #1792
	mov	w21, #1024
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w20, #517
	mov	w22, #1792
	mov	w21, #1152
	b	LBB0_9
LBB0_3:
	ldr	x1, [x19, #24]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	w20, #517
	mov	w22, #1792
	mov	w21, #1088
	b	LBB0_9
LBB0_5:
	orr	w23, w8, #0x6
	mov	w20, #517
	mov	w22, #512
	mov	w21, #1344
	b	LBB0_9
LBB0_6:
	mov	w21, #0
	mov	w20, #517
	mov	w22, #1792
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #16]
	mov	w9, #1280
	cmp	w8, #0
	csel	w21, wzr, w9, eq
	mov	w8, #5
	mov	w9, #3589
	csel	w20, w9, w8, eq
	mov	w22, #1792
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_dib8000_set_acquisition_mode
	mov	w20, #517
	mov	w22, #1792
	mov	w21, #1216
LBB0_9:
	ldr	x8, [x19, #8]
	orr	w9, w23, #0x20
	cmp	x8, #0
	csel	w2, w23, w9, eq
	mov	x0, x19
	mov	w1, #299
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #300
	mov	x2, x22
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #1286
	mov	x2, x21
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #1291
	mov	x2, x20
	bl	_dib8000_write_word
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-I-\tSetting 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"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dib8000_set_output_mode
.subsections_via_symbols
