	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibv_madvise_range
_ibv_madvise_range:                     ## @ibv_madvise_range
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_huge_page_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_get_page_size
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_4:
	movq	_page_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	%rax, %rcx
	negq	%rcx
	addq	%r14, %rbx
	addq	%rax, %rbx
	decq	%rbx
	andq	%rcx, %rbx
	movq	%rcx, %r15
	andq	%r14, %r15
	decq	%rbx
	movq	_mm_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	%r15, %rdi
	movl	$1, %eax
	subq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %al
	movq	_MADV_DONTFORK@GOTPCREL(%rip), %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r12), %r12d
	xorl	%eax, %eax
	cmpl	%r12d, %r13d
	sete	%al
	leal	(%rax,%rax), %r15d
	decl	%r15d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_get_start_node
	testq	%rax, %rax
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	leaq	1(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	testl	%eax, %eax
	je	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	addl	%r15d, %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	___mm_next
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_27
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%r14)
	ja	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	%rbx, 8(%r14)
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_split_range
	testl	%eax, %eax
	je	LBB0_26
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	16(%r14), %eax
	cmpl	%r12d, %r13d
	je	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r14), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rdi, %rax
	jbe	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r14), %rsi
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%rax, %rdi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r14), %rsi
	subq	%rdi, %rsi
	incq	%rsi
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%r13d, %edx
	callq	_madvise
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	16(%r14), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_undo_node
	testq	%rax, %rax
	setne	%cl
	andb	-48(%rbp), %cl                  ## 1-byte Folded Reload
	cmpb	$1, %cl
	jne	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MADV_DONTFORK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_MADV_DOFORK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	%rax, %rdi
	callq	___mm_prev
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%ebx, %r13d
	cmovnel	%ebx, %r14d
	movq	8(%rax), %rbx
	xorl	%eax, %eax
	movl	%r14d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rbx, %rdi
	jbe	LBB0_6
	jmp	LBB0_28
LBB0_23:
	movq	%r14, %rdi
	callq	___mm_prev
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movl	16(%r14), %ecx
	cmpl	16(%rax), %ecx
	jne	LBB0_27
## %bb.25:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_merge_ranges
	jmp	LBB0_27
LBB0_26:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_27:
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	movl	$-1, %r15d
	cmovnel	-44(%rbp), %r15d                ## 4-byte Folded Reload
LBB0_28:
	movq	_mm_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
LBB0_29:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_huge_page_enabled,8,3          ## @huge_page_enabled
	.comm	_page_size,8,3                  ## @page_size
	.comm	_mm_mutex,4,2                   ## @mm_mutex
	.comm	_MADV_DONTFORK,4,2              ## @MADV_DONTFORK
	.comm	_MADV_DOFORK,4,2                ## @MADV_DOFORK
	.no_dead_strip	_ibv_madvise_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibv_madvise_range
_ibv_madvise_range:                     ; @ibv_madvise_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _huge_page_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _huge_page_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_get_page_size
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_34
LBB0_4:
Lloh3:
	adrp	x8, _page_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _page_size@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
LBB0_5:
	neg	x8, x0
	and	x19, x8, x21
	add	x9, x21, x20
	add	x9, x9, x0
	sub	x9, x9, #1
	and	x23, x9, x8
	sub	x24, x23, #1
Lloh6:
	adrp	x0, _mm_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mm_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	mov	w27, #1
Lloh8:
	adrp	x8, _MADV_DONTFORK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MADV_DONTFORK@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
	cmp	w28, w22
	cneg	w25, w27, ne
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_get_start_node
	cbz	x0, LBB0_19
; %bb.6:
	mov	x20, x0
	sub	x27, x27, x19
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	w8, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w8, w25
	str	w8, [x20, #16]
	mov	x0, x20
	bl	___mm_next
	mov	x20, x0
	cbz	x0, LBB0_25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cmp	x8, x24
	cset	w26, hi
	b.hi	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	cmp	x8, x24
	b.ls	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_split_range
	cbz	w0, LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20, #16]
	cmp	w28, w22
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #1
	b.ne	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x20]
	cmp	x19, x0
	b.ls	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	add	x1, x27, x8
	mov	x0, x19
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	sub	x8, x8, x0
	add	x1, x8, #1
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x22
	bl	_madvise
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20, #16]
	b	LBB0_8
