	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_udp_socket                ## -- Begin function open_udp_socket
	.p2align	4, 0x90
_open_udp_socket:                       ## @open_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	%r14
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_backlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SM_UDP@GOTPCREL(%rip), %rax
	movq	_enable_ipv6@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	xorl	%esi, %esi
	callq	_server_socket
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	-288(%rbp), %rsi
	xorl	%edi, %edi
	callq	_conv_addr
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_printf
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %eax
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_backlog,4,2                    ## @backlog
	.comm	_SM_UDP,8,3                     ## @SM_UDP
	.comm	_enable_ipv6,8,3                ## @enable_ipv6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open UDP server socket at port %d: %m\n"

	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"created listening udp socket at %s:%d, fd=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_udp_socket                ; -- Begin function open_udp_socket
	.p2align	2
_open_udp_socket:                       ; @open_udp_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _backlog@GOTPAGE
Lloh4:
	ldr	x8, [x8, _backlog@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SM_UDP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SM_UDP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	x8, [x9]
Lloh9:
	adrp	x9, _enable_ipv6@GOTPAGE
Lloh10:
	ldr	x9, [x9, _enable_ipv6@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x3, x9, x8
	mov	x1, #0
	bl	_server_socket
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh12:
	adrp	x8, _verbosity@GOTPAGE
Lloh13:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	w0, #0
	bl	_conv_addr
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_printf
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_5:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kprintf
	mov	w0, #1
	bl	_exit
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_backlog,4,2                    ; @backlog
	.comm	_SM_UDP,8,3                     ; @SM_UDP
	.comm	_enable_ipv6,8,3                ; @enable_ipv6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open UDP server socket at port %d: %m\n"

	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"created listening udp socket at %s:%d, fd=%d\n"

.subsections_via_symbols
