	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipso_v4_map_cat_rng_valid
_cipso_v4_map_cat_rng_valid:            ## @cipso_v4_map_cat_rng_valid
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testb	$1, %dl
	jne	LBB0_8
## %bb.1:
	movq	_CIPSO_V4_MAP_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_8
## %bb.2:
	movq	%rsi, %rbx
	movq	_CIPSO_V4_MAX_REM_CATS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	addq	$4, %r14
	cmpl	%r15d, %r12d
	movl	%eax, %r15d
	jg	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %r14
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_get_unaligned_be16
	movl	%eax, %r12d
	leal	4(%r14), %ecx
	xorl	%eax, %eax
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	2(%rbx), %rdi
	callq	_get_unaligned_be16
	jmp	LBB0_7
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIPSO_V4_MAX_REM_CATS,4,2      ## @CIPSO_V4_MAX_REM_CATS
	.comm	_CIPSO_V4_MAP_PASS,8,3          ## @CIPSO_V4_MAP_PASS
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_cipso_v4_map_cat_rng_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipso_v4_map_cat_rng_valid
_cipso_v4_map_cat_rng_valid:            ; @cipso_v4_map_cat_rng_valid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	tbnz	w2, #0, LBB0_8
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CIPSO_V4_MAP_PASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CIPSO_V4_MAP_PASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	x19, x2
	mov	x20, x1
	mov	x23, #0
Lloh3:
	adrp	x8, _CIPSO_V4_MAX_REM_CATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIPSO_V4_MAX_REM_CATS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w24, w8, #1
	sxtw	x25, w19
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x22, #2
	bl	_get_unaligned_be16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #4
	cmp	w21, w24
	mov	x24, x0
	b.gt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x25
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x20, x23
	mov	x0, x22
	bl	_get_unaligned_be16
	mov	x21, x0
	add	w8, w23, #4
	cmp	w8, w19
	b.le	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	b	LBB0_4
LBB0_8:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CIPSO_V4_MAX_REM_CATS,4,2      ; @CIPSO_V4_MAX_REM_CATS
	.comm	_CIPSO_V4_MAP_PASS,8,3          ; @CIPSO_V4_MAP_PASS
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_cipso_v4_map_cat_rng_valid
.subsections_via_symbols
