	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_set_sync_reg
_ast_set_sync_reg:                      ## @ast_set_sync_reg
	.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	%rdx, %r14
	movq	(%rdi), %rbx
	movq	_AST_IO_MISC_PORT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ast_io_read8
                                        ## kill: def $eax killed $eax def $rax
	andl	$-193, %eax
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	movq	_NVSync@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	leal	128(%rax), %esi
	testl	%edx, %edx
	cmovel	%eax, %esi
	movq	_NHSync@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	leal	64(%rsi), %edx
	testl	%ecx, %ecx
	cmovel	%esi, %edx
	movq	_AST_IO_MISC_PORT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_io_write8                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_MISC_PORT_READ,4,2      ## @AST_IO_MISC_PORT_READ
	.comm	_NVSync,4,2                     ## @NVSync
	.comm	_NHSync,4,2                     ## @NHSync
	.comm	_AST_IO_MISC_PORT_WRITE,4,2     ## @AST_IO_MISC_PORT_WRITE
	.no_dead_strip	_ast_set_sync_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_set_sync_reg
_ast_set_sync_reg:                      ; @ast_set_sync_reg
	.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, x2
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _AST_IO_MISC_PORT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_IO_MISC_PORT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ast_io_read8
	and	w8, w0, #0xffffff3f
	ldr	x9, [x19]
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NVSync@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVSync@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w11, w8, #0x80
	tst	w10, w9
	csel	w8, w8, w11, eq
Lloh6:
	adrp	x10, _NHSync@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NHSync@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w11, w8, #0x40
	tst	w10, w9
	csel	w2, w8, w11, eq
Lloh9:
	adrp	x8, _AST_IO_MISC_PORT_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AST_IO_MISC_PORT_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_io_write8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_MISC_PORT_READ,4,2      ; @AST_IO_MISC_PORT_READ
	.comm	_NVSync,4,2                     ; @NVSync
	.comm	_NHSync,4,2                     ; @NHSync
	.comm	_AST_IO_MISC_PORT_WRITE,4,2     ; @AST_IO_MISC_PORT_WRITE
	.no_dead_strip	_ast_set_sync_reg
.subsections_via_symbols
