	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_option_alloc             ## -- Begin function inet6_option_alloc
	.p2align	4, 0x90
_inet6_option_alloc:                    ## @inet6_option_alloc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movslq	(%rdi), %r14
	callq	_CMSG_DATA
	xorl	%r15d, %r15d
	cmpl	$8, %ebx
	ja	LBB0_7
## %bb.1:
	movq	%rax, %rcx
	movl	$278, %eax                      ## imm = 0x116
	btl	%ebx, %eax
	jae	LBB0_7
## %bb.2:
	cmpl	$7, %r13d
	jbe	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	leaq	(%r12,%r14,4), %r15
	cmpq	%rcx, %r15
	jne	LBB0_6
## %bb.5:
	addq	$8, %r15
	addl	$2, (%r12)
LBB0_6:
	movq	%r15, %rax
	subq	%rcx, %rax
	shrq	$2, %rax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ebx
	movl	%edx, %r14d
	movl	%edx, %edi
	movl	%ebx, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_roundup2
	subl	%r14d, %r13d
	addl	%r13d, %eax
	cltd
	idivl	%ebx
	movl	%edx, %ebx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_inet6_insert_padopt
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %r15
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%r15,%rcx,4), %r14
	addl	%eax, %ecx
	addl	%ecx, (%r12)
	movq	%r14, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	subq	%r13, %rax
	shrq	$2, %rax
	leal	7(%rax), %ebx
	andl	$-8, %ebx
	subl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_inet6_insert_padopt
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rcx
	addl	%eax, (%r12)
	movq	%r13, %rax
	subq	%r13, %rcx
	shrq	$5, %rcx
	decl	%ecx
	movl	%ecx, (%r13)
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_inet6_option_alloc             ; -- Begin function inet6_option_alloc
	.p2align	2
_inet6_option_alloc:                    ; @inet6_option_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldrsw	x25, [x0]
	bl	_CMSG_DATA
	mov	x24, #0
	cmp	w22, #8
	b.hi	LBB0_7
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w22
	mov	w9, #278
	tst	w8, w9
	b.eq	LBB0_7
; %bb.2:
	cmp	w23, #7
	b.ls	LBB0_4
; %bb.3:
	mov	x24, #0
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	add	x24, x19, x25, lsl #2
	cmp	x24, x0
	b.ne	LBB0_6
; %bb.5:
	add	x24, x24, #8
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
LBB0_6:
	sub	x8, x24, x20
	lsr	x8, x8, #2
	sdiv	w9, w8, w22
	msub	w25, w9, w22, w8
	mov	x0, x25
	mov	x1, x22
	bl	_roundup2
	sub	w8, w23, w25
	add	w8, w8, w0
	sdiv	w9, w8, w22
	msub	w22, w9, w22, w8
	mov	x0, x24
	mov	x1, x22
	bl	_inet6_insert_padopt
	ldr	w8, [x19]
	add	x24, x24, w22, sxtw #2
	add	x23, x24, w21, sxtw #2
	add	w9, w22, w21
	add	w8, w9, w8
	str	w8, [x19]
	sub	x8, x23, x20
	lsr	x8, x8, #2
	add	w9, w8, #7
	and	w9, w9, #0xfffffff8
	sub	w21, w9, w8
	mov	x0, x23
	mov	x1, x21
	bl	_inet6_insert_padopt
	add	x8, x23, w21, sxtw #2
	ldr	w9, [x19]
	add	w9, w21, w9
	str	w9, [x19]
	sub	x8, x8, x20
	lsr	x8, x8, #5
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
