	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_clearpktopts               ## -- Begin function ip6_clearpktopts
	.p2align	4, 0x90
_ip6_clearpktopts:                      ## @ip6_clearpktopts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$-1, %esi
	je	LBB0_3
## %bb.2:
	movq	_IPV6_PKTINFO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
LBB0_3:
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_5:
	movq	$0, 64(%r14)
LBB0_6:
	cmpl	$-1, %ebx
	je	LBB0_8
## %bb.7:
	movq	_IPV6_HOPLIMIT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
LBB0_8:
	movl	$-1, (%r14)
LBB0_9:
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.10:
	movq	_IPV6_TCLASS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
LBB0_11:
	movl	$-1, 4(%r14)
LBB0_12:
	cmpl	$-1, %ebx
	je	LBB0_14
## %bb.13:
	movq	_IPV6_NEXTHOP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_19
LBB0_14:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_RTFREE
	movq	$0, 56(%r14)
LBB0_16:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_18:
	movq	$0, 48(%r14)
LBB0_19:
	cmpl	$-1, %ebx
	je	LBB0_21
## %bb.20:
	movq	_IPV6_HOPOPTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_24
LBB0_21:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_23:
	movq	$0, 40(%r14)
LBB0_24:
	cmpl	$-1, %ebx
	je	LBB0_26
## %bb.25:
	movq	_IPV6_RTHDRDSTOPTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_29
LBB0_26:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_28:
	movq	$0, 32(%r14)
LBB0_29:
	cmpl	$-1, %ebx
	je	LBB0_31
## %bb.30:
	movq	_IPV6_RTHDR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_35
LBB0_31:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_33:
	movq	$0, 24(%r14)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_RTFREE
	movq	$0, 16(%r14)
LBB0_35:
	cmpl	$-1, %ebx
	je	LBB0_37
## %bb.36:
	movq	_IPV6_DSTOPTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_40
LBB0_37:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	movq	_M_IP6OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_39:
	movq	$0, 8(%r14)
LBB0_40:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_PKTINFO,4,2               ## @IPV6_PKTINFO
	.comm	_M_IP6OPT,4,2                   ## @M_IP6OPT
	.comm	_IPV6_HOPLIMIT,4,2              ## @IPV6_HOPLIMIT
	.comm	_IPV6_TCLASS,4,2                ## @IPV6_TCLASS
	.comm	_IPV6_NEXTHOP,4,2               ## @IPV6_NEXTHOP
	.comm	_IPV6_HOPOPTS,4,2               ## @IPV6_HOPOPTS
	.comm	_IPV6_RTHDRDSTOPTS,4,2          ## @IPV6_RTHDRDSTOPTS
	.comm	_IPV6_RTHDR,4,2                 ## @IPV6_RTHDR
	.comm	_IPV6_DSTOPTS,4,2               ## @IPV6_DSTOPTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_clearpktopts               ; -- Begin function ip6_clearpktopts
	.p2align	2
_ip6_clearpktopts:                      ; @ip6_clearpktopts
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_40
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmn	w1, #1
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IPV6_PKTINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPV6_PKTINFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
LBB0_3:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_free
LBB0_5:
	str	xzr, [x19, #64]
LBB0_6:
	cmn	w20, #1
	b.eq	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _IPV6_HOPLIMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPV6_HOPLIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
LBB0_8:
	mov	w8, #-1
	str	w8, [x19]
LBB0_9:
	cmn	w20, #1
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _IPV6_TCLASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPV6_TCLASS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_12
LBB0_11:
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_12:
	cmn	w20, #1
	b.eq	LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _IPV6_NEXTHOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPV6_NEXTHOP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_19
LBB0_14:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_RTFREE
	str	xzr, [x19, #56]
LBB0_16:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_18
; %bb.17:
Lloh15:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_free
LBB0_18:
	str	xzr, [x19, #48]
LBB0_19:
	cmn	w20, #1
	b.eq	LBB0_21
; %bb.20:
Lloh18:
	adrp	x8, _IPV6_HOPOPTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IPV6_HOPOPTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_24
LBB0_21:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_23
; %bb.22:
Lloh21:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_free
LBB0_23:
	str	xzr, [x19, #40]
LBB0_24:
	cmn	w20, #1
	b.eq	LBB0_26
; %bb.25:
Lloh24:
	adrp	x8, _IPV6_RTHDRDSTOPTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPV6_RTHDRDSTOPTS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_29
LBB0_26:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_28
; %bb.27:
Lloh27:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_free
LBB0_28:
	str	xzr, [x19, #32]
LBB0_29:
	cmn	w20, #1
	b.eq	LBB0_31
; %bb.30:
Lloh30:
	adrp	x8, _IPV6_RTHDR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IPV6_RTHDR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_35
LBB0_31:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_33
; %bb.32:
Lloh33:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_free
LBB0_33:
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_RTFREE
	str	xzr, [x19, #16]
LBB0_35:
	cmn	w20, #1
	b.eq	LBB0_37
; %bb.36:
Lloh36:
	adrp	x8, _IPV6_DSTOPTS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPV6_DSTOPTS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_40
LBB0_37:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_39
; %bb.38:
Lloh39:
	adrp	x8, _M_IP6OPT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _M_IP6OPT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_free
LBB0_39:
	str	xzr, [x19, #8]
LBB0_40:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_PKTINFO,4,2               ; @IPV6_PKTINFO
	.comm	_M_IP6OPT,4,2                   ; @M_IP6OPT
	.comm	_IPV6_HOPLIMIT,4,2              ; @IPV6_HOPLIMIT
	.comm	_IPV6_TCLASS,4,2                ; @IPV6_TCLASS
	.comm	_IPV6_NEXTHOP,4,2               ; @IPV6_NEXTHOP
	.comm	_IPV6_HOPOPTS,4,2               ; @IPV6_HOPOPTS
	.comm	_IPV6_RTHDRDSTOPTS,4,2          ; @IPV6_RTHDRDSTOPTS
	.comm	_IPV6_RTHDR,4,2                 ; @IPV6_RTHDR
	.comm	_IPV6_DSTOPTS,4,2               ; @IPV6_DSTOPTS
.subsections_via_symbols
