	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function range_write_helper
_range_write_helper:                    ## @range_write_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	$16, %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	(%rdx), %r12
	movq	8(%rdx), %r15
	movl	8(%rdi), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	movl	$2, %edx
	movq	%r15, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%r12), %rax
	movq	_POLICYDB_VERSION_RANGETRANS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mls_write_range_helper
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLICYDB_VERSION_RANGETRANS,8,3 ## @POLICYDB_VERSION_RANGETRANS
	.no_dead_strip	_range_write_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function range_write_helper
_range_write_helper:                    ; @range_write_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldp	x22, x20, [x2]
	ldr	w0, [x0, #8]
	bl	_cpu_to_le32
	str	w0, [sp]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le32
	str	w0, [sp, #4]
	mov	x0, sp
	mov	w1, #4
	mov	w2, #2
	mov	x3, x20
	bl	_put_entry
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _POLICYDB_VERSION_RANGETRANS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLICYDB_VERSION_RANGETRANS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	w0, [sp]
	mov	x0, sp
	mov	w1, #4
	mov	w2, #1
	mov	x3, x20
	bl	_put_entry
	cbnz	w0, LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mls_write_range_helper
LBB0_4:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_POLICYDB_VERSION_RANGETRANS,8,3 ; @POLICYDB_VERSION_RANGETRANS
	.no_dead_strip	_range_write_helper
.subsections_via_symbols
