	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	_sockfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warning
	movl	$-1, %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sockfd,4,2                     ## @sockfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write to %s failed"

	.comm	_currenthost,4,2                ## @currenthost
	.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:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _sockfd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sockfd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w3, #0
	bl	_send
	mov	x8, x0
	mov	w0, #0
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _currenthost@GOTPAGE
Lloh4:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sockfd,4,2                     ; @sockfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write to %s failed"

	.comm	_currenthost,4,2                ; @currenthost
	.no_dead_strip	_sendpkt
.subsections_via_symbols
