	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioremap_remote
_ioremap_remote:                        ## @ioremap_remote
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r8, %rcx
	callq	_scif_off_to_dma_addr
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_scifdev_self
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_SCIF_WINDOW_PEER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r12), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$0, 8(%rcx)
	jne	LBB0_5
## %bb.4:
	subq	(%rax), %r15
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scif_ioremap                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIF_WINDOW_PEER,8,3           ## @SCIF_WINDOW_PEER
	.no_dead_strip	_ioremap_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioremap_remote
_ioremap_remote:                        ; @ioremap_remote
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x1, x0
	mov	x0, x22
	mov	x2, #0
	mov	x3, x4
	bl	_scif_off_to_dma_addr
	mov	x21, x0
	mov	x0, x19
	bl	_scifdev_self
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _SCIF_WINDOW_PEER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCIF_WINDOW_PEER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x19]
	ldr	x8, [x9]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	sub	x21, x21, x8
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_scif_ioremap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIF_WINDOW_PEER,8,3           ; @SCIF_WINDOW_PEER
	.no_dead_strip	_ioremap_remote
.subsections_via_symbols
