	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_send_packet                ## -- Begin function udp_send_packet
	.p2align	4, 0x90
_udp_send_packet:                       ## @udp_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -72(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movzwl	%si, %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_snprintf
	leaq	-112(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_getaddrinfo_retro
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.1:
	movq	-72(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	callq	_socket
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r15
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_sendto
	cmpq	%r15, %rax
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_socket_close
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:
	movq	-72(%rbp), %rdi
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_freeaddrinfo_retro
	movl	$1, %eax
	jmp	LBB0_11
LBB0_8:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo_retro
	jmp	LBB0_10
LBB0_9:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo_retro
	movl	%r12d, %edi
	callq	_socket_close
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%hu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_send_packet                ; -- Begin function udp_send_packet
	.p2align	2
_udp_send_packet:                       ; @udp_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [sp, #56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	and	w3, w1, #0xffff
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #56
	mov	w1, #16
	bl	_snprintf
	add	x1, sp, #56
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_getaddrinfo_retro
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x22, #20]
	ldr	w2, [x22, #16]
	bl	_socket
	tbnz	w0, #31, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	ldp	w5, w4, [x22, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_sendto
	cmp	x0, x21
	b.lt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_socket_close
	ldr	x22, [x22]
	cbnz	x22, LBB0_3
; %bb.6:
	ldr	x0, [sp, #8]
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	bl	_freeaddrinfo_retro
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo_retro
	b	LBB0_1
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo_retro
	mov	x0, x20
	bl	_socket_close
	b	LBB0_1
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%hu"

.subsections_via_symbols
