	.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_hton
_cipso_v4_map_cat_rng_hton:             ## @cipso_v4_map_cat_rng_hton
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CIPSO_V4_TAG_RNG_CAT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_CIPSO_V4_OPT_LEN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CIPSO_V4_TAG_RNG_BLEN@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	subq	%rcx, %rax
	cmpq	%r15, %rax
	jge	LBB0_1
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_1:
	movl	(%rbx), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_netlbl_secattr_catmap_walk
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leaq	(%r12,%rcx,4), %r12
	cmpq	%r15, %r12
	jg	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -8(%r13,%r14,4)
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_netlbl_secattr_catmap_walk_rng
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	cmpq	%r15, %r12
	jg	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -4(%r13,%r14,4)
	movl	(%rbx), %edi
	incl	%eax
	movl	%eax, %esi
	callq	_netlbl_secattr_catmap_walk
	addq	$2, %r14
	testl	%eax, %eax
	jns	LBB0_3
## %bb.10:
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_htons
	movl	%eax, (%r13,%rbx)
	addl	$4, %r15d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$-2, %r14
	cmpq	$2, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%r13,%r14,4), %edi
	callq	_htons
	movslq	%r15d, %rbx
	movq	%r13, %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13,%rbx)
	addq	$2, %rbx
	movl	-16(%rcx,%r14,4), %edi
	testl	%edi, %edi
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %r15d
	jmp	LBB0_14
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CIPSO_V4_TAG_RNG_CAT_MAX,4,2   ## @CIPSO_V4_TAG_RNG_CAT_MAX
	.comm	_CIPSO_V4_OPT_LEN_MAX,8,3       ## @CIPSO_V4_OPT_LEN_MAX
	.comm	_CIPSO_V4_HDR_LEN,8,3           ## @CIPSO_V4_HDR_LEN
	.comm	_CIPSO_V4_TAG_RNG_BLEN,8,3      ## @CIPSO_V4_TAG_RNG_BLEN
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_cipso_v4_map_cat_rng_hton
.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_hton
_cipso_v4_map_cat_rng_hton:             ; @cipso_v4_map_cat_rng_hton
	.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
	sub	sp, sp, #16
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _CIPSO_V4_TAG_RNG_CAT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIPSO_V4_TAG_RNG_CAT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _CIPSO_V4_OPT_LEN_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CIPSO_V4_OPT_LEN_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _CIPSO_V4_HDR_LEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CIPSO_V4_HDR_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _CIPSO_V4_TAG_RNG_BLEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CIPSO_V4_TAG_RNG_BLEN@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x9, x9, x10
	sub	x8, x8, x9
	cmp	x8, x3
	b.ge	LBB0_3
LBB0_1:
Lloh17:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_3:
	ldr	w0, [x22]
	mov	w1, #0
	bl	_netlbl_secattr_catmap_walk
	tbnz	w0, #31, LBB0_14
; %bb.4:
	mov	x1, x0
	mov	x20, #0
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w1, #0
	cset	w8, ne
	add	x20, x20, w8, uxtw #2
	cmp	x20, x21
	b.gt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w1, [x23, x25, lsl #2]
	ldr	w0, [x22]
	bl	_netlbl_secattr_catmap_walk_rng
	tbnz	w0, #31, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #4
	cmp	x20, x21
	b.gt	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x25, #2
	add	x8, x23, x25, lsl #2
	str	w0, [x8, #4]
	ldr	w8, [x22]
	add	w1, w0, #1
	mov	x0, x8
	bl	_netlbl_secattr_catmap_walk
	mov	x1, x0
	mov	x25, x24
	tbz	w0, #31, LBB0_5
; %bb.9:
	mov	w21, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_htons
	str	w0, [x19, x22]
	add	w21, w21, #4
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x24, #2
	cmp	x8, #2
	b.le	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x23, x24, lsl #2
	ldur	w0, [x25, #-4]
	bl	_htons
	sxtw	x8, w21
	str	w0, [x19, x8]
	add	x22, x8, #2
	sub	x24, x24, #2
	ldur	w0, [x25, #-8]
	cbnz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x22
	b	LBB0_11
LBB0_14:
	mov	w20, #0
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	sub	sp, x29, #64
	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
LBB0_17:
Lloh22:
	adrp	x8, _EFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_2
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CIPSO_V4_TAG_RNG_CAT_MAX,4,2   ; @CIPSO_V4_TAG_RNG_CAT_MAX
	.comm	_CIPSO_V4_OPT_LEN_MAX,8,3       ; @CIPSO_V4_OPT_LEN_MAX
	.comm	_CIPSO_V4_HDR_LEN,8,3           ; @CIPSO_V4_HDR_LEN
	.comm	_CIPSO_V4_TAG_RNG_BLEN,8,3      ; @CIPSO_V4_TAG_RNG_BLEN
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_cipso_v4_map_cat_rng_hton
.subsections_via_symbols
