	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_down_vsb
_power_down_vsb:                        ## @power_down_vsb
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movups	%xmm0, -80(%rbp)
	movl	$0, -44(%rbp)
	movq	_SCU_RAM_COMMAND_STANDARD_VSB@GOTPCREL(%rip), %rax
	movq	_SCU_RAM_COMMAND_CMD_DEMOD_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -112(%rbp)
	movl	$1, -108(%rbp)
	movups	%xmm0, -96(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, -104(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_scu_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	_FEC_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FEC_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	_VSB_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSB_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_15:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.4:
	movq	_IQM_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_iqm_af
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ctrl_set_cfg_mpeg_output
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_6:
	movq	_IQM_FS_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_FS_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	_IQM_FD_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_FD_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	_IQM_RC_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_RC_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	_IQM_RT_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_RT_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_IQM_CF_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_CF_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SCU_RAM_COMMAND_STANDARD_VSB,4,2 ## @SCU_RAM_COMMAND_STANDARD_VSB
	.comm	_SCU_RAM_COMMAND_CMD_DEMOD_STOP,4,2 ## @SCU_RAM_COMMAND_CMD_DEMOD_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_FEC_COMM_EXEC__A,4,2           ## @FEC_COMM_EXEC__A
	.comm	_FEC_COMM_EXEC_STOP,4,2         ## @FEC_COMM_EXEC_STOP
	.comm	_VSB_COMM_EXEC__A,4,2           ## @VSB_COMM_EXEC__A
	.comm	_VSB_COMM_EXEC_STOP,4,2         ## @VSB_COMM_EXEC_STOP
	.comm	_IQM_COMM_EXEC__A,4,2           ## @IQM_COMM_EXEC__A
	.comm	_IQM_COMM_EXEC_STOP,4,2         ## @IQM_COMM_EXEC_STOP
	.comm	_IQM_FS_COMM_EXEC__A,4,2        ## @IQM_FS_COMM_EXEC__A
	.comm	_IQM_FS_COMM_EXEC_STOP,4,2      ## @IQM_FS_COMM_EXEC_STOP
	.comm	_IQM_FD_COMM_EXEC__A,4,2        ## @IQM_FD_COMM_EXEC__A
	.comm	_IQM_FD_COMM_EXEC_STOP,4,2      ## @IQM_FD_COMM_EXEC_STOP
	.comm	_IQM_RC_COMM_EXEC__A,4,2        ## @IQM_RC_COMM_EXEC__A
	.comm	_IQM_RC_COMM_EXEC_STOP,4,2      ## @IQM_RC_COMM_EXEC_STOP
	.comm	_IQM_RT_COMM_EXEC__A,4,2        ## @IQM_RT_COMM_EXEC__A
	.comm	_IQM_RT_COMM_EXEC_STOP,4,2      ## @IQM_RT_COMM_EXEC_STOP
	.comm	_IQM_CF_COMM_EXEC__A,4,2        ## @IQM_CF_COMM_EXEC__A
	.comm	_IQM_CF_COMM_EXEC_STOP,4,2      ## @IQM_CF_COMM_EXEC_STOP
	.no_dead_strip	_power_down_vsb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_down_vsb
_power_down_vsb:                        ; @power_down_vsb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _SCU_RAM_COMMAND_STANDARD_VSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCU_RAM_COMMAND_STANDARD_VSB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCU_RAM_COMMAND_CMD_DEMOD_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCU_RAM_COMMAND_CMD_DEMOD_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #1
	stp	w8, w9, [sp, #16]
	stp	xzr, xzr, [sp, #32]
	add	x8, sp, #4
	str	x8, [sp, #24]
	add	x1, sp, #16
	mov	x0, x20
	bl	_scu_command
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _FEC_COMM_EXEC__A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FEC_COMM_EXEC__A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _FEC_COMM_EXEC_STOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FEC_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _VSB_COMM_EXEC__A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VSB_COMM_EXEC__A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _VSB_COMM_EXEC_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VSB_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_3:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_err
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	cbz	w21, LBB0_9
; %bb.6:
Lloh20:
	adrp	x8, _IQM_COMM_EXEC__A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IQM_COMM_EXEC__A@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _IQM_COMM_EXEC_STOP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IQM_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_set_iqm_af
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_8:
	str	wzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ctrl_set_cfg_mpeg_output
	mov	x22, x0
	cbnz	w0, LBB0_3
	b	LBB0_4
LBB0_9:
Lloh26:
	adrp	x8, _IQM_FS_COMM_EXEC__A@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IQM_FS_COMM_EXEC__A@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _IQM_FS_COMM_EXEC_STOP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IQM_FS_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.10:
Lloh32:
	adrp	x8, _IQM_FD_COMM_EXEC__A@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IQM_FD_COMM_EXEC__A@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _IQM_FD_COMM_EXEC_STOP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IQM_FD_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.11:
Lloh38:
	adrp	x8, _IQM_RC_COMM_EXEC__A@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IQM_RC_COMM_EXEC__A@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _IQM_RC_COMM_EXEC_STOP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IQM_RC_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.12:
Lloh44:
	adrp	x8, _IQM_RT_COMM_EXEC__A@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IQM_RT_COMM_EXEC__A@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _IQM_RT_COMM_EXEC_STOP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IQM_RT_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.13:
Lloh50:
	adrp	x8, _IQM_CF_COMM_EXEC__A@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IQM_CF_COMM_EXEC__A@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _IQM_CF_COMM_EXEC_STOP@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IQM_CF_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x22, x0
	cbnz	w0, LBB0_3
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_SCU_RAM_COMMAND_STANDARD_VSB,4,2 ; @SCU_RAM_COMMAND_STANDARD_VSB
	.comm	_SCU_RAM_COMMAND_CMD_DEMOD_STOP,4,2 ; @SCU_RAM_COMMAND_CMD_DEMOD_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_FEC_COMM_EXEC__A,4,2           ; @FEC_COMM_EXEC__A
	.comm	_FEC_COMM_EXEC_STOP,4,2         ; @FEC_COMM_EXEC_STOP
	.comm	_VSB_COMM_EXEC__A,4,2           ; @VSB_COMM_EXEC__A
	.comm	_VSB_COMM_EXEC_STOP,4,2         ; @VSB_COMM_EXEC_STOP
	.comm	_IQM_COMM_EXEC__A,4,2           ; @IQM_COMM_EXEC__A
	.comm	_IQM_COMM_EXEC_STOP,4,2         ; @IQM_COMM_EXEC_STOP
	.comm	_IQM_FS_COMM_EXEC__A,4,2        ; @IQM_FS_COMM_EXEC__A
	.comm	_IQM_FS_COMM_EXEC_STOP,4,2      ; @IQM_FS_COMM_EXEC_STOP
	.comm	_IQM_FD_COMM_EXEC__A,4,2        ; @IQM_FD_COMM_EXEC__A
	.comm	_IQM_FD_COMM_EXEC_STOP,4,2      ; @IQM_FD_COMM_EXEC_STOP
	.comm	_IQM_RC_COMM_EXEC__A,4,2        ; @IQM_RC_COMM_EXEC__A
	.comm	_IQM_RC_COMM_EXEC_STOP,4,2      ; @IQM_RC_COMM_EXEC_STOP
	.comm	_IQM_RT_COMM_EXEC__A,4,2        ; @IQM_RT_COMM_EXEC__A
	.comm	_IQM_RT_COMM_EXEC_STOP,4,2      ; @IQM_RT_COMM_EXEC_STOP
	.comm	_IQM_CF_COMM_EXEC__A,4,2        ; @IQM_CF_COMM_EXEC__A
	.comm	_IQM_CF_COMM_EXEC_STOP,4,2      ; @IQM_CF_COMM_EXEC_STOP
	.no_dead_strip	_power_down_vsb
.subsections_via_symbols
