	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_set_sb_channel
_dib8000_set_sb_channel:                ## @dib8000_set_sb_channel
	.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	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	(%r15), %r14
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_TRANSMISSION_MODE_4K@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$219, %esi
	callq	_dib8000_read_word
	cmpq	%r12, %r14
	je	LBB0_2
## %bb.1:
	cmpq	%r13, %r14
	je	LBB0_2
## %bb.3:
	andl	$65534, %eax                    ## imm = 0xFFFE
	movq	%rbx, %rdi
	movl	$219, %esi
	movl	%eax, %edx
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$190, %esi
	callq	_dib8000_read_word
	andl	$49151, %eax                    ## imm = 0xBFFF
	jmp	LBB0_4
LBB0_2:
	orl	$1, %eax
	movq	%rbx, %rdi
	movl	$219, %esi
	movl	%eax, %edx
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$190, %esi
	callq	_dib8000_read_word
	orl	$16384, %eax                    ## imm = 0x4000
LBB0_4:
	movq	%rbx, %rdi
	movl	$190, %esi
	movl	%eax, %edx
	callq	_dib8000_write_word
	cmpl	$1, 8(%r15)
	movl	$224, %eax
	movl	$64, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	callq	_dib8000_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$63999, %eax                    ## imm = 0xF9FF
	leal	512(%rax), %edx
	movq	%rbx, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	callq	_dib8000_write_word
	movl	8(%r15), %edx
	shll	$2, %edx
	andl	$4, %edx
	xorl	$18431, %edx                    ## imm = 0x47FF
	movq	%rbx, %rdi
	movl	$187, %esi
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$340, %esi                      ## imm = 0x154
	movl	$1032, %edx                     ## imm = 0x408
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$341, %esi                      ## imm = 0x155
	movl	$55, %edx
	callq	_dib8000_write_word
	cmpl	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	_coff_thres_3seg@GOTPCREL(%rip), %r13
	movl	$5252, %r14d                    ## imm = 0x1484
	movl	$24527, %edx                    ## imm = 0x5FCF
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %eax
	movl	%eax, %ecx
	shll	$14, %ecx
	addl	$-12337, %ecx                   ## imm = 0xCFCF
	cmpl	$3, %eax
	movl	$40911, %edx                    ## imm = 0x9FCF
	cmovnel	%ecx, %edx
	movq	_coff_thres_1seg@GOTPCREL(%rip), %r13
	movl	$5284, %r14d                    ## imm = 0x14A4
LBB0_7:
	movq	%rbx, %rdi
	movl	$180, %esi
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$338, %esi                      ## imm = 0x152
	movl	%r14d, %edx
	callq	_dib8000_write_word
	movq	(%r13), %r14
	movq	%rbx, %rdi
	movl	$228, %esi
	movl	$1, %edx
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$205, %esi
	callq	_dib8000_read_word
	andl	$65520, %eax                    ## imm = 0xFFF0
	movq	%rbx, %rdi
	movl	$205, %esi
	movl	%eax, %edx
	callq	_dib8000_write_word
	cmpl	$0, 8(%r15)
	jne	LBB0_10
## %bb.8:
	movq	(%r15), %rax
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$265, %esi                      ## imm = 0x109
	movl	$15, %edx
	callq	_dib8000_write_word
LBB0_10:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$181, %esi
	callq	_dib8000_write_word
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$184, %esi
	callq	_dib8000_write_word
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$182, %esi
	callq	_dib8000_write_word
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$185, %esi
	callq	_dib8000_write_word
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	movl	$183, %esi
	callq	_dib8000_write_word
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	movl	$186, %esi
	callq	_dib8000_write_word
	movl	(%rbx), %edx
	notl	%edx
	orl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	$266, %esi                      ## imm = 0x10A
	callq	_dib8000_write_word
	xorl	%edx, %edx
	cmpl	$0, 8(%r15)
	sete	%dl
	shll	$5, %edx
	addl	$32, %edx
	movq	%rbx, %rdi
	movl	$178, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib8000_write_word             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSMISSION_MODE_2K,8,3       ## @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_4K,8,3       ## @TRANSMISSION_MODE_4K
	.comm	_coff_thres_1seg,8,3            ## @coff_thres_1seg
	.comm	_coff_thres_3seg,8,3            ## @coff_thres_3seg
	.no_dead_strip	_dib8000_set_sb_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_set_sb_channel
