	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zl10353_init
_zl10353_init:                          ## @zl10353_init
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rbx
	movq	l___const.zl10353_init.zl10353_reset_attach+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.zl10353_init.zl10353_reset_attach(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_debug_regs@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_zl10353_dump_regs
LBB0_2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movl	$68, -56(%rbp)
	movl	$68, %r12d
	jmp	LBB0_5
LBB0_3:
	movl	$100, %r12d
LBB0_5:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, -52(%rbp)
LBB0_7:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, -48(%rbp)
LBB0_9:
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_zl10353_read_register
	cmpl	$3, %eax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$81, %esi
	callq	_zl10353_read_register
	cmpl	%r12d, %eax
	je	LBB0_13
LBB0_11:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_zl10353_write
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_zl10353_dump_regs
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.zl10353_init.zl10353_reset_attach
l___const.zl10353_init.zl10353_reset_attach:
	.long	80                              ## 0x50
	.long	3                               ## 0x3
	.long	100                             ## 0x64
	.long	70                              ## 0x46
	.long	21                              ## 0x15
	.long	15                              ## 0xf

	.comm	_debug_regs,8,3                 ## @debug_regs
	.no_dead_strip	_zl10353_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zl10353_init
_zl10353_init:                          ; @zl10353_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0]
Lloh3:
	adrp	x8, l___const.zl10353_init.zl10353_reset_attach@PAGE
Lloh4:
	add	x8, x8, l___const.zl10353_init.zl10353_reset_attach@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
Lloh5:
	adrp	x21, _debug_regs@GOTPAGE
Lloh6:
	ldr	x21, [x21, _debug_regs@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_zl10353_dump_regs
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.3:
	mov	w22, #68
	str	w22, [sp, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
LBB0_4:
	str	w8, [sp, #12]
LBB0_5:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
; %bb.6:
	str	w8, [sp, #16]
LBB0_7:
	mov	x0, x20
	mov	w1, #80
	bl	_zl10353_read_register
	cmp	w0, #3
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #81
	bl	_zl10353_read_register
	cmp	w0, w22
	b.eq	LBB0_11
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #24
	bl	_zl10353_write
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_zl10353_dump_regs
LBB0_11:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w22, #100
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
	b	LBB0_5
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.zl10353_init.zl10353_reset_attach
l___const.zl10353_init.zl10353_reset_attach:
	.long	80                              ; 0x50
	.long	3                               ; 0x3
	.long	100                             ; 0x64
	.long	70                              ; 0x46
	.long	21                              ; 0x15
	.long	15                              ; 0xf

	.comm	_debug_regs,8,3                 ; @debug_regs
	.no_dead_strip	_zl10353_init
.subsections_via_symbols
