	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendpkt                        ## -- Begin function sendpkt
	.p2align	4, 0x90
_sendpkt:                               ## @sendpkt
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_sptoa
	movslq	%eax, %rsi
	movl	$1, %edi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_SOCKLEN
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_sendto
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_sptoa
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_msyslog
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Send to %s failed, %m"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"Packet sent.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_debug,4,2                      ## @debug
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendpkt                        ; -- Begin function sendpkt
	.p2align	2
_sendpkt:                               ; @sendpkt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_sptoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #1
	bl	_TRACE
	mov	x0, x19
	bl	_SOCKLEN
	mov	x5, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_sendto
Lloh0:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_sptoa
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_msyslog
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_TRACE
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Send to %s failed, %m"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"Packet sent.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_debug,4,2                      ; @debug
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
