	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_region
_process_region:                        ## @process_region
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_strlen
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_region_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
LBB0_8:
	movq	%r14, %rsi
	callq	_ERR
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_region_code@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_region_mask@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_num_regions@GOTPCREL(%rip), %rax
	movl	$32, (%rax)
	jmp	LBB0_11
LBB0_10:
	movq	_region_code@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	_region_mask@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_num_regions@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid region code '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"M_"

	.comm	_region_code,8,3                ## @region_code
	.comm	_region_mask,4,2                ## @region_mask
	.comm	_num_regions,4,2                ## @num_regions
	.comm	_region_table,8,3               ## @region_table
L_.str.2:                               ## @.str.2
	.asciz	"unknown region code '%s'"

	.no_dead_strip	_process_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_region
_process_region:                        ; @process_region
	.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, x0
	bl	_strlen
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x20, _region_table@GOTPAGE
Lloh3:
	ldr	x20, [x20, _region_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_ERR
	mov	w0, #-1
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _region_code@GOTPAGE
Lloh9:
	ldr	x8, [x8, _region_code@GOTPAGEOFF]
Lloh10:
	str	x19, [x8]
Lloh11:
	adrp	x8, _region_mask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _region_mask@GOTPAGEOFF]
	mov	w9, #-1
Lloh13:
	str	w9, [x8]
Lloh14:
	adrp	x8, _num_regions@GOTPAGE
Lloh15:
	ldr	x8, [x8, _num_regions@GOTPAGEOFF]
	mov	w9, #32
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _region_code@GOTPAGE
Lloh17:
	ldr	x8, [x8, _region_code@GOTPAGEOFF]
Lloh18:
	str	x19, [x8]
	mov	w8, #1
	lsl	w8, w8, w21
Lloh19:
	adrp	x9, _region_mask@GOTPAGE
Lloh20:
	ldr	x9, [x9, _region_mask@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh21:
	adrp	x8, _num_regions@GOTPAGE
Lloh22:
	ldr	x8, [x8, _num_regions@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
LBB0_11:
	str	w9, [x8]
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid region code '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"M_"

	.comm	_region_code,8,3                ; @region_code
	.comm	_region_mask,4,2                ; @region_mask
	.comm	_num_regions,4,2                ; @num_regions
	.comm	_region_table,8,3               ; @region_table
l_.str.2:                               ; @.str.2
	.asciz	"unknown region code '%s'"

	.no_dead_strip	_process_region
.subsections_via_symbols
