	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_optcopy                     ## -- Begin function ip_optcopy
	.p2align	4, 0x90
_ip_optcopy:                            ## @ip_optcopy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	addq	$4, %r15
	movl	(%rdi), %eax
	leal	-4(,%rax,4), %r12d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	addq	$4, %r13
	movq	_IPOPT_EOL@GOTPCREL(%rip), %rcx
	movq	_IPOPT_NOP@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%r15)
	addq	$4, %r15
	movl	$1, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	leaq	(%r13,%rax,4), %r13
	subl	%r14d, %r12d
	jle	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	cmpl	(%rcx), %ebx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rdx), %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	movq	_IPOPT_OLEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	addq	$4, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setbe	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movslq	(%r14), %rax
	movslq	(%r13,%rax,4), %rcx
	addq	$4, %rax
	cmpq	%rcx, %rax
	setbe	%al
	cmpl	%r12d, %ecx
	setle	%dl
	movl	%r12d, %r14d
	cmovll	%ecx, %r14d
	andb	%al, %dl
	movzbl	%dl, %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	%ebx, %edi
	callq	_IPOPT_COPIED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memmove
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %r15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_IPOPT_EOL@GOTPCREL(%rip), %rcx
	movq	_IPOPT_NOP@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rcx
	subq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	shrq	$2, %rcx
	testb	$3, %cl
	je	LBB0_14
## %bb.10:
	movq	_IPOPT_EOL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r15)
	leal	1(%rcx), %eax
	testb	$3, %al
	je	LBB0_15
## %bb.11:
	movl	(%rdx), %eax
	movl	%eax, 4(%r15)
	leal	2(%rcx), %eax
	testb	$3, %al
	je	LBB0_15
## %bb.12:
	movl	(%rdx), %eax
	movl	%eax, 8(%r15)
	leal	3(%rcx), %eax
	testb	$3, %al
	je	LBB0_15
## %bb.13:
	movl	(%rdx), %eax
	movl	%eax, 12(%r15)
	addl	$4, %ecx
LBB0_14:
	movl	%ecx, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOPT_EOL,4,2                  ## @IPOPT_EOL
	.comm	_IPOPT_NOP,4,2                  ## @IPOPT_NOP
	.comm	_IPOPT_OLEN,4,2                 ## @IPOPT_OLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_optcopy: malformed ipv4 option"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_optcopy                     ; -- Begin function ip_optcopy
	.p2align	2
_ip_optcopy:                            ; @ip_optcopy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	add	x25, x1, #4
	ldr	w8, [x0]
	lsl	w8, w8, #2
	sub	w26, w8, #4
Lloh0:
	adrp	x24, _IPOPT_EOL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPOPT_EOL@GOTPAGEOFF]
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.1:
Lloh2:
	adrp	x27, _IPOPT_NOP@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IPOPT_NOP@GOTPAGEOFF]
	add	x20, x0, #4
Lloh4:
	adrp	x28, _IPOPT_OLEN@GOTPAGE
Lloh5:
	ldr	x28, [x28, _IPOPT_OLEN@GOTPAGEOFF]
	mov	x19, x25
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w22, [x19], #4
	mov	w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w26, w23
	add	x20, x20, w23, sxtw #2
	cmp	w26, #0
	b.le	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20]
	ldr	w8, [x24]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w22, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x28]
	add	x8, x8, #4
	cmp	x8, w26, uxtw
	cset	w0, ls
	mov	x1, x21
	bl	_KASSERT
	ldrsw	x8, [x28]
	ldrsw	x9, [x20, x8, lsl #2]
	add	x8, x8, #4
	cmp	x8, x9
	cset	w8, ls
	cmp	w9, w26
	cset	w10, le
	and	w0, w8, w10
	csel	w23, w9, w26, lt
	mov	x1, x21
	bl	_KASSERT
	mov	x0, x22
	bl	_IPOPT_COPIED
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_memmove
	add	x19, x19, w23, sxtw #2
	b	LBB0_3
LBB0_8:
	mov	x19, x25
LBB0_9:
	sub	x8, x19, x25
	lsr	x0, x8, #2
	ubfx	x8, x8, #2, #2
	cbz	w8, LBB0_15
; %bb.10:
	ldr	w8, [x24]
	str	w8, [x19]
	add	w8, w0, #1
	tst	w8, #0x3
	b.eq	LBB0_14
; %bb.11:
	ldr	w8, [x24]
	str	w8, [x19, #4]
	add	w8, w0, #2
	tst	w8, #0x3
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x24]
	str	w8, [x19, #8]
	add	w8, w0, #3
	tst	w8, #0x3
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x24]
	str	w8, [x19, #12]
	add	w0, w0, #4
	b	LBB0_15
LBB0_14:
	mov	x0, x8
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOPT_EOL,4,2                  ; @IPOPT_EOL
	.comm	_IPOPT_NOP,4,2                  ; @IPOPT_NOP
	.comm	_IPOPT_OLEN,4,2                 ; @IPOPT_OLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_optcopy: malformed ipv4 option"

.subsections_via_symbols
