	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x86_mrsetlow
_x86_mrsetlow:                          ## @x86_mrsetlow
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rsi), %rsi
	callq	_x86_mtrrfixsearch
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	leaq	(%rcx,%rax), %rsi
	decq	%rsi
	movq	%r15, %rdi
	callq	_x86_mtrrfixsearch
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movl	(%r14), %esi
	movq	_MDF_FORCE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_7
## %bb.3:
	cmpq	%r15, %rbx
	ja	LBB0_7
## %bb.4:
	movq	_MDF_ATTRMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MDF_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	andl	%eax, %edi
	cmpl	%ecx, %edi
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rdx
	cmpq	%r15, %rdx
	jbe	LBB0_5
LBB0_7:
	xorl	%r12d, %r12d
	cmpq	%r15, %rbx
	ja	LBB0_13
## %bb.8:
	movq	_MDF_FIRMWARE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	notl	%edi
	andl	(%rbx), %edi
	callq	_mrcopyflags
	movl	%eax, (%rbx)
	movl	4(%r14), %edi
	movl	4(%rbx), %esi
	movl	$4, %edx
	callq	_bcopy
	addq	$24, %rbx
	cmpq	%r15, %rbx
	ja	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %esi
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MDF_FORCE,4,2                  ## @MDF_FORCE
	.comm	_MDF_ATTRMASK,4,2               ## @MDF_ATTRMASK
	.comm	_MDF_UNKNOWN,4,2                ## @MDF_UNKNOWN
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_MDF_FIRMWARE,4,2               ## @MDF_FIRMWARE
	.no_dead_strip	_x86_mrsetlow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x86_mrsetlow
_x86_mrsetlow:                          ; @x86_mrsetlow
	.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, x1
	mov	x20, x0
	ldr	x1, [x1, #16]
	bl	_x86_mtrrfixsearch
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x9
	sub	x1, x8, #1
	mov	x0, x20
	bl	_x86_mtrrfixsearch
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _MDF_FORCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDF_FORCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
	cmp	w8, #0
	ccmp	x21, x0, #2, eq
	b.hi	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MDF_ATTRMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDF_ATTRMASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MDF_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDF_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x10, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	and	w11, w8, w11
	cmp	w11, w9
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #24
	cmp	x10, x20
	b.ls	LBB0_4
LBB0_6:
	cmp	x21, x20
	b.ls	LBB0_11
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
	ret
LBB0_11:
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _MDF_FIRMWARE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MDF_FIRMWARE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	bic	w0, w8, w9
	bl	_mrcopyflags
	str	w0, [x21]
	ldr	w0, [x19, #4]
	ldr	w1, [x21, #4]
	mov	w2, #4
	bl	_bcopy
	add	x21, x21, #24
	cmp	x21, x20
	b.hi	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x19]
	ldr	w8, [x21]
	b	LBB0_12
LBB0_14:
Lloh13:
	adrp	x8, _EACCES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MDF_FORCE,4,2                  ; @MDF_FORCE
	.comm	_MDF_ATTRMASK,4,2               ; @MDF_ATTRMASK
	.comm	_MDF_UNKNOWN,4,2                ; @MDF_UNKNOWN
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_MDF_FIRMWARE,4,2               ; @MDF_FIRMWARE
	.no_dead_strip	_x86_mrsetlow
.subsections_via_symbols
