	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drxj_open
_drxj_open:                             ## @drxj_open
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DRX_POWER_UP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$0, (%r13)
	je	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ctrl_power_mode
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_10:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_11:
	movl	$0, (%r13)
	jmp	LBB0_7
LBB0_12:
	movl	-52(%rbp), %eax
	cmpl	(%r15), %eax
	jne	LBB0_26
## %bb.13:
	movq	%r12, %rdi
	callq	_get_device_capabilities
	testl	%eax, %eax
	jne	LBB0_9
## %bb.14:
	movq	_SIO_CC_SOFT_RST__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIO_CC_SOFT_RST_SYS__M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SIO_CC_SOFT_RST_OSC__M@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$4, %edx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.15:
	movq	_SIO_CC_UPDATE__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIO_CC_UPDATE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.16:
	movl	$1, %edi
	callq	_msleep
	movq	_ATV_TOP_STDBY__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	_ATV_TOP_STDBY_SIF_STDBY_STANDBY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.17:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_iqm_af
	testl	%eax, %eax
	jne	LBB0_9
## %bb.18:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_orx_nsu_aox
	testl	%eax, %eax
	jne	LBB0_9
## %bb.19:
	movq	%r12, %rdi
	callq	_init_hi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.20:
	leaq	24(%r13), %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	$0, -56(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ctrl_set_cfg_mpeg_output
	testl	%eax, %eax
	jne	LBB0_9
## %bb.21:
	movq	%r12, %rdi
	callq	_power_down_aud
	testl	%eax, %eax
	jne	LBB0_9
## %bb.22:
	movq	_SCU_COMM_EXEC__A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SCU_COMM_EXEC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.23:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.24:
	movl	$1, (%r13)
	movq	%rax, -64(%rbp)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_DRX_ISPOWERDOWNMODE
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_11
LBB0_27:
	movq	_UCODE_UPLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_drx_ctrl_u_code
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_29:
	cmpl	$1, 4(%r13)
	jne	LBB0_32
## %bb.30:
	movq	_UCODE_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_drx_ctrl_u_code
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_32:
	movl	$0, (%r13)
LBB0_33:
	movl	(%r15), %esi
	movq	_SCU_COMM_EXEC_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.34:
	movq	_DRXJ_SCAN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_DRX_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r14, %rdi
	callq	_drxj_reset_mode
	movq	_DRX_STANDARD_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	callq	_smart_ant_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.35:
	movq	_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	shll	$4, %ecx
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$34, %rsi
	addl	%edi, %esi
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%ecx, %edi
	shll	$4, %edi
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %ecx
	subl	%ecx, %eax
	addl	%edi, %eax
	shll	$4, %eax
	movq	_VERSION_MINOR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	shll	$4, %ecx
	movq	_VERSION_PATCH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	imulq	$274877907, %r15, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	cltq
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %eax
	addl	%ecx, %eax
	shll	$4, %eax
	imulq	$1374389535, %r15, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	shll	$4, %ecx
	imulq	$1717986919, %r15, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$34, %rax
	addl	%edx, %eax
	cltq
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	movl	%eax, %esi
	subl	%edx, %esi
	addl	%ecx, %esi
	shll	$4, %esi
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r15d
	addl	%esi, %r15d
	movq	_SCU_RAM_DRIVER_VER_HI__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$16, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.36:
	movq	_SCU_RAM_DRIVER_VER_LO__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	%r15w, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.37:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ctrl_set_oob
	testl	%eax, %eax
	je	LBB0_39
## %bb.38:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_39:
	movq	_drxj_default_aud_data_g@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%r12), %rax
	movl	$1, (%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_drxj_set_lna_state
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DRX_POWER_UP,4,2               ## @DRX_POWER_UP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to powerup device\n"

	.comm	_SIO_CC_SOFT_RST__A,4,2         ## @SIO_CC_SOFT_RST__A
	.comm	_SIO_CC_SOFT_RST_SYS__M,4,2     ## @SIO_CC_SOFT_RST_SYS__M
	.comm	_SIO_CC_SOFT_RST_OSC__M,4,2     ## @SIO_CC_SOFT_RST_OSC__M
	.comm	_SIO_CC_UPDATE__A,4,2           ## @SIO_CC_UPDATE__A
	.comm	_SIO_CC_UPDATE_KEY,4,2          ## @SIO_CC_UPDATE_KEY
	.comm	_ATV_TOP_STDBY__A,4,2           ## @ATV_TOP_STDBY__A
	.comm	_ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE,4,2 ## @ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE
	.comm	_ATV_TOP_STDBY_SIF_STDBY_STANDBY,4,2 ## @ATV_TOP_STDBY_SIF_STDBY_STANDBY
	.comm	_SCU_COMM_EXEC__A,4,2           ## @SCU_COMM_EXEC__A
	.comm	_SCU_COMM_EXEC_STOP,4,2         ## @SCU_COMM_EXEC_STOP
L_.str.2:                               ## @.str.2
	.asciz	"Should powerup before loading the firmware."

	.comm	_UCODE_UPLOAD,4,2               ## @UCODE_UPLOAD
L_.str.3:                               ## @.str.3
	.asciz	"error %d while uploading the firmware\n"

	.comm	_UCODE_VERIFY,4,2               ## @UCODE_VERIFY
L_.str.4:                               ## @.str.4
	.asciz	"error %d while verifying the firmware\n"

	.comm	_SCU_COMM_EXEC_ACTIVE,4,2       ## @SCU_COMM_EXEC_ACTIVE
	.comm	_DRXJ_SCAN_TIMEOUT,4,2          ## @DRXJ_SCAN_TIMEOUT
	.comm	_DRX_LOCKED,4,2                 ## @DRX_LOCKED
	.comm	_DRX_STANDARD_UNKNOWN,4,2       ## @DRX_STANDARD_UNKNOWN
	.comm	_VERSION_MAJOR,4,2              ## @VERSION_MAJOR
	.comm	_VERSION_MINOR,4,2              ## @VERSION_MINOR
	.comm	_VERSION_PATCH,4,2              ## @VERSION_PATCH
	.comm	_SCU_RAM_DRIVER_VER_HI__A,4,2   ## @SCU_RAM_DRIVER_VER_HI__A
	.comm	_SCU_RAM_DRIVER_VER_LO__A,4,2   ## @SCU_RAM_DRIVER_VER_LO__A
	.comm	_drxj_default_aud_data_g,4,2    ## @drxj_default_aud_data_g
	.no_dead_strip	_drxj_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drxj_open
_drxj_open:                             ; @drxj_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x24, _DRX_POWER_UP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRX_POWER_UP@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #12]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_5
; %bb.2:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_5
; %bb.3:
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_5
; %bb.4:
	ldr	w8, [x23]
	cbz	w8, LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ctrl_power_mode
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	str	x22, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_9:
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.10:
	mov	x0, x19
	bl	_get_device_capabilities
	cbnz	w0, LBB0_20
; %bb.11:
Lloh7:
	adrp	x8, _SIO_CC_SOFT_RST__A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIO_CC_SOFT_RST__A@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SIO_CC_SOFT_RST_SYS__M@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIO_CC_SOFT_RST_SYS__M@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SIO_CC_SOFT_RST_OSC__M@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SIO_CC_SOFT_RST_OSC__M@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w2, w8, #0x4
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.12:
Lloh16:
	adrp	x8, _SIO_CC_UPDATE__A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIO_CC_UPDATE__A@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SIO_CC_UPDATE_KEY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIO_CC_UPDATE_KEY@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.13:
	mov	w0, #1
	bl	_msleep
Lloh22:
	adrp	x8, _ATV_TOP_STDBY__A@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATV_TOP_STDBY__A@GOTPAGEOFF]
