	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_rX_write
_tr_rX_write:                           ## @tr_rX_write
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movl	%edi, %ebx
	andl	$3, %ebx
	cmpl	$3, %ebx
	jne	LBB0_1
## %bb.10:
	movl	%r12d, %eax
	shrl	$2, %eax
	andl	$3, %eax
	andl	$256, %r12d                     ## imm = 0x100
	orl	%eax, %r12d
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tr_bank_write                  ## TAILCALL
LBB0_1:
	movl	%r12d, %r14d
	shrl	$6, %r14d
	andl	$4, %r14d
	orl	%ebx, %r14d
	movq	_known_regb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	8(%r14), %ecx
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.2:
	movl	%r12d, %edi
	andl	$256, %edi                      ## imm = 0x100
	movq	_known_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	orl	(%rax,%rcx,4), %edi
	callq	_tr_bank_write
	jmp	LBB0_9
LBB0_3:
	cmpl	$4, %r14d
	movl	$9, %esi
	sbbl	$0, %esi
	leal	(,%rbx,8), %eax
	leal	(%rax,%rax,2), %r15d
	movl	%r15d, %edx
	shrl	%edx
	andl	$12, %edx
	movl	$1, %edi
	movl	$255, %ecx
	callq	_EOP_AND_IMM
	cmpl	$4, %r14d
	jb	LBB0_5
## %bb.4:
	addl	$24, %r15d
	shrl	%r15d
	andl	$12, %r15d
	movl	$1, %edi
	movl	$1, %esi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_EOP_ORR_IMM
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leal	-1(,%rbx,8), %ecx
	movl	$1, %edi
	movl	$7, %esi
	movl	$1, %edx
	callq	_EOP_ADD_REG_LSR
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edi
	movl	$7, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_EOP_ADD_REG_LSL
LBB0_8:
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_EOP_STRH_SIMPLE
	movq	_hostreg_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, 4(%rax)
LBB0_9:
	shrl	$2, %r12d
	andl	$3, %r12d
	movl	%r14d, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tr_ptrr_mod                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_known_regb,4,2                 ## @known_regb
	.comm	_known_regs,8,3                 ## @known_regs
	.comm	_hostreg_r,8,3                  ## @hostreg_r
	.no_dead_strip	_tr_rX_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_rX_write
_tr_rX_write:                           ; @tr_rX_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	and	w21, w0, #0x3
	cmp	w21, #3
	b.ne	LBB0_2
; %bb.1:
	and	w0, w19, #0x100
	bfxil	w0, w19, #2, #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tr_bank_write
LBB0_2:
	lsr	w8, w19, #6
	and	w8, w8, #0x4
	orr	w20, w8, w21
Lloh0:
	adrp	x8, _known_regb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _known_regb@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w20, #0x8
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.3:
	and	w8, w19, #0x100
Lloh3:
	adrp	x9, _known_regs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _known_regs@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, uxtw #2]
	orr	w0, w9, w8
	bl	_tr_bank_write
	b	LBB0_10
LBB0_4:
	cmp	w20, #4
	mov	w8, #8
	cinc	w1, w8, hs
	add	w22, w21, w21, lsl #1
	ubfiz	w8, w22, #2, #29
	and	w2, w8, #0xc
	mov	w0, #1
	mov	w3, #255
	bl	_EOP_AND_IMM
	cmp	w20, #4
	b.lo	LBB0_6
; %bb.5:
	lsl	w8, w22, #3
	add	w8, w8, #24
	lsr	w8, w8, #1
	and	w2, w8, #0xc
	mov	w0, #1
	mov	w1, #1
	mov	w3, #1
	bl	_EOP_ORR_IMM
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	lsl	w8, w21, #3
	sub	w3, w8, #1
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1
	bl	_EOP_ADD_REG_LSR
	b	LBB0_9
LBB0_8:
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1
	mov	w3, #1
	bl	_EOP_ADD_REG_LSL
LBB0_9:
	mov	w0, #0
	mov	w1, #1
	bl	_EOP_STRH_SIMPLE
Lloh6:
	adrp	x8, _hostreg_r@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hostreg_r@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_10:
	ubfx	w1, w19, #2, #2
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tr_ptrr_mod
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_known_regb,4,2                 ; @known_regb
	.comm	_known_regs,8,3                 ; @known_regs
	.comm	_hostreg_r,8,3                  ; @hostreg_r
	.no_dead_strip	_tr_rX_write
.subsections_via_symbols
