	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_fw_set_channel_head
_dib9000_fw_set_channel_head:           ## @dib9000_fw_set_channel_head
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	sarl	$6, %ecx
	leal	(%rcx,%rdx), %esi
	testb	$1, (%rdi)
	leal	101(%rcx,%rdx), %ecx
	cmovel	%esi, %ecx
	movzbl	%cl, %edx
	movl	%edx, -48(%rbp)
	movzbl	%ch, %edx
	movl	%edx, -44(%rbp)
	movl	%ecx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movl	%edx, -40(%rbp)
	shrl	$24, %ecx
	movl	%ecx, -36(%rbp)
	movslq	4(%rax), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$38, %rcx
	addl	%edx, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -32(%rbp)
	movslq	4(%rax), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$38, %rcx
	addl	%edx, %ecx
	movzbl	%ch, %ecx
	movl	%ecx, -28(%rbp)
	movslq	4(%rax), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$38, %rcx
	addl	%edx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -24(%rbp)
	movslq	4(%rax), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	sarl	$6, %ecx
	addl	%edx, %ecx
	shrl	$24, %ecx
	movl	%ecx, -20(%rbp)
	movq	8(%rax), %rax
	movq	_SYS_DVBT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	orl	$128, %edx
	movl	%edx, -16(%rbp)
	movq	_FE_MM_W_CHANNEL_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_dib9000_risc_mem_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_DVBT,8,3                   ## @SYS_DVBT
	.comm	_FE_MM_W_CHANNEL_HEAD,4,2       ## @FE_MM_W_CHANNEL_HEAD
	.no_dead_strip	_dib9000_fw_set_channel_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dib9000_fw_set_channel_head
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dib9000_fw_set_channel_head:           ; @dib9000_fw_set_channel_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x8]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w11, asr #6
	ldr	w11, [x0]
	add	w12, w9, #101
	tst	w11, #0x1
	csel	w9, w9, w12, eq
	and	w11, w9, #0xff
	dup.2s	v0, w9
	str	w11, [sp, #4]
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x11, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #8]
	lsr	w9, w9, #24
	str	w9, [sp, #16]
	ldrsw	x9, [x8, #4]
	mul	x9, x9, x10
	lsr	x11, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w11
	and	w9, w9, #0xff
	str	w9, [sp, #20]
	ldrsw	x9, [x8, #4]
	mul	x9, x9, x10
	lsr	x11, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w11
	ubfx	w9, w9, #8, #8
	str	w9, [sp, #24]
	ldrsw	x9, [x8, #4]
	mul	x9, x9, x10
	lsr	x11, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w11
	ubfx	w9, w9, #16, #8
	str	w9, [sp, #28]
	ldrsw	x9, [x8, #4]
	mul	x9, x9, x10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #6
	lsr	w9, w9, #24
	str	w9, [sp, #32]
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x9, _SYS_DVBT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SYS_DVBT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #128
	cinc	w8, w8, eq
	str	w8, [sp, #36]
Lloh8:
	adrp	x8, _FE_MM_W_CHANNEL_HEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FE_MM_W_CHANNEL_HEAD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_dib9000_risc_mem_write
	ldur	x8, [x29, #-8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_DVBT,8,3                   ; @SYS_DVBT
	.comm	_FE_MM_W_CHANNEL_HEAD,4,2       ; @FE_MM_W_CHANNEL_HEAD
	.no_dead_strip	_dib9000_fw_set_channel_head
.subsections_via_symbols
