	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_fixup_options             ## -- Begin function ipv6_fixup_options
	.p2align	4, 0x90
_ipv6_fixup_options:                    ## @ipv6_fixup_options
	.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	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	cmpl	$0, 12(%rbx)
	jne	LBB0_8
## %bb.4:
	cmpq	%rbx, %r14
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	movq	%r14, %rbx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %r14
LBB0_7:
	callq	_ipv6_optlen
	subl	%eax, 8(%r14)
	movq	$0, (%r14)
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_fixup_options             ; -- Begin function ipv6_fixup_options
	.p2align	2
_ipv6_fixup_options:                    ; @ipv6_fixup_options
	.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
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_6
; %bb.3:
	cmp	x20, x19
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	ldr	x0, [x20]
	mov	x19, x20
LBB0_5:
	bl	_ipv6_optlen
	ldr	w8, [x19, #8]
	sub	w8, w8, w0
	str	w8, [x19, #8]
	str	xzr, [x19]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
