	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_rst                    ## -- Begin function uip_tcp_rst
	.p2align	4, 0x90
_uip_tcp_rst:                           ## @uip_tcp_rst
	.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	%r9d, %r15d
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	movq	_UIP_PBUF_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UIP_TCP_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UIP_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_uip_pbuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movl	%r13d, %edi
	callq	_htons
	movq	%rax, 48(%rbx)
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, 40(%rbx)
	movl	%r14d, %edi
	callq	_htonl
	movq	%rax, 32(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_htonl
	movq	%rax, 24(%rbx)
	movq	_UIP_TCP_RST@GOTPCREL(%rip), %rax
	movq	_UIP_TCP_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_UIP_TCPH_FLAGS_SET
	movq	_UIP_TCP_WND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_UIP_TCPH_HDRLEN_SET
	movq	$0, (%rbx)
	movq	_UIP_PROTO_TCP@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	(%r12), %r8d
	movq	%r12, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_uip_chksum_pseudo
	movq	%rax, (%rbx)
	movq	_UIP_TCP_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r9d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	callq	_uip_ipoutput
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_pbuf_free                  ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UIP_LOG                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_PBUF_IP,4,2                ## @UIP_PBUF_IP
	.comm	_UIP_TCP_HLEN,4,2               ## @UIP_TCP_HLEN
	.comm	_UIP_PBUF_RAM,4,2               ## @UIP_PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_tcp_rst: could not allocate memory for pbuf.\n"

	.comm	_UIP_TCP_RST,4,2                ## @UIP_TCP_RST
	.comm	_UIP_TCP_ACK,4,2                ## @UIP_TCP_ACK
	.comm	_UIP_TCP_WND,4,2                ## @UIP_TCP_WND
	.comm	_UIP_PROTO_TCP,4,2              ## @UIP_PROTO_TCP
	.comm	_UIP_TCP_TTL,4,2                ## @UIP_TCP_TTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_rst                    ; -- Begin function uip_tcp_rst
	.p2align	2
_uip_tcp_rst:                           ; @uip_tcp_rst
	.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	x25, x5
	mov	x26, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _UIP_PBUF_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIP_PBUF_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UIP_TCP_HLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UIP_TCP_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _UIP_PBUF_RAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UIP_PBUF_RAM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_uip_pbuf_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	x0, x26
	bl	_htons
	str	x0, [x22, #48]
	mov	x0, x25
	bl	_htons
	str	x0, [x22, #40]
	mov	x0, x24
	bl	_htonl
	str	x0, [x22, #32]
	mov	x0, x23
	bl	_htonl
Lloh9:
	adrp	x8, _UIP_TCP_RST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UIP_TCP_RST@GOTPAGEOFF]
	str	x0, [x22, #24]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _UIP_TCP_ACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UIP_TCP_ACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_UIP_TCPH_FLAGS_SET
Lloh15:
	adrp	x8, _UIP_TCP_WND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UIP_TCP_WND@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htons
	stp	xzr, x0, [x22, #8]
	mov	x0, x22
	mov	w1, #5
	bl	_UIP_TCPH_HDRLEN_SET
	str	xzr, [x22]
Lloh18:
	adrp	x23, _UIP_PROTO_TCP@GOTPAGE
Lloh19:
	ldr	x23, [x23, _UIP_PROTO_TCP@GOTPAGEOFF]
	ldr	w3, [x23]
	ldr	w4, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_uip_chksum_pseudo
	str	x0, [x22]
Lloh20:
	adrp	x8, _UIP_TCP_TTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UIP_TCP_TTL@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	w5, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #0
	bl	_uip_ipoutput
	mov	x0, x21
	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
	b	_uip_pbuf_free
LBB0_2:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_UIP_LOG
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_PBUF_IP,4,2                ; @UIP_PBUF_IP
	.comm	_UIP_TCP_HLEN,4,2               ; @UIP_TCP_HLEN
	.comm	_UIP_PBUF_RAM,4,2               ; @UIP_PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_tcp_rst: could not allocate memory for pbuf.\n"

	.comm	_UIP_TCP_RST,4,2                ; @UIP_TCP_RST
	.comm	_UIP_TCP_ACK,4,2                ; @UIP_TCP_ACK
	.comm	_UIP_TCP_WND,4,2                ; @UIP_TCP_WND
	.comm	_UIP_PROTO_TCP,4,2              ; @UIP_PROTO_TCP
	.comm	_UIP_TCP_TTL,4,2                ; @UIP_TCP_TTL
.subsections_via_symbols