LBB0_19:
	mov	w21, #-1
	b	LBB0_32
LBB0_20:
	mov	w21, #0
LBB0_21:
	mov	x0, x20
	bl	___mm_prev
	cbz	x0, LBB0_24
; %bb.22:
	mov	x1, x0
	ldr	w8, [x20, #16]
	ldr	w9, [x0, #16]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_merge_ranges
LBB0_24:
	mov	x27, x26
	b	LBB0_32
LBB0_25:
	mov	w21, #0
	b	LBB0_31
LBB0_26:
	mov	w21, #-1
	b	LBB0_31
LBB0_27:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_undo_node
	cbz	x0, LBB0_31
; %bb.28:
Lloh11:
	adrp	x8, _MADV_DONTFORK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MADV_DONTFORK@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x8, _MADV_DOFORK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MADV_DOFORK@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	bl	___mm_prev
	cbz	x0, LBB0_30
; %bb.29:
	cmp	w20, w22
	csel	w22, w23, w20, eq
	ldr	x23, [x0, #8]
	cmp	x19, x23
	b.ls	LBB0_35
LBB0_30:
	mov	w19, #-1
	b	LBB0_33
LBB0_31:
	mov	w27, #1
LBB0_32:
	cmp	w27, #0
	csinv	w19, w21, wzr, ne
LBB0_33:
Lloh17:
	adrp	x0, _mm_mutex@GOTPAGE
Lloh18:
	ldr	x0, [x0, _mm_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
LBB0_34:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_35:
Lloh19:
	adrp	x8, _MADV_DONTFORK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MADV_DONTFORK@GOTPAGEOFF]
Lloh21:
	ldr	w28, [x8]
	cmp	w22, w28
	mov	w8, #1
	cneg	w24, w8, ne
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_get_start_node
	cbz	x0, LBB0_49
; %bb.36:
	mov	x20, x0
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	add	x25, x23, #1
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=1
	cbz	w8, LBB0_44
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	w8, w8, w24
	str	w8, [x20, #16]
	mov	x0, x20
	bl	___mm_next
	mov	x20, x0
	mov	w27, #0
	cbz	x0, LBB0_32
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cmp	x8, x23
	b.hi	LBB0_21
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x20, #8]
	cmp	x8, x23
	b.ls	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_split_range
	cbz	w0, LBB0_49
LBB0_42:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [x20, #16]
	cmp	w22, w28
	b.eq	LBB0_37
; %bb.43:                               ;   in Loop: Header=BB0_39 Depth=1
	cmp	w8, #1
	b.ne	LBB0_38
LBB0_44:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x0, [x20]
	cmp	x19, x0
	b.ls	LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x9, x8
	mov	x0, x19
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x20, #8]
	sub	x8, x8, x0
	add	x1, x8, #1
LBB0_47:                                ;   in Loop: Header=BB0_39 Depth=1
	mov	x2, x22
	bl	_madvise
	mov	x21, x0
	cbnz	w0, LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [x20, #16]
	b	LBB0_38
LBB0_49:
	mov	w27, #0
	mov	w21, #-1
	b	LBB0_32
LBB0_50:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_undo_node
	mov	w27, #0
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_huge_page_enabled,8,3          ; @huge_page_enabled
	.comm	_page_size,8,3                  ; @page_size
	.comm	_mm_mutex,4,2                   ; @mm_mutex
	.comm	_MADV_DONTFORK,4,2              ; @MADV_DONTFORK
	.comm	_MADV_DOFORK,4,2                ; @MADV_DOFORK
	.no_dead_strip	_ibv_madvise_range
.subsections_via_symbols
