	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_ipoutput_if                ## -- Begin function uip_ipoutput_if
	.p2align	4, 0x90
_uip_ipoutput_if:                       ## @uip_ipoutput_if
	.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
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movl	%r9d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_UIP_IP_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uip_pbuf_header
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_UIP_ERROR
	movq	_UIP_ERR_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r14), %r12
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_UIP_IPH_TTL_SET
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_UIP_IPH_PROTO_SET
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ip_addr_set
	movq	_UIP_IP_HLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_UIP_IPH_VHLTOS_SET
	movq	(%r14), %rdi
	callq	_htons
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_UIP_IPH_LEN_SET
	movq	_UIP_IP_DF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_UIP_IPH_OFFSET_SET
	xorl	%edi, %edi
	callq	_htons
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_UIP_IPH_ID_SET
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_ip_addr_isany
	leaq	4(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rsi
LBB0_5:
	callq	_ip_addr_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_UIP_IPH_CHKSUM_SET
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_uip_ipchksum
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_UIP_IPH_CHKSUM_SET
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_IP_HLEN,4,2                ## @UIP_IP_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_ipoutput_if: not enough room for IP header in pbuf.\n"

	.comm	_UIP_ERR_BUF,4,2                ## @UIP_ERR_BUF
	.comm	_UIP_IP_DF,8,3                  ## @UIP_IP_DF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_ipoutput_if                ; -- Begin function uip_ipoutput_if
	.p2align	2
_uip_ipoutput_if:                       ; @uip_ipoutput_if
	.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
	mov	x19, x6
	mov	x21, x0
	cbz	x2, LBB0_3
; %bb.1:
	mov	x25, x5
	mov	x24, x4
	mov	x26, x3
	mov	x20, x2
	mov	x23, x1
Lloh0:
	adrp	x27, _UIP_IP_HLEN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _UIP_IP_HLEN@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x21
	bl	_uip_pbuf_header
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_ERROR
Lloh4:
	adrp	x8, _UIP_ERR_BUF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UIP_ERR_BUF@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
LBB0_3:
	ldr	x20, [x21, #8]
	b	LBB0_8
LBB0_4:
	ldr	x22, [x21, #8]
	mov	x0, x22
	mov	x1, x26
	bl	_UIP_IPH_TTL_SET
	mov	x0, x22
	mov	x1, x25
	bl	_UIP_IPH_PROTO_SET
	mov	x0, x22
	mov	x1, x20
	bl	_ip_addr_set
	ldr	w8, [x27]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x0, x22
	mov	w1, #4
	mov	x3, x24
	bl	_UIP_IPH_VHLTOS_SET
	ldr	x0, [x21]
	bl	_htons
	mov	x1, x0
	mov	x0, x22
	bl	_UIP_IPH_LEN_SET
Lloh7:
	adrp	x8, _UIP_IP_DF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UIP_IP_DF@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	_htons
	mov	x1, x0
	mov	x0, x22
	bl	_UIP_IPH_OFFSET_SET
	mov	x0, #0
	bl	_htons
	mov	x1, x0
	mov	x0, x22
	bl	_UIP_IPH_ID_SET
	mov	x0, x23
	bl	_ip_addr_isany
	mov	x8, x0
	add	x0, x22, #4
	cbz	x8, LBB0_6
; %bb.5:
	add	x1, x19, #16
	b	LBB0_7
LBB0_6:
	mov	x1, x23
LBB0_7:
	bl	_ip_addr_set
	mov	x0, x22
	mov	w1, #0
	bl	_UIP_IPH_CHKSUM_SET
	ldr	w1, [x27]
	mov	x0, x22
	bl	_uip_ipchksum
	mov	x1, x0
	mov	x0, x22
	bl	_UIP_IPH_CHKSUM_SET
LBB0_8:
	ldr	x3, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	br	x3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_IP_HLEN,4,2                ; @UIP_IP_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_ipoutput_if: not enough room for IP header in pbuf.\n"

	.comm	_UIP_ERR_BUF,4,2                ; @UIP_ERR_BUF
	.comm	_UIP_IP_DF,8,3                  ; @UIP_IP_DF
.subsections_via_symbols
