	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_packet                    ## -- Begin function send_packet
	.p2align	4, 0x90
_send_packet:                           ## @send_packet
	.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	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_WSAEMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	(%rdi), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	movl	$4, %r9d
	callq	_sendto
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_note
	movq	_WSAENETUNREACH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_note
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_WSAEMSGSIZE,4,2                ## @WSAEMSGSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_packet: %x"

	.comm	_WSAENETUNREACH,4,2             ## @WSAENETUNREACH
L_.str.1:                               ## @.str.1
	.asciz	"send_packet: please consult README file%s"

L_.str.2:                               ## @.str.2
	.asciz	" regarding broadcast address."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_packet                    ; -- Begin function send_packet
	.p2align	2
_send_packet:                           ; @send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WSAEMSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WSAEMSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w0, [x0]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	mov	w5, #4
	bl	_sendto
	mov	x19, x0
	tbz	w0, #31, LBB0_5
; %bb.3:
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_note
Lloh8:
	adrp	x8, _WSAENETUNREACH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WSAENETUNREACH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_note
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_WSAEMSGSIZE,4,2                ; @WSAEMSGSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_packet: %x"

	.comm	_WSAENETUNREACH,4,2             ; @WSAENETUNREACH
l_.str.1:                               ; @.str.1
	.asciz	"send_packet: please consult README file%s"

l_.str.2:                               ; @.str.2
	.asciz	" regarding broadcast address."

.subsections_via_symbols
