	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_opt_finish               ## -- Begin function inet6_opt_finish
	.p2align	4, 0x90
_inet6_opt_finish:                      ## @inet6_opt_finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-1(%rdx), %eax
	orl	$7, %eax
	incl	%eax
	xorl	%ebx, %ebx
	testl	%edx, %edx
	cmovgl	%eax, %ebx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	$-1, %eax
	cmpl	%esi, %ebx
	jg	LBB0_7
## %bb.2:
	movl	%ebx, %eax
	subl	%edx, %eax
	movslq	%edx, %rcx
	leaq	(%rdi,%rcx,4), %rdi
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IP6OPT_PAD1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	jmp	LBB0_6
LBB0_4:
	jl	LBB0_6
## %bb.5:
	movq	_IP6OPT_PADN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	addl	$-2, %eax
	movl	%eax, 4(%rdi)
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_6:
	movl	%ebx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP6OPT_PAD1,4,2                ## @IP6OPT_PAD1
	.comm	_IP6OPT_PADN,4,2                ## @IP6OPT_PADN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_opt_finish               ; -- Begin function inet6_opt_finish
	.p2align	2
_inet6_opt_finish:                      ; @inet6_opt_finish
	.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
	sub	w8, w2, #1
	orr	w8, w8, #0x7
	cmp	w2, #0
	csinc	w19, wzr, w8, le
	cbz	x0, LBB0_7
; %bb.1:
	cmp	w19, w1
	b.le	LBB0_3
; %bb.2:
	mov	w19, #-1
	b	LBB0_7
LBB0_3:
	sub	w9, w19, w2
	add	x8, x0, w2, sxtw #2
	cmp	w9, #1
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _IP6OPT_PAD1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IP6OPT_PAD1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_7
LBB0_5:
	b.lt	LBB0_7
; %bb.6:
Lloh3:
	adrp	x10, _IP6OPT_PADN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IP6OPT_PADN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w2, w9, #2
	add	x0, x8, #8
	stp	w10, w2, [x8]
	mov	w1, #0
	bl	_memset
LBB0_7:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IP6OPT_PAD1,4,2                ; @IP6OPT_PAD1
	.comm	_IP6OPT_PADN,4,2                ; @IP6OPT_PADN
.subsections_via_symbols