Lloh24:
	adrp	x9, _ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _ATV_TOP_STDBY_SIF_STDBY_STANDBY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ATV_TOP_STDBY_SIF_STDBY_STANDBY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orn	w2, w9, w8
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	bl	_set_iqm_af
	cbnz	w0, LBB0_20
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	bl	_set_orx_nsu_aox
	cbnz	w0, LBB0_20
; %bb.16:
	mov	x0, x19
	bl	_init_hi
	cbnz	w0, LBB0_20
; %bb.17:
	add	x1, x23, #24
	add	x0, sp, #16
	mov	w2, #4
	bl	_memcpy
	str	wzr, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_ctrl_set_cfg_mpeg_output
	cbnz	w0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_power_down_aud
	cbnz	w0, LBB0_20
; %bb.19:
Lloh31:
	adrp	x24, _SCU_COMM_EXEC__A@GOTPAGE
Lloh32:
	ldr	x24, [x24, _SCU_COMM_EXEC__A@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh33:
	adrp	x8, _SCU_COMM_EXEC_STOP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SCU_COMM_EXEC_STOP@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbz	w0, LBB0_26
LBB0_20:
	mov	x22, x0
LBB0_21:
	str	x22, [sp]
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
LBB0_22:
	bl	_pr_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_25
LBB0_23:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w22, w8
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_24:
	bl	_pr_err
LBB0_25:
	str	wzr, [x23]
	b	LBB0_6
LBB0_26:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_35
; %bb.27:
	mov	w9, #1
	str	w9, [x23]
	str	x8, [sp, #24]
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_DRX_ISPOWERDOWNMODE
	cbz	x0, LBB0_29
; %bb.28:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_29:
Lloh45:
	adrp	x8, _UCODE_UPLOAD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _UCODE_UPLOAD@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	add	x1, sp, #24
	mov	x0, x19
	bl	_drx_ctrl_u_code
	cbz	w0, LBB0_31
; %bb.30:
	mov	x22, x0
	str	x22, [sp]
Lloh48:
	adrp	x0, l_.str.3@PAGE
Lloh49:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_31:
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.ne	LBB0_34
; %bb.32:
Lloh50:
	adrp	x8, _UCODE_VERIFY@GOTPAGE
Lloh51:
	ldr	x8, [x8, _UCODE_VERIFY@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	add	x1, sp, #24
	mov	x0, x19
	bl	_drx_ctrl_u_code
	cbz	w0, LBB0_34
; %bb.33:
	mov	x22, x0
	str	x22, [sp]
Lloh53:
	adrp	x0, l_.str.4@PAGE
Lloh54:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_34:
	str	wzr, [x23]
LBB0_35:
	ldr	w1, [x24]
Lloh55:
	adrp	x8, _SCU_COMM_EXEC_ACTIVE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SCU_COMM_EXEC_ACTIVE@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.36:
Lloh58:
	adrp	x8, _DRXJ_SCAN_TIMEOUT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DRXJ_SCAN_TIMEOUT@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
Lloh61:
	adrp	x9, _DRX_LOCKED@GOTPAGE
Lloh62:
	ldr	x9, [x9, _DRX_LOCKED@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #8]
	mov	x0, x20
	bl	_drxj_reset_mode
Lloh64:
	adrp	x8, _DRX_STANDARD_UNKNOWN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _DRX_STANDARD_UNKNOWN@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_smart_ant_init
	cbnz	w0, LBB0_20
; %bb.37:
Lloh67:
	adrp	x8, _VERSION_MAJOR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _VERSION_MAJOR@GOTPAGEOFF]
Lloh69:
	ldrsw	x11, [x8]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x8, x11, x10
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w12, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w12, w9
	lsr	x13, x8, #63
	lsr	x8, x8, #34
	add	w13, w8, w13
	mov	w8, #10
	msub	w12, w13, w8, w12
	smull	x13, w11, w9
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	smull	x14, w13, w9
	lsr	x15, x14, #63
	asr	x14, x14, #34
	add	w14, w14, w15
	msub	w14, w14, w8, w13
	add	w12, w14, w12, lsl #4
	msub	w11, w13, w8, w11
Lloh70:
	adrp	x13, _VERSION_MINOR@GOTPAGE
Lloh71:
	ldr	x13, [x13, _VERSION_MINOR@GOTPAGEOFF]
	add	w11, w11, w12, lsl #4
Lloh72:
	ldrsw	x12, [x13]
	mul	x13, x12, x9
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	msub	w12, w13, w8, w12
	add	w11, w12, w11, lsl #4
Lloh73:
	adrp	x12, _VERSION_PATCH@GOTPAGE
Lloh74:
	ldr	x12, [x12, _VERSION_PATCH@GOTPAGEOFF]
Lloh75:
	ldrsw	x12, [x12]
	mov	w13, #19923
	movk	w13, #4194, lsl #16
	mul	x13, x12, x13
	lsr	x14, x13, #63
	asr	x13, x13, #38
	add	w13, w13, w14
	smull	x14, w13, w9
	lsr	x15, x14, #63
	asr	x14, x14, #34
	add	w14, w14, w15
	msub	w13, w14, w8, w13
	add	w11, w13, w11, lsl #4
	mul	x10, x12, x10
	lsr	x13, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w13
	smull	x13, w10, w9
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	msub	w10, w13, w8, w10
	add	w10, w10, w11, lsl #4
	smull	x11, w12, w9
	lsr	x13, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w13
	smull	x9, w11, w9
	lsr	x13, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w13
	msub	w9, w9, w8, w11
	add	w9, w9, w10, lsl #4
	msub	w8, w11, w8, w12
	add	w24, w8, w9, lsl #4
Lloh76:
	adrp	x8, _SCU_RAM_DRIVER_VER_HI__A@GOTPAGE
Lloh77:
	ldr	x8, [x8, _SCU_RAM_DRIVER_VER_HI__A@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	asr	w2, w24, #16
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.38:
Lloh79:
	adrp	x8, _SCU_RAM_DRIVER_VER_LO__A@GOTPAGE
Lloh80:
	ldr	x8, [x8, _SCU_RAM_DRIVER_VER_LO__A@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	and	w2, w24, #0xffff
	mov	x0, x21
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_20
; %bb.39:
	mov	x0, x19
	mov	x1, #0
	bl	_ctrl_set_oob
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.40:
Lloh82:
	adrp	x8, _drxj_default_aud_data_g@GOTPAGE
Lloh83:
	ldr	x8, [x8, _drxj_default_aud_data_g@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_drxj_set_lna_state
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_DRX_POWER_UP,4,2               ; @DRX_POWER_UP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to powerup device\n"

	.comm	_SIO_CC_SOFT_RST__A,4,2         ; @SIO_CC_SOFT_RST__A
	.comm	_SIO_CC_SOFT_RST_SYS__M,4,2     ; @SIO_CC_SOFT_RST_SYS__M
	.comm	_SIO_CC_SOFT_RST_OSC__M,4,2     ; @SIO_CC_SOFT_RST_OSC__M
	.comm	_SIO_CC_UPDATE__A,4,2           ; @SIO_CC_UPDATE__A
	.comm	_SIO_CC_UPDATE_KEY,4,2          ; @SIO_CC_UPDATE_KEY
	.comm	_ATV_TOP_STDBY__A,4,2           ; @ATV_TOP_STDBY__A
	.comm	_ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE,4,2 ; @ATV_TOP_STDBY_CVBS_STDBY_A2_ACTIVE
	.comm	_ATV_TOP_STDBY_SIF_STDBY_STANDBY,4,2 ; @ATV_TOP_STDBY_SIF_STDBY_STANDBY
	.comm	_SCU_COMM_EXEC__A,4,2           ; @SCU_COMM_EXEC__A
	.comm	_SCU_COMM_EXEC_STOP,4,2         ; @SCU_COMM_EXEC_STOP
l_.str.2:                               ; @.str.2
	.asciz	"Should powerup before loading the firmware."

	.comm	_UCODE_UPLOAD,4,2               ; @UCODE_UPLOAD
l_.str.3:                               ; @.str.3
	.asciz	"error %d while uploading the firmware\n"

	.comm	_UCODE_VERIFY,4,2               ; @UCODE_VERIFY
l_.str.4:                               ; @.str.4
	.asciz	"error %d while verifying the firmware\n"

	.comm	_SCU_COMM_EXEC_ACTIVE,4,2       ; @SCU_COMM_EXEC_ACTIVE
	.comm	_DRXJ_SCAN_TIMEOUT,4,2          ; @DRXJ_SCAN_TIMEOUT
	.comm	_DRX_LOCKED,4,2                 ; @DRX_LOCKED
	.comm	_DRX_STANDARD_UNKNOWN,4,2       ; @DRX_STANDARD_UNKNOWN
	.comm	_VERSION_MAJOR,4,2              ; @VERSION_MAJOR
	.comm	_VERSION_MINOR,4,2              ; @VERSION_MINOR
	.comm	_VERSION_PATCH,4,2              ; @VERSION_PATCH
	.comm	_SCU_RAM_DRIVER_VER_HI__A,4,2   ; @SCU_RAM_DRIVER_VER_HI__A
	.comm	_SCU_RAM_DRIVER_VER_LO__A,4,2   ; @SCU_RAM_DRIVER_VER_LO__A
	.comm	_drxj_default_aud_data_g,4,2    ; @drxj_default_aud_data_g
	.no_dead_strip	_drxj_open
.subsections_via_symbols
