	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_softing_chip_poweron           ## -- Begin function softing_chip_poweron
	.p2align	4, 0x90
_softing_chip_poweron:                  ## @softing_chip_poweron
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rcx
	movl	$99, %esi
	movl	$85, %edx
	callq	__softing_fct_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	$99, %esi
	movl	$170, %edx
	callq	__softing_fct_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_softing_reset_chip
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$43, %esi
	callq	_softing_fct_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_DPRAM_FCT_PARAM@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movl	%eax, 40(%rbx)
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_softing_fct_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	callq	_ioread16
	movq	%rax, 32(%rbx)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$16, %rdi
	callq	_ioread16
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$24, %rdi
	callq	_ioread16
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$32, %rdi
	callq	_ioread16
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$40, %rdi
	callq	_ioread16
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync-a"

L_.str.1:                               ## @.str.1
	.asciz	"sync-b"

L_.str.2:                               ## @.str.2
	.asciz	"get_serial_number"

	.comm	_DPRAM_FCT_PARAM,8,3            ## @DPRAM_FCT_PARAM
L_.str.3:                               ## @.str.3
	.asciz	"get_version"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_softing_chip_poweron           ; -- Begin function softing_chip_poweron
	.p2align	2
_softing_chip_poweron:                  ; @softing_chip_poweron
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #99
	mov	w2, #85
	bl	__softing_fct_cmd
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #99
	mov	w2, #170
	bl	__softing_fct_cmd
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_softing_reset_chip
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #43
	bl	_softing_fct_cmd
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _DPRAM_FCT_PARAM@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DPRAM_FCT_PARAM@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	bl	_ioread32
	str	w0, [x19, #40]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #12
	bl	_softing_fct_cmd
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #8
	bl	_ioread16
	str	x0, [x19, #32]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #16
	bl	_ioread16
	str	x0, [x19, #24]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #24
	bl	_ioread16
	str	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #32
	bl	_ioread16
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #40
	bl	_ioread16
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync-a"

l_.str.1:                               ; @.str.1
	.asciz	"sync-b"

l_.str.2:                               ; @.str.2
	.asciz	"get_serial_number"

	.comm	_DPRAM_FCT_PARAM,8,3            ; @DPRAM_FCT_PARAM
l_.str.3:                               ; @.str.3
	.asciz	"get_version"

.subsections_via_symbols
