	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_detect_rotate
_tr_detect_rotate:                      ## @tr_detect_rotate
	.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
	xorl	%ebx, %ebx
	cmpl	$739, %edi                      ## imm = 0x2E3
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movl	(%rsi), %edi
	callq	_PROGRAM
	cmpl	$1251, %eax                     ## imm = 0x4E3
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	incl	%edi
	callq	_PROGRAM
	cmpl	$15, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_tr_bank_read
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_EOP_MOV_REG_LSL
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	_EOP_ORR_REG_LSR
	xorl	%edi, %edi
	callq	_tr_bank_write
	addl	$2, (%r14)
	movq	_n_in_ops@GOTPCREL(%rip), %rax
	addl	$2, (%rax)
	movl	$3, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_n_in_ops,4,2                   ## @n_in_ops
	.no_dead_strip	_tr_detect_rotate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_detect_rotate
_tr_detect_rotate:                      ; @tr_detect_rotate
	.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
	cmp	w0, #739
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w0, [x1]
	bl	_PROGRAM
	cmp	w0, #1251
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w0, w8, #1
	bl	_PROGRAM
	cmp	w0, #15
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_tr_bank_read
	mov	w0, #0
	mov	w1, #0
	mov	w2, #4
	bl	_EOP_MOV_REG_LSL
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #16
	bl	_EOP_ORR_REG_LSR
	mov	w0, #0
	bl	_tr_bank_write
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
Lloh0:
	adrp	x8, _n_in_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _n_in_ops@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #2
	str	w9, [x8]
	mov	w0, #3
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_n_in_ops,4,2                   ; @n_in_ops
	.no_dead_strip	_tr_detect_rotate
.subsections_via_symbols
