	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendip                         ## -- Begin function sendip
	.p2align	4, 0x90
_sendip:                                ## @sendip
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-40(%rsi), %r14
	addq	$40, %r15
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_bzero
	movq	_IPVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbx)
	movl	$10, -40(%rbx)
	movq	%r15, %rdi
	callq	_htons
	movl	%eax, -8(%rbx)
	movl	%r13d, -36(%rbx)
	movq	_IPDEFTTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbx)
	movq	8(%r12), %rax
	movq	%rax, -24(%rbx)
	movq	(%r12), %rax
	movq	%rax, -32(%rbx)
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_in_cksum
	movl	%eax, -16(%rbx)
	movq	-32(%rbx), %rsi
	movq	_INADDR_BROADCAST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.1:
	movq	-24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movq	_netmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:
	callq	_SAMENET
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_gateip@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_4:
	addq	$-32, %rbx
LBB0_6:
	movq	(%rbx), %rsi
LBB0_7:
	movq	%r12, %rdi
	callq	_arpwhohas
	movq	_ETHERTYPE_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_sendether
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	cltq
	cmpq	%rax, %r15
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_panic
LBB0_11:
	addl	$-40, %ebx
	jmp	LBB0_12
LBB0_8:
	movl	$-1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPVERSION,4,2                  ## @IPVERSION
	.comm	_IPDEFTTL,4,2                   ## @IPDEFTTL
	.comm	_INADDR_BROADCAST,8,3           ## @INADDR_BROADCAST
	.comm	_netmask,8,3                    ## @netmask
	.comm	_gateip,8,3                     ## @gateip
	.comm	_ETHERTYPE_IP,4,2               ## @ETHERTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendip: bad write (%zd != %zd)"

	.comm	_debug,8,3                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendip                         ; -- Begin function sendip
	.p2align	2
_sendip:                                ; @sendip
	.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	x23, x3
	mov	x22, x1
	mov	x21, x0
	sub	x20, x1, #40
	add	x19, x2, #40
	mov	x0, x20
	mov	w1, #40
	bl	_bzero
Lloh0:
	adrp	x8, _IPVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPVERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x22, #-4]
	mov	w8, #10
	stur	w8, [x22, #-40]
	mov	x0, x19
	bl	_htons
	ldr	x8, [x21, #8]
	stur	x8, [x22, #-24]
	ldr	x8, [x21]
	mov	x24, x22
	str	x8, [x24, #-32]!
	str	w0, [x24, #24]
	stur	w23, [x24, #-4]
Lloh3:
	adrp	x8, _IPDEFTTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPDEFTTL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x24, #20]
	mov	x0, x20
	mov	w1, #40
	bl	_in_cksum
	str	w0, [x24, #16]
	ldr	x1, [x24]
Lloh6:
	adrp	x8, _INADDR_BROADCAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INADDR_BROADCAST@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.1:
	ldur	x0, [x22, #-24]
	cbz	x0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _netmask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _netmask@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	cbz	x2, LBB0_4
; %bb.3:
	bl	_SAMENET
Lloh12:
	adrp	x8, _gateip@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gateip@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x24, eq
	ldr	x1, [x8]
LBB0_4:
	mov	x0, x21
	bl	_arpwhohas
	mov	x3, x0
Lloh14:
	adrp	x8, _ETHERTYPE_IP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETHERTYPE_IP@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sendether
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:
	mov	x20, x0
	cmp	x19, w0, sxtw
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_panic
LBB0_7:
	sub	w0, w20, #40
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IPVERSION,4,2                  ; @IPVERSION
	.comm	_IPDEFTTL,4,2                   ; @IPDEFTTL
	.comm	_INADDR_BROADCAST,8,3           ; @INADDR_BROADCAST
	.comm	_netmask,8,3                    ; @netmask
	.comm	_gateip,8,3                     ; @gateip
	.comm	_ETHERTYPE_IP,4,2               ; @ETHERTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendip: bad write (%zd != %zd)"

	.comm	_debug,8,3                      ; @debug
.subsections_via_symbols
