	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_exthdrs
_parse_exthdrs:                         ## @parse_exthdrs
	.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	(%rdi), %r12d
	addl	$-4, %r12d
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	addq	$4, %rbx
	movq	_SADB_EXT_RESERVED@GOTPCREL(%rip), %rcx
	movq	_SADB_EXT_MAX@GOTPCREL(%rip), %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -8(%r15,%r13,8)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %rbx
	subl	%r14d, %r12d
	jle	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	shll	$2, %r14d
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %r12d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r13
	cmpq	(%rcx), %r13
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rdx), %r13
	ja	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_sadb_ext_min_len@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	(%rax,%r13,8), %r14d
	jl	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -8(%r15,%r13,8)
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_EXT_ADDRESS_SRC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_EXT_ADDRESS_PROXY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_X_EXT_NAT_T_OA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_verify_address_len
	movq	_SADB_EXT_MAX@GOTPCREL(%rip), %rdx
	movq	_SADB_EXT_RESERVED@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_X_EXT_SEC_CTX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_verify_sec_ctx_len
	movq	_SADB_EXT_MAX@GOTPCREL(%rip), %rdx
	movq	_SADB_EXT_RESERVED@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_16
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_EXT_RESERVED,8,3          ## @SADB_EXT_RESERVED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SADB_EXT_MAX,8,3               ## @SADB_EXT_MAX
	.comm	_sadb_ext_min_len,8,3           ## @sadb_ext_min_len
	.comm	_SADB_EXT_ADDRESS_SRC,8,3       ## @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,8,3       ## @SADB_EXT_ADDRESS_DST
	.comm	_SADB_EXT_ADDRESS_PROXY,8,3     ## @SADB_EXT_ADDRESS_PROXY
	.comm	_SADB_X_EXT_NAT_T_OA,8,3        ## @SADB_X_EXT_NAT_T_OA
	.comm	_SADB_X_EXT_SEC_CTX,8,3         ## @SADB_X_EXT_SEC_CTX
	.no_dead_strip	_parse_exthdrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_exthdrs
_parse_exthdrs:                         ; @parse_exthdrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	sub	w21, w8, #4
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	add	x20, x1, #4
Lloh0:
	adrp	x22, _SADB_EXT_RESERVED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SADB_EXT_RESERVED@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SADB_EXT_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SADB_EXT_MAX@GOTPAGEOFF]
Lloh4:
	adrp	x24, _sadb_ext_min_len@GOTPAGE
Lloh5:
	ldr	x24, [x24, _sadb_ext_min_len@GOTPAGEOFF]
Lloh6:
	adrp	x28, _SADB_X_EXT_NAT_T_OA@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SADB_X_EXT_NAT_T_OA@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x20, [x19, x25, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x26
	sub	w21, w21, w26
	cmp	w21, #0
	b.le	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	lsl	w8, w8, #2
	ldr	x27, [x20, #8]
	ldr	x9, [x22]
	cmp	w8, #0
	ccmp	w21, w8, #8, ne
	ccmp	x27, x9, #4, ge
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x26, w8
	ldr	x8, [x23]
	cmp	x27, x8
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x27, lsl #3]
	cmp	w26, w8
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x25, x27, #1
	ldr	x8, [x19, x25, lsl #3]
	cbnz	x8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _SADB_EXT_ADDRESS_SRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_SRC@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _SADB_EXT_ADDRESS_DST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SADB_EXT_ADDRESS_DST@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _SADB_EXT_ADDRESS_PROXY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SADB_EXT_ADDRESS_PROXY@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldr	x11, [x28]
	cmp	x27, x8
	ccmp	x27, x9, #4, ne
	ccmp	x27, x10, #4, ne
	ccmp	x27, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_verify_address_len
	cbnz	x0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _SADB_X_EXT_SEC_CTX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SADB_X_EXT_SEC_CTX@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x27, x8
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_verify_sec_ctx_len
	cbz	x0, LBB0_2
LBB0_12:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_EXT_RESERVED,8,3          ; @SADB_EXT_RESERVED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SADB_EXT_MAX,8,3               ; @SADB_EXT_MAX
	.comm	_sadb_ext_min_len,8,3           ; @sadb_ext_min_len
	.comm	_SADB_EXT_ADDRESS_SRC,8,3       ; @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,8,3       ; @SADB_EXT_ADDRESS_DST
	.comm	_SADB_EXT_ADDRESS_PROXY,8,3     ; @SADB_EXT_ADDRESS_PROXY
	.comm	_SADB_X_EXT_NAT_T_OA,8,3        ; @SADB_X_EXT_NAT_T_OA
	.comm	_SADB_X_EXT_SEC_CTX,8,3         ; @SADB_X_EXT_SEC_CTX
	.no_dead_strip	_parse_exthdrs
.subsections_via_symbols
