	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z8530_sync_open                ## -- Begin function z8530_sync_open
	.p2align	4, 0x90
_z8530_sync_open:                       ## @z8530_sync_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_spin_lock_irqsave
	movl	$1, (%rbx)
	movq	(%r14), %rax
	addq	$64, %rax
	movq	%rax, 64(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	_z8530_sync@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_z8530_rx_done
	movq	%rbx, %rdi
	callq	_z8530_rx_done
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_z8530_rtsdtr
	movq	$0, 24(%rbx)
	movq	_TxINT_ENAB@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rcx
	movq	_R1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rcx,%rsi,4), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx,%rsi,4)
	movq	%rbx, %rdi
	callq	_write_zsreg
	movq	_R3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movq	_RxENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_write_zsreg
	movl	16(%rbx), %edi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_z8530_sync,4,2                 ## @z8530_sync
	.comm	_TxINT_ENAB,4,2                 ## @TxINT_ENAB
	.comm	_R1,8,3                         ## @R1
	.comm	_R3,8,3                         ## @R3
	.comm	_RxENABLE,4,2                   ## @RxENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z8530_sync_open                ; -- Begin function z8530_sync_open
	.p2align	2
_z8530_sync_open:                       ; @z8530_sync_open
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x20]
	add	x8, x8, #64
	stp	xzr, x8, [x19, #56]
	str	xzr, [x19, #48]
Lloh0:
	adrp	x8, _z8530_sync@GOTPAGE
Lloh1:
	ldr	x8, [x8, _z8530_sync@GOTPAGEOFF]
	stp	x8, xzr, [x19, #32]
	mov	x0, x19
	bl	_z8530_rx_done
	mov	x0, x19
	bl	_z8530_rx_done
	mov	x0, x19
	mov	w1, #1
	bl	_z8530_rtsdtr
Lloh2:
	adrp	x8, _TxINT_ENAB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TxINT_ENAB@GOTPAGEOFF]
	str	xzr, [x19, #24]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
Lloh5:
	adrp	x10, _R1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _R1@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	orr	w2, w11, w8
	str	w2, [x9, x10]
	mov	x0, x19
	bl	_write_zsreg
Lloh8:
	adrp	x8, _R3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R3@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
Lloh11:
	adrp	x9, _RxENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RxENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_write_zsreg
	ldr	w0, [x19, #16]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_z8530_sync,4,2                 ; @z8530_sync
	.comm	_TxINT_ENAB,4,2                 ; @TxINT_ENAB
	.comm	_R1,8,3                         ; @R1
	.comm	_R3,8,3                         ; @R3
	.comm	_RxENABLE,4,2                   ; @RxENABLE
.subsections_via_symbols