_dib8000_set_sb_channel:                ; @dib8000_set_sb_channel
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	ldr	x20, [x21]
Lloh0:
	adrp	x22, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh2:
	adrp	x8, _TRANSMISSION_MODE_4K@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRANSMISSION_MODE_4K@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	mov	w1, #219
	bl	_dib8000_read_word
	cmp	x20, x23
	ccmp	x20, x24, #4, ne
	b.ne	LBB0_2
; %bb.1:
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	w1, #219
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #190
	bl	_dib8000_read_word
	orr	w2, w0, #0x4000
	b	LBB0_3
LBB0_2:
	and	w2, w0, #0xfffe
	mov	x0, x19
	mov	w1, #219
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #190
	bl	_dib8000_read_word
	mov	w8, #49151
	and	w2, w0, w8
LBB0_3:
	mov	x0, x19
	mov	w1, #190
	bl	_dib8000_write_word
	ldr	w8, [x21, #8]
	mov	w9, #64
	mov	w10, #224
	cmp	w8, #1
	csel	w8, w10, w9, eq
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #268
	bl	_dib8000_read_word
	mov	w8, #63999
	and	w8, w0, w8
	orr	w2, w8, #0x200
	mov	x0, x19
	mov	w1, #268
	bl	_dib8000_write_word
	ldr	w8, [x21, #8]
	ubfiz	w8, w8, #2, #1
	mov	w9, #18431
	eor	w2, w8, w9
	mov	x0, x19
	mov	w1, #187
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #340
	mov	w2, #1032
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #341
	mov	w2, #55
	bl	_dib8000_write_word
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x23, _coff_thres_3seg@GOTPAGE
Lloh6:
	ldr	x23, [x23, _coff_thres_3seg@GOTPAGEOFF]
	mov	w20, #5252
	mov	w2, #24527
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #4]
	mov	w9, #-12337
	add	w9, w9, w8, lsl #14
	mov	w10, #40911
	cmp	w8, #3
	csel	w2, w10, w9, eq
Lloh7:
	adrp	x23, _coff_thres_1seg@GOTPAGE
Lloh8:
	ldr	x23, [x23, _coff_thres_1seg@GOTPAGEOFF]
	mov	w20, #5284
LBB0_6:
	mov	x0, x19
	mov	w1, #180
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #338
	mov	x2, x20
	bl	_dib8000_write_word
	ldr	x20, [x23]
	mov	x0, x19
	mov	w1, #228
	mov	w2, #1
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #205
	bl	_dib8000_read_word
	and	w2, w0, #0xfff0
	mov	x0, x19
	mov	w1, #205
	bl	_dib8000_write_word
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #265
	mov	w2, #15
	bl	_dib8000_write_word
LBB0_9:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #181
	bl	_dib8000_write_word
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #184
	bl	_dib8000_write_word
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #182
	bl	_dib8000_write_word
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #185
	bl	_dib8000_write_word
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #183
	bl	_dib8000_write_word
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #186
	bl	_dib8000_write_word
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	orn	w2, w9, w8
	mov	x0, x19
	mov	w1, #266
	bl	_dib8000_write_word
	ldr	w8, [x21, #8]
	mov	w9, #32
	mov	w10, #64
	cmp	w8, #0
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	w1, #178
	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
	b	_dib8000_write_word
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANSMISSION_MODE_2K,8,3       ; @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_4K,8,3       ; @TRANSMISSION_MODE_4K
	.comm	_coff_thres_1seg,8,3            ; @coff_thres_1seg
	.comm	_coff_thres_3seg,8,3            ; @coff_thres_3seg
	.no_dead_strip	_dib8000_set_sb_channel
.subsections_via_symbols
