	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_fixup_aper_base
_scif_fixup_aper_base:                  ## @scif_fixup_aper_base
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	callq	_scifdev_self
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	(%rbx), %rax
	movq	_SCIF_WINDOW_PEER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$0, 8(%r14)
	je	LBB0_4
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, 8(%rbx)
	jle	LBB0_8
## %bb.5:
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rsi
	addl	%eax, (%rsi,%rdx,4)
	incq	%rdx
	movslq	8(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_6
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIF_WINDOW_PEER,8,3           ## @SCIF_WINDOW_PEER
	.no_dead_strip	_scif_fixup_aper_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_fixup_aper_base
_scif_fixup_aper_base:                  ; @scif_fixup_aper_base
	.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	x19, x1
	ldr	x20, [x0]
	bl	_scifdev_self
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
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_4
; %bb.2:
	ldr	x9, [x20]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:
	mov	x8, #0
	ldr	w9, [x9]
	ldr	x10, [x19, #24]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cbz	x11, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x19, #16]
	lsl	x12, x8, #2
	ldr	w13, [x11, x12]
	add	w13, w13, w9
	str	w13, [x11, x12]
	add	x8, x8, #1
	ldrsw	x11, [x19, #8]
	cmp	x8, x11
	b.lt	LBB0_7
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIF_WINDOW_PEER,8,3           ; @SCIF_WINDOW_PEER
	.no_dead_strip	_scif_fixup_aper_base
.subsections_via_symbols
