	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendudp                        ## -- Begin function sendudp
	.p2align	4, 0x90
_sendudp:                               ## @sendudp
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-16(%rsi), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	leaq	16(%r13), %r14
	movl	12(%r12), %eax
	movl	%eax, -4(%rbx)
	movl	8(%r12), %eax
	movl	%eax, -8(%rbx)
	movq	%r14, %rdi
	callq	_htons
	movl	%eax, -12(%rbx)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rbx)
	movl	%eax, -8(%rbx)
	movl	4(%r12), %eax
	movl	%eax, -12(%rbx)
	movl	(%r12), %eax
	movl	%eax, -16(%rbx)
	addq	$20, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_in_cksum
	movl	%eax, -16(%rbx)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_sendip
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	cltq
	cmpq	%rax, %r14
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_panic
LBB0_4:
	addl	$-16, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendudp: 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	_sendudp                        ; -- Begin function sendudp
	.p2align	2
_sendudp:                               ; @sendudp
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	sub	x23, x1, #16
	mov	x0, x23
	mov	w1, #16
	bl	_bzero
	add	x19, x20, #16
	ldp	w9, w8, [x22, #8]
	stp	w9, w8, [x21, #-8]
	mov	x0, x19
	bl	_htons
	stur	w0, [x21, #-12]
Lloh0:
	adrp	x24, _IPPROTO_UDP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPPROTO_UDP@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	w0, w8, [x21, #-8]
	ldr	d0, [x22]
	stur	d0, [x21, #-16]
	add	x1, x20, #20
	mov	x0, x23
	bl	_in_cksum
	stur	w0, [x21, #-16]
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_sendip
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	cmp	x19, w0, sxtw
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_panic
LBB0_3:
	sub	w0, w20, #16
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendudp: bad write (%zd != %zd)"

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