	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function medusa_enable_bluefield_output
_medusa_enable_bluefield_output:        ## @medusa_enable_bluefield_output
	.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	%edx, %r14d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_VDEC_D_OUT_CTRL_NS@GOTPCREL(%rip), %rax
	movq	_VDEC_D_OUT_CTRL1@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_OUT_CTRL_NS@GOTPCREL(%rip), %rax
	movq	_OUT_CTRL1@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_VDEC_C_OUT_CTRL_NS@GOTPCREL(%rip), %rax
	movq	_VDEC_C_OUT_CTRL1@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_VDEC_B_OUT_CTRL_NS@GOTPCREL(%rip), %rax
	movq	_VDEC_B_OUT_CTRL1@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rax), %r15d
	movl	(%rcx), %r13d
	movq	(%r12), %rdi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %esi
	callq	_cx25821_i2c_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-129, %eax
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	setne	%bl
	shll	$7, %ebx
	leal	(%rax,%rbx), %edx
	movq	(%r12), %rdi
	movl	%r13d, %esi
	callq	_cx25821_i2c_write
	movq	(%r12), %rdi
	movl	%r15d, %esi
	leaq	-44(%rbp), %rdx
	callq	_cx25821_i2c_read
	andl	$-129, %eax
	orl	%eax, %ebx
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_cx25821_i2c_write
LBB0_7:
	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_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_OUT_CTRL1,4,2                  ## @OUT_CTRL1
	.comm	_OUT_CTRL_NS,4,2                ## @OUT_CTRL_NS
	.comm	_VDEC_B_OUT_CTRL1,4,2           ## @VDEC_B_OUT_CTRL1
	.comm	_VDEC_B_OUT_CTRL_NS,4,2         ## @VDEC_B_OUT_CTRL_NS
	.comm	_VDEC_C_OUT_CTRL1,4,2           ## @VDEC_C_OUT_CTRL1
	.comm	_VDEC_C_OUT_CTRL_NS,4,2         ## @VDEC_C_OUT_CTRL_NS
	.comm	_VDEC_D_OUT_CTRL1,4,2           ## @VDEC_D_OUT_CTRL1
	.comm	_VDEC_D_OUT_CTRL_NS,4,2         ## @VDEC_D_OUT_CTRL_NS
	.comm	_VDEC_E_OUT_CTRL1,4,2           ## @VDEC_E_OUT_CTRL1
	.comm	_VDEC_E_OUT_CTRL_NS,4,2         ## @VDEC_E_OUT_CTRL_NS
	.comm	_VDEC_F_OUT_CTRL1,4,2           ## @VDEC_F_OUT_CTRL1
	.comm	_VDEC_F_OUT_CTRL_NS,4,2         ## @VDEC_F_OUT_CTRL_NS
	.comm	_VDEC_G_OUT_CTRL1,4,2           ## @VDEC_G_OUT_CTRL1
	.comm	_VDEC_G_OUT_CTRL_NS,4,2         ## @VDEC_G_OUT_CTRL_NS
	.comm	_VDEC_H_OUT_CTRL1,4,2           ## @VDEC_H_OUT_CTRL1
	.comm	_VDEC_H_OUT_CTRL_NS,4,2         ## @VDEC_H_OUT_CTRL_NS
	.no_dead_strip	_medusa_enable_bluefield_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function medusa_enable_bluefield_output
_medusa_enable_bluefield_output:        ; @medusa_enable_bluefield_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	str	wzr, [sp, #12]
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %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	x8, _VDEC_D_OUT_CTRL_NS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VDEC_D_OUT_CTRL_NS@GOTPAGEOFF]
Lloh4:
	adrp	x9, _VDEC_D_OUT_CTRL1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VDEC_D_OUT_CTRL1@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _OUT_CTRL_NS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OUT_CTRL_NS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _OUT_CTRL1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OUT_CTRL1@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _VDEC_C_OUT_CTRL_NS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VDEC_C_OUT_CTRL_NS@GOTPAGEOFF]
Lloh12:
	adrp	x9, _VDEC_C_OUT_CTRL1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VDEC_C_OUT_CTRL1@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _VDEC_B_OUT_CTRL_NS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VDEC_B_OUT_CTRL_NS@GOTPAGEOFF]
Lloh16:
	adrp	x9, _VDEC_B_OUT_CTRL1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VDEC_B_OUT_CTRL1@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
	ldr	w22, [x9]
	ldr	x0, [x19]
	add	x2, sp, #12
	mov	x1, x22
	bl	_cx25821_i2c_read
	mov	x2, x0
	cmp	w20, #0
	cset	w20, ne
	bfi	w2, w20, #7, #1
	ldr	x0, [x19]
	mov	x1, x22
	bl	_cx25821_i2c_write
	ldr	x0, [x19]
	add	x2, sp, #12
	mov	x1, x21
	bl	_cx25821_i2c_read
	mov	x2, x0
	bfi	w2, w20, #7, #1
	ldr	x0, [x19]
	mov	x1, x21
	bl	_cx25821_i2c_write
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_OUT_CTRL1,4,2                  ; @OUT_CTRL1
	.comm	_OUT_CTRL_NS,4,2                ; @OUT_CTRL_NS
	.comm	_VDEC_B_OUT_CTRL1,4,2           ; @VDEC_B_OUT_CTRL1
	.comm	_VDEC_B_OUT_CTRL_NS,4,2         ; @VDEC_B_OUT_CTRL_NS
	.comm	_VDEC_C_OUT_CTRL1,4,2           ; @VDEC_C_OUT_CTRL1
	.comm	_VDEC_C_OUT_CTRL_NS,4,2         ; @VDEC_C_OUT_CTRL_NS
	.comm	_VDEC_D_OUT_CTRL1,4,2           ; @VDEC_D_OUT_CTRL1
	.comm	_VDEC_D_OUT_CTRL_NS,4,2         ; @VDEC_D_OUT_CTRL_NS
	.comm	_VDEC_E_OUT_CTRL1,4,2           ; @VDEC_E_OUT_CTRL1
	.comm	_VDEC_E_OUT_CTRL_NS,4,2         ; @VDEC_E_OUT_CTRL_NS
	.comm	_VDEC_F_OUT_CTRL1,4,2           ; @VDEC_F_OUT_CTRL1
	.comm	_VDEC_F_OUT_CTRL_NS,4,2         ; @VDEC_F_OUT_CTRL_NS
	.comm	_VDEC_G_OUT_CTRL1,4,2           ; @VDEC_G_OUT_CTRL1
	.comm	_VDEC_G_OUT_CTRL_NS,4,2         ; @VDEC_G_OUT_CTRL_NS
	.comm	_VDEC_H_OUT_CTRL1,4,2           ; @VDEC_H_OUT_CTRL1
	.comm	_VDEC_H_OUT_CTRL_NS,4,2         ; @VDEC_H_OUT_CTRL_NS
	.no_dead_strip	_medusa_enable_bluefield_output
.subsections_via_symbols
