	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_set_standard
_ctrl_set_standard:                     ## @ctrl_set_standard
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_4
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_power_down_qam
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_8
LBB0_4:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$133, %eax
	jne	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_power_down_vsb
	testl	%eax, %eax
	jne	LBB0_13
LBB0_8:
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movl	(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_9
## %bb.14:
	movl	(%r14), %edi
	movq	_SCU_RAM_VERSION_HI__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r14d, %ebx
	jmp	LBB0_16
LBB0_9:
	cmpl	$133, %eax
	jne	LBB0_18
## %bb.10:
	movq	%r14, %rdi
	callq	_set_vsb_leak_n_gain
	testl	%eax, %eax
	je	LBB0_11
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_16:
	movl	$128, (%r12)
	jmp	LBB0_17
LBB0_18:
	movl	$128, (%r12)
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_SCU_RAM_VERSION_HI__A,4,2      ## @SCU_RAM_VERSION_HI__A
	.no_dead_strip	_ctrl_set_standard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_set_standard
_ctrl_set_standard:                     ; @ctrl_set_standard
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_14
; %bb.2:
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x22]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_power_down_qam
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_4:
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #133
	b.ne	LBB0_14
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	bl	_power_down_vsb
	cbz	w0, LBB0_8
LBB0_7:
	mov	x19, x0
	b	LBB0_12
LBB0_8:
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _SCU_RAM_VERSION_HI__A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCU_RAM_VERSION_HI__A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	mov	x19, x0
	cbnz	w0, LBB0_12
	b	LBB0_15
LBB0_10:
	cmp	w8, #133
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_set_vsb_leak_n_gain
	mov	x19, x0
	cbz	w0, LBB0_15
LBB0_12:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	mov	w8, #128
	str	w8, [x22]
	b	LBB0_15
LBB0_13:
	mov	w8, #128
	str	w8, [x22]
LBB0_14:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_SCU_RAM_VERSION_HI__A,4,2      ; @SCU_RAM_VERSION_HI__A
	.no_dead_strip	_ctrl_set_standard
.subsections_via_symbols
