	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_udp_socket                 ## -- Begin function add_udp_socket
	.p2align	4, 0x90
_add_udp_socket:                        ## @add_udp_socket
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_usfd@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	incl	%ebx
	jmp	LBB0_2
LBB0_3:
	movq	_settings_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_backlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%ebx
	movl	%r14d, %edi
	movl	%ebx, %ecx
	callq	_server_socket
	movq	%rax, %rdi
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_4
LBB0_2:
	movq	_tl_udp_server@GOTPCREL(%rip), %rdx
	movq	_tl_udp_server_methods@GOTPCREL(%rip), %rcx
	movl	%r14d, %esi
	movl	%ebx, %r8d
	callq	_init_udp_port
	movq	_default_udp_socket@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_usfd,8,3                       ## @usfd
	.comm	_settings_addr,4,2              ## @settings_addr
	.comm	_backlog,4,2                    ## @backlog
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open udp port: %m\n"

	.comm	_tl_udp_server,4,2              ## @tl_udp_server
	.comm	_tl_udp_server_methods,4,2      ## @tl_udp_server_methods
	.comm	_default_udp_socket,4,2         ## @default_udp_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_udp_socket                 ; -- Begin function add_udp_socket
	.p2align	2
_add_udp_socket:                        ; @add_udp_socket
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x21, _usfd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _usfd@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
	add	w20, w1, #1
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _settings_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _settings_addr@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _backlog@GOTPAGE
Lloh6:
	ldr	x9, [x9, _backlog@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	add	w20, w1, #1
	mov	x0, x19
	mov	x1, x8
	mov	x3, x20
	bl	_server_socket
	str	x0, [x21]
	tbnz	x0, #63, LBB0_4
LBB0_3:
Lloh8:
	adrp	x2, _tl_udp_server@GOTPAGE
Lloh9:
	ldr	x2, [x2, _tl_udp_server@GOTPAGEOFF]
Lloh10:
	adrp	x3, _tl_udp_server_methods@GOTPAGE
Lloh11:
	ldr	x3, [x3, _tl_udp_server_methods@GOTPAGEOFF]
	mov	x1, x19
	mov	x4, x20
	bl	_init_udp_port
Lloh12:
	adrp	x8, _default_udp_socket@GOTPAGE
Lloh13:
	ldr	x8, [x8, _default_udp_socket@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assert
LBB0_4:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_usfd,8,3                       ; @usfd
	.comm	_settings_addr,4,2              ; @settings_addr
	.comm	_backlog,4,2                    ; @backlog
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open udp port: %m\n"

	.comm	_tl_udp_server,4,2              ; @tl_udp_server
	.comm	_tl_udp_server_methods,4,2      ; @tl_udp_server_methods
	.comm	_default_udp_socket,4,2         ; @default_udp_socket
.subsections_via_symbols
