	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r820t_imr_cross
_r820t_imr_cross:                       ## @r820t_imr_cross
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movq	%rsi, -168(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$8, %esi
	callq	_r820t_read_cache_reg
	movl	%eax, %ebx
	andl	$192, %ebx
	movq	%r14, -176(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_r820t_read_cache_reg
                                        ## kill: def $eax killed $eax def $rax
	andl	$192, %eax
	leal	1(%rbx), %ecx
	movl	%ecx, -144(%rbp)                ## 4-byte Spill
	leal	33(%rax), %ecx
	movl	%ecx, -140(%rbp)                ## 4-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	incl	%eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	leal	33(%rbx), %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	leaq	-104(%rbp), %r15
	xorl	%r12d, %r12d
	movl	$255, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -148(%rbp)                ## 4-byte Spill
	cmpl	$3, %r12d
	ja	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, %edx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, %r14d
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %edx
	movl	-136(%rbp), %r14d               ## 4-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-132(%rbp), %edx                ## 4-byte Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r14d
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %edx
	movl	-140(%rbp), %r14d               ## 4-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-144(%rbp), %edx                ## 4-byte Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, -8(%r15)
	movl	%r14d, -4(%r15)
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_r820t_write_reg
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	callq	_r820t_write_reg
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_r820t_multi_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r13d, %eax
	movl	-148(%rbp), %ecx                ## 4-byte Reload
	cmovll	%r14d, %ecx
	cmovll	%eax, %r13d
	movl	%eax, (%r15)
	incq	%r12
	addq	$12, %r15
	cmpq	$5, %r12
	jne	LBB0_1
## %bb.11:
	andl	$31, %ecx
	cmpl	$1, %ecx
	jne	LBB0_13
## %bb.12:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	$0, (%rax)
	movl	-104(%rbp), %eax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	-112(%rbp), %rax
	movq	%rax, (%rcx)
	movq	-100(%rbp), %rax
	movq	%rax, 12(%rcx)
	movl	-92(%rbp), %eax
	movl	%eax, 20(%rcx)
	movq	-88(%rbp), %rax
	movq	%rax, 24(%rcx)
	movl	-80(%rbp), %eax
	jmp	LBB0_14
LBB0_13:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movl	-104(%rbp), %eax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	-112(%rbp), %rax
	movq	%rax, (%rcx)
	movq	-76(%rbp), %rax
	movq	%rax, 12(%rcx)
	movl	-68(%rbp), %eax
	movl	%eax, 20(%rcx)
	movq	-64(%rbp), %rax
	movq	%rax, 24(%rcx)
	movl	-56(%rbp), %eax
LBB0_14:
	movl	%eax, 32(%rcx)
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_r820t_imr_cross
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r820t_imr_cross
_r820t_imr_cross:                       ; @r820t_imr_cross
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x2, x1, [sp, #8]                ; 16-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w1, #8
	bl	_r820t_read_cache_reg
	and	w23, w0, #0xc0
	mov	x0, x21
	mov	w1, #9
	bl	_r820t_read_cache_reg
	mov	x25, #0
	mov	w24, #0
	and	w26, w0, #0xc0
	orr	w10, w23, #0x1
	mov	w8, #33
	orr	w9, w26, w8
	stp	w9, w10, [sp, #32]              ; 8-byte Folded Spill
	orr	w9, w26, #0x1
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	orr	w19, w23, w8
	add	x8, sp, #40
	add	x27, x8, #8
	mov	w28, #255
Lloh3:
	adrp	x20, lJTI0_0@PAGE
Lloh4:
	add	x20, x20, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, #3
	b.hi	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	and	x8, x25, #0xffffffff
	adr	x9, LBB0_3
	ldrb	w10, [x20, x8]
	add	x9, x9, x10, lsl #2
	mov	x2, x23
	mov	x22, x26
	br	x9
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x23
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x19
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x23
	ldr	w22, [sp, #32]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x26
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	stp	w2, w22, [x27, #-8]
	mov	x0, x21
	mov	w1, #8
	bl	_r820t_write_reg
	tbnz	w0, #31, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	w1, #9
	mov	x2, x22
	bl	_r820t_write_reg
	tbnz	w0, #31, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_r820t_multi_read
	tbnz	w0, #31, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	str	w0, [x27], #12
	cmp	w0, w28
	csel	w24, w22, w24, lt
	csel	w28, w0, w28, lt
	add	x25, x25, #1
	cmp	x25, #5
	b.ne	LBB0_1
; %bb.12:
	mov	w0, #0
	and	w8, w24, #0x1f
	cmp	w8, #1
	mov	w8, #36
	mov	w9, #12
	csel	x8, x9, x8, eq
	mov	w9, #48
	mov	w10, #24
	csel	x9, x10, x9, eq
	cset	w10, ne
	ldp	x11, x12, [sp, #8]              ; 16-byte Folded Reload
	str	w10, [x11]
	ldr	x10, [sp, #40]
	str	x10, [x12]
	ldr	w10, [sp, #48]
	str	w10, [x12, #8]
	add	x10, sp, #40
	add	x8, x10, x8
	ldr	x11, [x8]
	stur	x11, [x12, #12]
	ldr	w8, [x8, #8]
	str	w8, [x12, #20]
	add	x8, x10, x9
	ldr	x9, [x8]
	str	x9, [x12, #24]
	ldr	w8, [x8, #8]
	str	w8, [x12, #32]
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_r820t_imr_cross
.subsections_via_symbols
