	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_hi
_init_hi:                               ## @init_hi
	.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
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	(%rdi), %rdi
	movq	8(%r15), %r13
	xorl	%r14d, %r14d
	movl	$4391383, %esi                  ## imm = 0x4301D7
	movl	$2049, %edx                     ## imm = 0x801
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movslq	(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	_HI_I2C_DELAY@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movq	_SIO_HI_RA_RAM_PAR_2_CFG_DIV__M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, (%r12)
	movslq	4(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	_HI_I2C_BRIDGE_DELAY@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movq	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shll	%cl, %edx
	addl	%eax, %edx
	movl	%edx, 4(%r12)
	movq	_DRXJ_WAKE_UP_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_SIO_HI_RA_RAM_PAR_6__PRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_hi_cfg_command
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_HI_I2C_DELAY,4,2               ## @HI_I2C_DELAY
	.comm	_SIO_HI_RA_RAM_PAR_2_CFG_DIV__M,4,2 ## @SIO_HI_RA_RAM_PAR_2_CFG_DIV__M
	.comm	_HI_I2C_BRIDGE_DELAY,4,2        ## @HI_I2C_BRIDGE_DELAY
	.comm	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M,4,2 ## @SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M
	.comm	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B,4,2 ## @SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B
	.comm	_DRXJ_WAKE_UP_KEY,4,2           ## @DRXJ_WAKE_UP_KEY
	.comm	_SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE,4,2 ## @SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE
	.comm	_SIO_HI_RA_RAM_PAR_6__PRE,4,2   ## @SIO_HI_RA_RAM_PAR_6__PRE
	.no_dead_strip	_init_hi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_hi
_init_hi:                               ; @init_hi
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldp	x22, x21, [x0, #8]
	ldr	x0, [x0]
	mov	w1, #471
	movk	w1, #67, lsl #16
	mov	w2, #2049
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldrsw	x8, [x22]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
Lloh0:
	adrp	x10, _HI_I2C_DELAY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HI_I2C_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w8, w8, w10
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	str	w8, [x21]
Lloh3:
	adrp	x10, _SIO_HI_RA_RAM_PAR_2_CFG_DIV__M@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SIO_HI_RA_RAM_PAR_2_CFG_DIV__M@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	csel	w8, w8, w10, lt
	str	w8, [x21]
	ldrsw	x8, [x22, #4]
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #38
Lloh6:
	adrp	x11, _HI_I2C_BRIDGE_DELAY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HI_I2C_BRIDGE_DELAY@GOTPAGEOFF]
	add	w8, w8, w10
Lloh8:
	ldr	w10, [x11]
	mul	w8, w8, w10
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
Lloh9:
	adrp	x10, _SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	csel	w8, w8, w10, lt
Lloh12:
	adrp	x9, _SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh15:
	adrp	x10, _DRXJ_WAKE_UP_KEY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DRXJ_WAKE_UP_KEY@GOTPAGEOFF]
	add	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
Lloh18:
	adrp	x10, _SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w9, [x21, #12]
Lloh21:
	adrp	x9, _SIO_HI_RA_RAM_PAR_6__PRE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SIO_HI_RA_RAM_PAR_6__PRE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [x21, #4]
	mov	x0, x19
	bl	_hi_cfg_command
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_2:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_HI_I2C_DELAY,4,2               ; @HI_I2C_DELAY
	.comm	_SIO_HI_RA_RAM_PAR_2_CFG_DIV__M,4,2 ; @SIO_HI_RA_RAM_PAR_2_CFG_DIV__M
	.comm	_HI_I2C_BRIDGE_DELAY,4,2        ; @HI_I2C_BRIDGE_DELAY
	.comm	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M,4,2 ; @SIO_HI_RA_RAM_PAR_3_CFG_DBL_SDA__M
	.comm	_SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B,4,2 ; @SIO_HI_RA_RAM_PAR_3_CFG_DBL_SCL__B
	.comm	_DRXJ_WAKE_UP_KEY,4,2           ; @DRXJ_WAKE_UP_KEY
	.comm	_SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE,4,2 ; @SIO_HI_RA_RAM_PAR_5_CFG_SLV0_SLAVE
	.comm	_SIO_HI_RA_RAM_PAR_6__PRE,4,2   ; @SIO_HI_RA_RAM_PAR_6__PRE
	.no_dead_strip	_init_hi
.subsections_via_symbols
