	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_set_direction           ## -- Begin function mantis_set_direction
	.p2align	4, 0x90
_mantis_set_direction:                  ## @mantis_set_direction
	.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
	movl	%esi, %r14d
	movl	$40, %edi
	callq	_mmread
	movl	%eax, %ebx
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	cmpl	$1, %r14d
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	orl	$4, %edi
	movl	$40, %esi
	callq	_mmwrite
	andl	$251, %ebx
	jmp	LBB0_3
LBB0_2:
	andl	$251, %ebx
	movl	%ebx, %edi
	movl	$40, %esi
	callq	_mmwrite
	orl	$4, %ebx
LBB0_3:
	movl	%ebx, %edi
	movl	$40, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TS direction setup"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_set_direction           ; -- Begin function mantis_set_direction
	.p2align	2
_mantis_set_direction:                  ; @mantis_set_direction
	.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	x20, x1
	mov	w0, #40
	bl	_mmread
	mov	x19, x0
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	orr	w0, w19, #0x4
	mov	w1, #40
	bl	_mmwrite
	mov	w8, #251
	and	w0, w19, w8
	b	LBB0_3
LBB0_2:
	mov	w8, #251
	and	w19, w19, w8
	mov	x0, x19
	mov	w1, #40
	bl	_mmwrite
	orr	w0, w19, #0x4
LBB0_3:
	mov	w1, #40
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmwrite
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TS direction setup"

.subsections_via_symbols
