	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmap_set
_xmap_set:                              ## @xmap_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r10d
	movl	%esi, %ecx
	movl	$-1, %eax
	shll	%cl, %eax
	movl	%r8d, -4(%rbp)
	notl	%eax
	testl	%edx, %eax
	jne	LBB0_18
## %bb.1:
	movl	%eax, %esi
	andl	%r10d, %esi
	cmpl	%eax, %esi
	jne	LBB0_18
## %bb.2:
	testl	$1, -4(%rbp)
	jne	LBB0_19
## %bb.3:
	testl	%r9d, %r9d
	jne	LBB0_5
## %bb.4:
	subl	%edx, -4(%rbp)
LBB0_5:
	sarl	%cl, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r10d
	cmpl	%edx, %r10d
	jl	LBB0_17
## %bb.6:
	movslq	%edx, %rcx
	leal	1(%r10), %r8d
	movl	%r8d, %eax
	subl	%edx, %eax
	testb	$1, %al
	je	LBB0_10
## %bb.7:
	movl	-4(%rbp), %esi
	sarl	%esi
	movl	%esi, (%rdi,%rcx,4)
	testl	%r9d, %r9d
	je	LBB0_9
## %bb.8:
	movq	_MAP_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rdi,%rcx,4)
LBB0_9:
	incq	%rcx
LBB0_10:
	cmpl	%edx, %r10d
	jne	LBB0_11
LBB0_17:
	popq	%rbp
	retq
LBB0_18:
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r10d, %ecx
	xorl	%eax, %eax
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_19:
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	-4(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_11:
	movl	%r8d, %eax
	movq	_MAP_FLAG@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rcx
	cmpl	%ecx, %eax
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %esi
	sarl	%esi
	movl	%esi, (%rdi,%rcx,4)
	testl	%r9d, %r9d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	orl	(%rdx), %esi
	movl	%esi, (%rdi,%rcx,4)
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-4(%rbp), %esi
	sarl	%esi
	movl	%esi, 4(%rdi,%rcx,4)
	testl	%r9d, %r9d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	orl	(%rdx), %esi
	movl	%esi, 4(%rdi,%rcx,4)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmap_set: tried to map bad range: %06x-%06x"

L_.str.1:                               ## @.str.1
	.asciz	"xmap_set: ptr is not aligned: %08lx"

	.comm	_MAP_FLAG,4,2                   ## @MAP_FLAG
	.no_dead_strip	_xmap_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmap_set
_xmap_set:                              ; @xmap_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	stur	w4, [x29, #-4]
	mov	w8, #-1
	lsl	w8, w8, w1
	mvn	w9, w8
	bic	w10, w2, w8
	bic	w8, w3, w8
	cmp	w10, #0
	ccmp	w8, w9, #0, eq
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x3, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_3:
	ldur	w8, [x29, #-4]
	tbnz	w8, #0, LBB0_11
; %bb.4:
	cbnz	w5, LBB0_6
; %bb.5:
	ldur	w8, [x29, #-4]
	sub	w8, w8, w2
	stur	w8, [x29, #-4]
LBB0_6:
	asr	w9, w2, w1
	asr	w10, w3, w1
	cmp	w9, w10
	b.gt	LBB0_2
; %bb.7:
	add	x8, x0, w9, sxtw #2
	sub	w9, w10, w9
	add	w9, w9, #1
Lloh8:
	adrp	x10, _MAP_FLAG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAP_FLAG@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #4
	subs	w9, w9, #1
	b.eq	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x29, #-4]
	asr	w11, w11, #1
	str	w11, [x8]
	cbz	w5, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x10]
	orr	w11, w12, w11
	str	w11, [x8]
	b	LBB0_8
LBB0_11:
Lloh10:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldur	w2, [x29, #-4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_elprintf
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmap_set: tried to map bad range: %06x-%06x"

l_.str.1:                               ; @.str.1
	.asciz	"xmap_set: ptr is not aligned: %08lx"

	.comm	_MAP_FLAG,4,2                   ; @MAP_FLAG
	.no_dead_strip	_xmap_set
.subsections_via_symbols
