	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sendpkt
_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	%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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MAX_AF@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	_fd_family@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AF
	movq	(%r15), %rcx
	cmpq	(%rcx,%r14,8), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %r12
LBB0_5:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
LBB0_6:
	cmpq	%r12, (%rax)
	je	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	callq	_SOCKLEN
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_sendto
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_10
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.12:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_stohost
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msyslog                        ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msyslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_MAX_AF,4,2                     ## @MAX_AF
	.comm	_fd_family,8,3                  ## @fd_family
	.comm	_fd,8,3                         ## @fd
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot find family compatible socket to send ntp packet"

	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_ENOBUFS,8,3                    ## @ENOBUFS
L_.str.1:                               ## @.str.1
	.asciz	"sendto(%s): %m"

	.comm	_WSAENOBUFS,8,3                 ## @WSAENOBUFS
	.comm	_WSAEWOULDBLOCK,8,3             ## @WSAEWOULDBLOCK
	.no_dead_strip	_sendpkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sendpkt
_sendpkt:                               ; @sendpkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	x22, [x23]
Lloh2:
	adrp	x24, _MAX_AF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_AF@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
Lloh4:
	adrp	x26, _fd_family@GOTPAGE
Lloh5:
	ldr	x26, [x26, _fd_family@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_AF
	ldr	x8, [x26]
	ldr	x8, [x8, x25, lsl #3]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _fd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x22, [x8, x25, lsl #3]
LBB0_5:
	ldr	x8, [x23]
	cmp	x8, x22
	b.eq	LBB0_10
; %bb.6:
	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
Lloh9:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _ENOBUFS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ENOBUFS@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_stohost
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_msyslog
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
Lloh26:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_MAX_AF,4,2                     ; @MAX_AF
	.comm	_fd_family,8,3                  ; @fd_family
	.comm	_fd,8,3                         ; @fd
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot find family compatible socket to send ntp packet"

	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_ENOBUFS,8,3                    ; @ENOBUFS
l_.str.1:                               ; @.str.1
	.asciz	"sendto(%s): %m"

	.comm	_WSAENOBUFS,8,3                 ; @WSAENOBUFS
	.comm	_WSAEWOULDBLOCK,8,3             ; @WSAEWOULDBLOCK
	.no_dead_strip	_sendpkt
.subsections_via_symbols
