	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6optlen
_ip6optlen:                             ## @ip6optlen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_IP6OPT_PAD1@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	leaq	16(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	ja	LBB0_4
## %bb.2:
	movl	8(%rdi), %eax
	addl	$2, %eax
LBB0_3:
	cltq
	leaq	(%rdi,%rax,8), %rcx
	xorl	%edx, %edx
	cmpq	%rsi, %rcx
	cmoval	%edx, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP6OPT_PAD1,8,3                ## @IP6OPT_PAD1
	.no_dead_strip	_ip6optlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6optlen
_ip6optlen:                             ; @ip6optlen
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IP6OPT_PAD1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IP6OPT_PAD1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_5
LBB0_2:
	add	x8, x0, #16
	cmp	x8, x1
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	ldr	w8, [x0, #8]
	add	w8, w8, #2
LBB0_5:
	add	x9, x0, w8, sxtw #3
	cmp	x9, x1
	csel	w0, wzr, w8, hi
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IP6OPT_PAD1,8,3                ; @IP6OPT_PAD1
	.no_dead_strip	_ip6optlen
.subsections_via_symbols
