	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_debug@GOTPCREL(%rip), %r12
	cmpl	$3, (%r12)
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movq	_sockfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$4, (%r12)
	jl	LBB0_6
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dump_hex_printable
	jmp	LBB0_6
LBB0_3:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_warning
	movl	$-1, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending %zu octets\n"

	.comm	_sockfd,4,2                     ## @sockfd
L_.str.1:                               ## @.str.1
	.asciz	"write to %s failed"

	.comm	_currenthost,4,2                ## @currenthost
L_str:                                  ## @str
	.asciz	"Request packet:"

	.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, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _debug@GOTPAGE
Lloh1:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
Lloh4:
	adrp	x8, _sockfd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sockfd@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_send
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x20
	mov	x1, x19
	bl	_dump_hex_printable
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _currenthost@GOTPAGE
Lloh10:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	mov	w0, #-1
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending %zu octets\n"

	.comm	_sockfd,4,2                     ; @sockfd
l_.str.1:                               ; @.str.1
	.asciz	"write to %s failed"

	.comm	_currenthost,4,2                ; @currenthost
l_str:                                  ; @str
	.asciz	"Request packet:"

	.no_dead_strip	_sendpkt
.subsections_via_symbols
