	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uip_tcp_parseopt
_uip_tcp_parseopt:                      ## @uip_tcp_parseopt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_uip_tcphdr@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	_UIP_TCP_HLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_UIP_TCPH_HDRLEN
	cmpl	$6, %eax
	jl	LBB0_13
## %bb.1:
	movq	(%r15), %rdi
	callq	_UIP_TCPH_HDRLEN
                                        ## kill: def $eax killed $eax def $rax
	leal	-20(,%rax,4), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	leaq	(%rbx,%r12,4), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	callq	_UIP_TCPH_HDRLEN
                                        ## kill: def $eax killed $eax def $rax
	leal	-20(,%rax,4), %eax
	cmpl	%eax, %ebx
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	movl	(%r12,%rax,4), %ecx
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %ecx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cltq
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, 4(%r12,%rax,4)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%ebx, %eax
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_14:
	movl	8(%r12,%rax,4), %ecx
	shll	$8, %ecx
	orl	12(%r12,%rax,4), %ecx
	movq	_UIP_TCP_MSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uip_tcphdr,8,3                 ## @uip_tcphdr
	.comm	_UIP_TCP_HLEN,4,2               ## @UIP_TCP_HLEN
	.comm	_UIP_TCP_MSS,4,2                ## @UIP_TCP_MSS
	.no_dead_strip	_uip_tcp_parseopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uip_tcp_parseopt
_uip_tcp_parseopt:                      ; @uip_tcp_parseopt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _uip_tcphdr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _uip_tcphdr@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x8, _UIP_TCP_HLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIP_TCP_HLEN@GOTPAGEOFF]
Lloh4:
	ldrsw	x23, [x8]
	mov	x0, x20
	bl	_UIP_TCPH_HDRLEN
	cmp	w0, #6
	b.lt	LBB0_13
; %bb.1:
	ldr	x0, [x21]
	bl	_UIP_TCPH_HDRLEN
	lsl	w8, w0, #2
	sub	w8, w8, #20
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w22, #0
	add	x20, x20, x23, lsl #2
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21]
	bl	_UIP_TCPH_HDRLEN
	lsl	w8, w0, #2
	sub	w8, w8, #20
	cmp	w22, w8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w22
	ldr	w9, [x20, w22, sxtw #2]
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #2
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w9, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w8, #1
	sxtw	x9, w9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x8, #1
	ldr	w10, [x20, x9, lsl #2]
	cmp	w10, #4
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20, x9, lsl #2]
	cbz	w9, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w9, w8
	b	LBB0_4
LBB0_12:
	add	x8, x20, x8, lsl #2
	ldp	w9, w8, [x8, #8]
	orr	w8, w8, w9, lsl #8
Lloh5:
	adrp	x9, _UIP_TCP_MSS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UIP_TCP_MSS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_uip_tcphdr,8,3                 ; @uip_tcphdr
	.comm	_UIP_TCP_HLEN,4,2               ; @UIP_TCP_HLEN
	.comm	_UIP_TCP_MSS,4,2                ; @UIP_TCP_MSS
	.no_dead_strip	_uip_tcp_parseopt
.subsections_via_symbols
