	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7090_set_output_mode
_dib7090_set_output_mode:               ## @dib7090_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, %r14d
	movq	(%rdi), %r13
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_dib7090_host_bus_drive
	movq	%r13, %rdi
	movl	$235, %esi
	callq	_dib7000p_read_word
	movl	%eax, %ebx
	andl	$80, %ebx
	leal	2(%rbx), %r12d
	movq	%r13, %rdi
	movl	$1286, %esi                     ## imm = 0x506
	callq	_dib7000p_read_word
	movl	%eax, %r15d
	andl	$-1475, %r15d                   ## imm = 0xFA3D
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$1, %edx
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_1:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	jmp	LBB0_13
LBB0_6:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	movq	%r13, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_5:
	callq	_dib7090_configMpegMux
	movq	_MPEG_ON_HOSTBUS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	leaq	L_.str.4(%rip), %rdi
	callq	_dprintk
	movq	_DEMOUT_ON_HOSTBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dib7090_setHostBusMux
	orl	$64, %r15d
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
	callq	_dprintk
	movq	_DEMOUT_ON_HOSTBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dib7090_setHostBusMux
	orl	$320, %r15d                     ## imm = 0x140
	orl	$6, %ebx
	movl	$512, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x200
	movl	%ebx, %r12d
	jmp	LBB0_13
LBB0_3:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_9:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	leaq	L_.str.6(%rip), %rdi
	callq	_dprintk
	movq	_DIV_ON_DIBTX@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movl	$1792, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x700
	leaq	L_.str.7(%rip), %rdi
	callq	_dprintk
	movq	_ADC_ON_DIBTX@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dib7090_setDibTxMux
	movq	_DIBTX_ON_HOSTBUS@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dib7090_setHostBusMux
LBB0_13:
	movl	%r15d, %ebx
	orl	$1024, %ebx                     ## imm = 0x400
	cmpl	$132, %r14d
	cmovel	%r15d, %ebx
	movl	%r12d, %edx
	orl	$32, %edx
	cmpq	$0, (%r13)
	cmovel	%r12d, %edx
	movq	%r13, %rdi
	movl	$235, %esi
	callq	_dib7000p_write_word
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$236, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dib7000p_write_word
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	$1286, %esi                     ## imm = 0x506
	movl	%ebx, %edx
	callq	_dib7000p_write_word
	orl	%r15d, %eax
	orl	%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_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting output mode TS_SERIAL using Mpeg Mux\n"

	.comm	_MPEG_ON_HOSTBUS,4,2            ## @MPEG_ON_HOSTBUS
	.comm	_DEMOUT_ON_HOSTBUS,4,2          ## @DEMOUT_ON_HOSTBUS
L_.str.2:                               ## @.str.2
	.asciz	"setting output mode TS_PARALLEL_GATED using Mpeg Mux\n"

L_.str.4:                               ## @.str.4
	.asciz	"setting output mode TS_PARALLEL_CONT using Smooth block\n"

L_.str.5:                               ## @.str.5
	.asciz	"setting output mode TS_FIFO using Smooth block\n"

L_.str.6:                               ## @.str.6
	.asciz	"setting output mode MODE_DIVERSITY\n"

	.comm	_DIV_ON_DIBTX,4,2               ## @DIV_ON_DIBTX
	.comm	_DIBTX_ON_HOSTBUS,4,2           ## @DIBTX_ON_HOSTBUS
L_.str.7:                               ## @.str.7
	.asciz	"setting output mode MODE_ANALOG_ADC\n"

	.comm	_ADC_ON_DIBTX,4,2               ## @ADC_ON_DIBTX
	.no_dead_strip	_dib7090_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 dib7090_set_output_mode
_dib7090_set_output_mode:               ; @dib7090_set_output_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1
	bl	_dib7090_host_bus_drive
	mov	x0, x19
	mov	w1, #235
	bl	_dib7000p_read_word
	mov	w8, #80
	and	w21, w0, w8
	orr	w23, w21, #0x2
	mov	x0, x19
	mov	w1, #1286
	bl	_dib7000p_read_word
	mov	w8, #-1475
	and	w22, w0, w8
	sub	w8, w20, #128
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	mov	w3, #1
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	mov	w3, #0
LBB0_4:
	bl	_dib7090_configMpegMux
Lloh6:
	adrp	x8, _MPEG_ON_HOSTBUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPEG_ON_HOSTBUS@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
Lloh10:
	adrp	x8, _DEMOUT_ON_HOSTBUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEMOUT_ON_HOSTBUS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7090_setHostBusMux
	orr	w22, w22, #0x40
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintk
Lloh15:
	adrp	x8, _DEMOUT_ON_HOSTBUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEMOUT_ON_HOSTBUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7090_setHostBusMux
	mov	w8, #320
	orr	w22, w22, w8
	orr	w23, w21, #0x6
	mov	w21, #512
	b	LBB0_13
LBB0_7:
	mov	w22, #0
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dprintk
Lloh20:
	adrp	x8, _DIV_ON_DIBTX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DIV_ON_DIBTX@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dprintk
Lloh24:
	adrp	x8, _ADC_ON_DIBTX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADC_ON_DIBTX@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7090_setDibTxMux
Lloh26:
	adrp	x8, _DIBTX_ON_HOSTBUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DIBTX_ON_HOSTBUS@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7090_setHostBusMux
LBB0_12:
	mov	w21, #1792
LBB0_13:
	orr	w8, w22, #0x400
	cmp	w20, #132
	csel	w20, w22, w8, eq
	ldr	x8, [x19]
	orr	w9, w23, #0x20
	cmp	x8, #0
	csel	w2, w23, w9, eq
	mov	x0, x19
	mov	w1, #235
	bl	_dib7000p_write_word
	mov	x22, x0
	mov	x0, x19
	mov	w1, #236
	mov	x2, x21
	bl	_dib7000p_write_word
	orr	w21, w0, w22
	mov	x0, x19
	mov	w1, #1286
	mov	x2, x20
	bl	_dib7000p_write_word
	orr	w0, w21, w0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-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
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting output mode TS_SERIAL using Mpeg Mux\n"

	.comm	_MPEG_ON_HOSTBUS,4,2            ; @MPEG_ON_HOSTBUS
	.comm	_DEMOUT_ON_HOSTBUS,4,2          ; @DEMOUT_ON_HOSTBUS
l_.str.2:                               ; @.str.2
	.asciz	"setting output mode TS_PARALLEL_GATED using Mpeg Mux\n"

l_.str.4:                               ; @.str.4
	.asciz	"setting output mode TS_PARALLEL_CONT using Smooth block\n"

l_.str.5:                               ; @.str.5
	.asciz	"setting output mode TS_FIFO using Smooth block\n"

l_.str.6:                               ; @.str.6
	.asciz	"setting output mode MODE_DIVERSITY\n"

	.comm	_DIV_ON_DIBTX,4,2               ; @DIV_ON_DIBTX
	.comm	_DIBTX_ON_HOSTBUS,4,2           ; @DIBTX_ON_HOSTBUS
l_.str.7:                               ; @.str.7
	.asciz	"setting output mode MODE_ANALOG_ADC\n"

	.comm	_ADC_ON_DIBTX,4,2               ; @ADC_ON_DIBTX
	.no_dead_strip	_dib7090_set_output_mode
.subsections_via_symbols
