	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mls_write_range_helper
_mls_write_range_helper:                ## @mls_write_range_helper
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rsi
	leaq	16(%rsi), %rdi
	callq	_mls_level_eq
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	2(%rdi), %r12
	incq	%rdi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
LBB0_2:
	xorl	%edi, %edi
	callq	_BUG_ON
	leaq	-52(%rbp), %rdi
	movl	$4, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_ebitmap_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	(%rbx), %rdi
	addq	$24, %rdi
	movq	%r14, %rsi
	callq	_ebitmap_write
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mls_write_range_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mls_write_range_helper
_mls_write_range_helper:                ; @mls_write_range_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x1, [x0]
	add	x0, x1, #16
	bl	_mls_level_eq
	mov	x21, x0
	cmp	w0, #0
	mov	w8, #2
	cinc	x22, x8, eq
	sub	x0, x22, #1
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
LBB0_2:
	mov	w0, #0
	bl	_BUG_ON
	add	x0, sp, #12
	mov	w1, #4
	mov	x2, x22
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	add	x0, x8, #8
	mov	x1, x19
	bl	_ebitmap_write
	cbnz	w0, LBB0_7
; %bb.4:
	cbz	w21, LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
	add	x0, x8, #24
	mov	x1, x19
	bl	_ebitmap_write
	cbz	w0, LBB0_5
LBB0_7:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mls_write_range_helper
.subsections_via_symbols
